WM8960 Hi-Fi Sound Card HAT for Raspberry Pi - volume controls not working #2163
-
Hi there, This is my second PhonieBox build - my 5 year old daughter loved the family player so much she wants one for her bedroom. I've managed to assemble everything together and it works just fine, but I'm using the WM8960 HAT and speakers so the whole unit is self contained. I can get sound output, and I've mapped GPIO buttons for forward/back/play, and was intending to add both a headphone socket and a rotary button so volume can be controlled. But I'm not able to change the output volume on the web browser interface. It's at 0% and any attempts to change the volume don't work - but if I log in to the Raspberry Pi GUI I can change the volume, and alsamixer also works. The instructions for this sound card feel a little out of date (I'm using the latest build of PhonieBox and the most recent version of Buster). Am I missing something? Various configurations below: **- GPIO buttons installed using /home/pi/RPi-Jukebox-RFID/settings/gpio_settings.ini (uses pins 7, 9, 14, 16, 32, 34)
[note pins above are not GPIO numbers but pins] - aplay -l gives:
- cat /proc/asound/modules gives:
- alsa.conf changed to:
- mixer scontrols gives:
**- etc/mpd.conf changed to: **
**/home/pi/RPi-Jukebox-RFID/settings/Audio_iFace_Name changed to:
Under the web interface, volume control is set to mpd - if I change it to amixer and try to change the volume, I get:
Any help with this much appreciated! Love the work that's gone on here, and the player has made a huge difference to us, so really keen to try and get this fixed before Christmas for my daughter if I can... Best, Tom |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
Are you sure using pins 3, 5 both for the soundcard and the display work, I.e. have you tried disconnecting the display? |
Beta Was this translation helpful? Give feedback.
-
Please use |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for the reply... Yes, I'm sure they work together - the soundcard was configured first and this issue was there from the start - I added the display and it didn't seem to have any impact on the functionality, but I did wonder about two i2c devices on a single installation. I did a lot of searching which seemed to suggest that they could work in harmony, which they seem to be doing so far (and which is good news for future builds). I avoided using any of the other GPIO pins that were used by the soundcard. |
Beta Was this translation helpful? Give feedback.
-
I will give this a go. Thanks so much for the help and advice. It's appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi, Reassembled everything (I was spray painting the enclosure gold and sticking unicorn stickers on - all very important stuff...) and made the changes. I amended mpd.conf, iface and global.conf to use 'Master'. I still had no volume control. I disconnected the display, and that made no difference too. I saw a response to another person suggesting amending asound.conf, which I attempted, adding:
This disabled the sound entirely, until it was removed, and the sound worked again. The current contents of asound.conf are:
Any ideas what might be the issue? I'm trying all these things with the 16x2 display disconnected from the GPIO pins. Massive thanks in advance for your help. Best, Tom |
Beta Was this translation helpful? Give feedback.
-
PS - I attempted editing asound.conf to: defaults.pcm.rate_converter "samplerate"
But this disabled the sound entirely. |
Beta Was this translation helpful? Give feedback.
-
Hi, Tom, your Your mpd config seems to have the same issue of using the default sound card. Give it a try to add
There are some more issues with the WM8960 Hi-Fi HAT, but let us start with the two above first :-) |
Beta Was this translation helpful? Give feedback.
-
Is this solved, because I have / had some problems with this HAT. Some solved, some worked around some not. |
Beta Was this translation helpful? Give feedback.
-
@mistersunshine2020 were you able to get the sound control working? I can adjust it via the web interface/rotary knob if I set the volume control to MPD instead of amixer. Amixer won't work. Is there any benefit of amixer over mpd? |
Beta Was this translation helpful? Give feedback.
-
Hello,
|
Beta Was this translation helpful? Give feedback.
-
Just dumping this here incase anyone else has the same issue I had. This error: An error occorured: Execution failed Command: /home/pi/RPi-Jukebox-RFID/scripts/playout_controls.sh -c=volumeup Output: RC: .1 Was fixed by doing Followed by a reboot Source: https://forum-raspberrypi.de/forum/thread/56032-phoniebox-kein-sound-nur-durch-mpd-restart/ |
Beta Was this translation helpful? Give feedback.
-
Maybe a little bit late, but I am also building a Phoniebox with this soundcard and had several issues... You wrote:
The interface name on wm8960 is |
Beta Was this translation helpful? Give feedback.
Maybe a little bit late, but I am also building a Phoniebox with this soundcard and had several issues...
You wrote:
The interface name on wm8960 is
Playback
(capital P). That should be it.