![]() |
No audio adjustment but sound still plays - Printable Version +- BlueWave Studio forum (https://bluewavestudio.io/community) +-- Forum: OpenAuto Pro (https://bluewavestudio.io/community/forum-86.html) +--- Forum: Audio features (https://bluewavestudio.io/community/forum-63.html) +--- Thread: No audio adjustment but sound still plays (/thread-1486.html) Pages:
1
2
|
No audio adjustment but sound still plays - Haarleh - 03-01-2020 Hey all, I have been messing around with this for some time now. Trying all possible fixes as per other threads. I have a RPi 3 B+. I have a PhatDAC as my audio hat. My issue is that the volume slider in the OAP interface won't move and the volume slider in the taskbar on the desktop has a red X over it. If I go to play audio it will play at 100%. If I go into Audio Device settings and go to output devices. I can adjust the volume with the Equalizer slider. I'll also note that the commands amixer and amixer scontrols do nothing for me, they just return to the next fresh line. Thanks! RE: No audio adjustment but sound still plays - BlueWave - 03-01-2020 What is the output of aplay -l and cat .asoundrc commands? RE: No audio adjustment but sound still plays - Haarleh - 03-02-2020 pi@raspberrypi:~$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0] Subdevices: 0/1 Subdevice #0: subdevice #0 pi@raspberrypi:~$ cat .asoundrc pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } RE: No audio adjustment but sound still plays - ktb - 03-02-2020 The Pimoroni pHAT DAC only provides line-level output. It will not provide a volume control interface on its own. It's designed to hook up to a stereo system / amplifier / speaker system which provides volume control of its own. You could try creating an ALSA Softvol volume control which might work to provide a Master volume control (allowing you to control the volume using the slider in OAP and Raspbian, but the OAP mute button will still probably not work -- you'll still see the speaker icon with an "X" next to it). RE: No audio adjustment but sound still plays - Haarleh - 03-03-2020 Okay thanks, I'll try this when I'm able to. The cross doesn't bother me, it's just being unable to control the volume unless I go into the Audio>Output Devices settings. I'm not sure how it worked when I was on the 3.3.2 update then. It was basically plug and play on that version. RE: No audio adjustment but sound still plays - ktb - 03-03-2020 (03-03-2020, 12:11 AM)Haarleh Wrote: Okay thanks, I'll try this when I'm able to. The cross doesn't bother me, it's just being unable to control the volume unless I go into the Audio>Output Devices settings.I could be wrong, but I think I read somewhere here that volume control used to be handled differently in older versions of OAP and was changed for a reason. RE: No audio adjustment but sound still plays - Haarleh - 03-03-2020 That's fair, totally understandable if it was causing other issues for other users. Though I wonder if BlueWave can shed some light on those changes made so I can potentially revert some to possibly get it working like it used to. RE: No audio adjustment but sound still plays - Hisma - 03-04-2020 (03-02-2020, 10:28 PM)ktb Wrote: The Pimoroni pHAT DAC only provides line-level output. It will not provide a volume control interface on its own. It's designed to hook up to a stereo system / amplifier / speaker system which provides volume control of its own. You could try creating an ALSA Softvol volume control which might work to provide a Master volume control (allowing you to control the volume using the slider in OAP and Raspbian, but the OAP mute button will still probably not work -- you'll still see the speaker icon with an "X" next to it). Just because it provides a line level output does not mean that it cannot control volume. Volume can absolutely be controlled on the line level. In a car setup with an external amplifier, that is always how it is done. I think the issue is probably the use of a hifiberry HAT. bluewave has stated that the later versions of OAP (I think >5.0) don't play well with DAC hats, particularly hifiberry HATs. My suggestion is to buy a USB dac from amazon or somewhere with a return policy, and see if that fixes the issue. In my case, I got rid of my non-working hifiberry HAT, and used it as an opportunity to upgrade to a higher quality DAC. I'm now using a khadas tone board via USB, and it works great. Though I did have to go through the extra set of modifying the .asroundrc file to match the device # reported by the "aplay -l" command. Once I did that, I had volume control back again, and I didn't have to modify any additional settings. RE: No audio adjustment but sound still plays - ktb - 03-04-2020 (03-04-2020, 08:02 PM)Hisma Wrote:(03-02-2020, 10:28 PM)ktb Wrote: The Pimoroni pHAT DAC only provides line-level output. It will not provide a volume control interface on its own. It's designed to hook up to a stereo system / amplifier / speaker system which provides volume control of its own. You could try creating an ALSA Softvol volume control which might work to provide a Master volume control (allowing you to control the volume using the slider in OAP and Raspbian, but the OAP mute button will still probably not work -- you'll still see the speaker icon with an "X" next to it). It's not that it isn't possible for it to have volume control, just that it likely does not have a hardware volume control interface. That seems to be pretty common for minimal DAC HATs like this one. The pHAT DAC isn't a hifiberry device, it just conveniently uses the hifiberry device tree overlay and driver because it has the same Texas Instruments DAC chip/codec as a hifiberry device. You likely could have used your hifiberry HAT. You just would have needed to properly configure/use ALSA Softvol (depending on which model you had, some of them do have integrated volume control) and been OK with not being able to use the mute button in the OAP UI. Anyway, we can find out more, if Haarleh can post the output of the following commands:
If that doesn't work, also try posting the output of these commands:
RE: No audio adjustment but sound still plays - Haarleh - 03-05-2020 Thank you guys for your responses! Hisma, I do really want to get a high quality DAC over a normal USB sound card so I'm really thinking about looking into getting a Tone Board. Thank you for letting me know about it! ktb, I'll try to get those commands as quick as I can though being in Australia has almost the opposite time zone for working hahaha so I'll be off with the responses. Though as per my original post, the amixer returns a fresh terminal line with no output. Again, thank you both! |