Audio-Injector / stereo-and-zero

Zero and original stereo sound cards
71 stars 14 forks source link

Support for Bullseye? #84

Open lacojim opened 1 year ago

lacojim commented 1 year ago

I just installed Bullseye on my RPi3 and I cannot get this card/hat to be recognized. I have two, and I have tried them both. I bought both of these a few years ago, but this is my first attempt to actually use one of them. I have commented out the line in /boot/config.txt: dtparam=audio=on and added: dtoverlay=audioinjector-wm8731-audio

aplay -l shows no sound devices. Any ideas or is this newer OS simply not supported?

Odd thing, the kernel module is loaded for this hat. snd_soc_core 253952 2 snd_soc_bcm2835_i2s,snd_soc_audioinjector_pi_soundcard snd_pcm 118784 6 snd_compress,snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core,snd_soc_audioinjector_pi_soundcard

However, nowhere to be found on the system is snd_soc_wm8731 which I believe should be there and loaded.

nls-GitHub commented 1 year ago

I had the AudioInjector board working on a Pi 3B+ and later switched to a Pi 4, both with Bullseye. The one difference that I found with the Pi4 install is that I now have to use sudo with the aplay or arecord commands, but other than that, there are no issues. Board shows up in raspi-config also. I have disabled the HDMI audio by modifying "dtoverlay=vc4-kms-v3d,noaudio".

On Tue, Feb 21, 2023 at 9:42 PM James Hines @.***> wrote:

I just installed Bullseye on my RPi3 and I cannot get this card/hat to be recognized. I have two, and I have tried them both. I bought both of these a few years ago, but this is my first attempt to actually use one of them. I have commented out the line in /boot/config.txt: dtparam=audio=on and added: dtoverlay=audioinjector-wm8731-audio

aplay -l shows no sound devices. Any ideas or is this newer OS simply not supported?

— Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/84, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJASF3XWSWENTQ55NQINX3WYWDK7ANCNFSM6AAAAAAVDZYQ7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lacojim commented 1 year ago

Thanks for the reply. I do have it showing up now with #aplay -l, just have not been able to get any sound from it. I will try installing PA and see if that helps. Would prefer Pipewire, but it's such an old version.

nls-GitHub commented 1 year ago

My application is only for recording, so I never really tested the playback features. I do use the headphone output for monitoring the recording.

On Thu, Feb 23, 2023 at 9:07 AM James Hines @.***> wrote:

Thanks for the reply. I do have it showing up now with #aplay -l, just have not been able to get any sound from it. I will try installing PA and see if that helps. Would prefer Pipewire, but it's such an old version.

— Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/84#issuecomment-1441948354, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJASF5R6BJYR3VJZXB5TADWY54MPANCNFSM6AAAAAAVDZYQ7A . You are receiving this because you commented.Message ID: @.***>

lacojim commented 1 year ago

I have installed Pulseaudio and still cannot make any sound even though the device DOES show up in Pulse mixer. I threw in the towel and ordered a 384khz DAC audiophile card. Hopefully this one will work better. Thanks!

flatmax commented 1 year ago

did you enable the output HIFI mixer ? Assuming you have the card setup as hw:0 you can do the following ...

amixer -Dhw:0 set 'Output Mixer HiFi' 'on'

lacojim commented 1 year ago

Interesting. I did not do this. Thanks for the tip. I will give this a shot in the morning. Card0 is the built-in HDMI and Card1 is the AudioInjector. So I should be able to use -Dhw:1 instead of hw:0. This is on the Rpi 3B+ BTW. I have a Rpi4 which I may switch to at some point.

nls-GitHub commented 1 year ago

It should be settable via alsamixer also. The following are my settings, but I don't use the board for playback, but only recording. Some fields are changed by arrow keys, some others by the 'm' key.

[image: image.png]

On Thu, Feb 23, 2023 at 5:36 PM James Hines @.***> wrote:

Interesting. I did not do this. Thanks for the tip. I will give this a shot in the morning. Card0 is the built-in HDMI and Card1 is the AudioInjector. So I should be able to use -Dhw:1 instead of hw:0. This is on the Rpi 3B+ BTW. I have a Rpi4 which I may switch to at some point.

— Reply to this email directly, view it on GitHub https://github.com/Audio-Injector/stereo-and-zero/issues/84#issuecomment-1442574028, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANJASF2N3HSJO23DP4WPJGLWY7YBNANCNFSM6AAAAAAVDZYQ7A . You are receiving this because you commented.Message ID: @.***>

lacojim commented 1 year ago

I installed Volumio OS and followed the instructions for this particular card/hat. Still no sound. Then I found a small snippet that mentioned Pulseaudio needs to be removed. So I did, and voila! It worked! The new card will be here tomorrow (Saturday) so we'll see how this one works as well. It's not an AudioInjector card, but I can certainly use more than one DAC in the household so a nice added addition hopefully.

lacojim commented 1 year ago

I have two AudioInjectors running Volumio now, and one Inno device. All sound pretty darn good. The three rooms are nothing alike, so nothing scientific. Each sounds different according to the room, speakers and amps involved. My main system and most used is in the garage, a Rpi3 running through a vintage Pioneer SX-780 amp with the Inno card with DYI speakers. The second one is running in the Livingroom with an AudioInjector also on a Rpi3 into a Onkyo TX-NR609 amp with bookshelf speakers plus subwoofer. The third system is also an AudioInjector on Rpi4 running the bedroom speakers. Dayton Audio tube amp. All sound pretty darn good.

All good now. Thank you both for the help and advice. Very much appreciated.

lukexi commented 10 months ago

I had the AudioInjector board working on a Pi 3B+ and later switched to a Pi 4, both with Bullseye. The one difference that I found with the Pi4 install is that I now have to use sudo with the aplay or arecord commands, but other than that, there are no issues. Board shows up in raspi-config also. I have disabled the HDMI audio by modifying "dtoverlay=vc4-kms-v3d,noaudio".

To fix needing sudo, you can add the pi user to the audio group with sudo adduser pi audio. Log out and log back in and you should be able to use aplay and arecord without sudo!

(also can confirm audioinjector is working great here on Bullseye / kernel 6+ on a Pi Zero W original)