07-19-2019, 10:12 PM
Oddball post this one, however I've got my HiFi Berry DAC working with volume control.
I know a few people have had issues and I myself was having issues that I seem to have resolved this evening and I hope that my experience may help someone else.
I'm using a Pi3 with a HiFi Berry AMP2 and a USB sound sound card with line out and mic in.
Ok so I am going to have to try and explain myself as best I can and remember the steps I took.
Firstly I had Audio working in Raspbian through the DAC but not OAP (no drivers installed manually, Raspbian picked them up automatically), it turns out that even if you set the DAC as the primary in ALSA or even in Pulse OAP ignores this and trys to use the USB sound card. To resolve this I changed the sound card from "analogue stereo output with mono mic input" (or words to that effect) to "mono mic input" in the pulse configuration tab. This forced the sound through the DAC which was great, even volume control was working! But...
The audio through bluetooth was horrendous, clicking and popping and just a terrible experience. A lot of messing around later and checking on pulse forums and troubleshooting guides, most of the fixes for this are already implemented in the install from OAP, in fact I think all were. However I kept just changing things and seeing what happened, upping the sampling rate etc none worked and were reverted back to stock. Until I went into the "playback" tab in pulse and showed "all streams" and then changed "snd_rpi_hifiberry_dacplus analogue stereo" on the loopback to "snd_rpi_hifiberry_dacplus analogue stereo (echo cancelled with USB Audio Device Analogue Mono)". This resolved the audio clarity issues perfectly. But you guessed it, it broke something else, this time the volume control...
So, good audio and from the DAC but no volume control from within OAP, in fact I had no volume control from the master slider either. To fix this I again turned to pulse forums and troubleshooting only to find the fixes already implemented. However under the "output devices" tab in pulse there is the option to dictate which device was controlled by the volume slider. To do this simply find your Analogue stereo hifiberry output and click the the green tick button next to the lock icon. But you know something else is going to break right? yup, phone calls.
The phone calls were fixed easily however, in fact i worked out the phone calls weren't working before finding the green tick so I figured a good ol' reboot might be in order to reset everything. It was, so now everything is working as I want but it has only been about an hour of me listening to music from it to test and a test phone call and one real phone call using the handset over bluetooth due to the caveat below.
This is the caveat I must mention as I am yet to test this feature, that is the MIC input, I have no idea if it works yet as I don't have a MIC to test it with.
Again I hope this helps.
Brad
I know a few people have had issues and I myself was having issues that I seem to have resolved this evening and I hope that my experience may help someone else.
I'm using a Pi3 with a HiFi Berry AMP2 and a USB sound sound card with line out and mic in.
Ok so I am going to have to try and explain myself as best I can and remember the steps I took.
Firstly I had Audio working in Raspbian through the DAC but not OAP (no drivers installed manually, Raspbian picked them up automatically), it turns out that even if you set the DAC as the primary in ALSA or even in Pulse OAP ignores this and trys to use the USB sound card. To resolve this I changed the sound card from "analogue stereo output with mono mic input" (or words to that effect) to "mono mic input" in the pulse configuration tab. This forced the sound through the DAC which was great, even volume control was working! But...
The audio through bluetooth was horrendous, clicking and popping and just a terrible experience. A lot of messing around later and checking on pulse forums and troubleshooting guides, most of the fixes for this are already implemented in the install from OAP, in fact I think all were. However I kept just changing things and seeing what happened, upping the sampling rate etc none worked and were reverted back to stock. Until I went into the "playback" tab in pulse and showed "all streams" and then changed "snd_rpi_hifiberry_dacplus analogue stereo" on the loopback to "snd_rpi_hifiberry_dacplus analogue stereo (echo cancelled with USB Audio Device Analogue Mono)". This resolved the audio clarity issues perfectly. But you guessed it, it broke something else, this time the volume control...
So, good audio and from the DAC but no volume control from within OAP, in fact I had no volume control from the master slider either. To fix this I again turned to pulse forums and troubleshooting only to find the fixes already implemented. However under the "output devices" tab in pulse there is the option to dictate which device was controlled by the volume slider. To do this simply find your Analogue stereo hifiberry output and click the the green tick button next to the lock icon. But you know something else is going to break right? yup, phone calls.
The phone calls were fixed easily however, in fact i worked out the phone calls weren't working before finding the green tick so I figured a good ol' reboot might be in order to reset everything. It was, so now everything is working as I want but it has only been about an hour of me listening to music from it to test and a test phone call and one real phone call using the handset over bluetooth due to the caveat below.
This is the caveat I must mention as I am yet to test this feature, that is the MIC input, I have no idea if it works yet as I don't have a MIC to test it with.
Again I hope this helps.
Brad