On 06/01/2018 15:58, Børge Strand-Bergesen wrote:
> The only thing lacking in that department is to have GMPC control
> the hardware volume through mpd. Not sure which mpd.conf details to
> use for that.
check mpd.conf man page:
https://linux.die.net/man/5/mpd.conf
Should be something like this:
audio_output {
type "alsa"
name "Audio Widget"
device "hw:MYDAC"
mixer_type "hardware"
mixer_device "hw:MYDAC"
mixer_control "name_of_the_alsa_mixer_control"
replay_gain_handler "mixer"
}
But, beware: in this example (type "alsa") you are accessing the ALSA
output and mixer device directly, by-passing pulseaudio. Obviously, the
volume control on pulseaudio will not work. Worse yet, PA may take over
the ALSA device itself, preventing MPD to do the same.
Thus, if you want to use PA, maybe you should rather configure MPD to
use PA interface instead of ALSA:
https://askubuntu.com/questions/555103/mpd-with-pulseaudio#555484
audio_output {
type "pulse"
name "My PULSE Device"
server "localhost"
}
("server" refers to the pulse audio server... which may also act as a
remote network audio server).
> However, in UAC2 I get no response from pavucontrol while running music
> through mpd. I can move the bar back and forth, but no commands are
> recorded by the DAC, and listening volume seems the same.
this may depend from the above... keep in mind that if you use ALSA
directly device names (particularly mixer device) may differ whan using
UAC2 rather than UAC1.
> I also try UAC2 + VLC + pavucontrol. This does give me a volume control
> response in pavucontrol, but it seems it is only internal to the PC. The
> DAC does not receive volume change commands. This is also the behaviour
> I see from music players on Android on UAC2.
Then perhaps you are not properly exporting the mixer interface in UAC2...
> I have firmware (with and without verbose UART debug) which will run
> this on Audio Widget hardware. Let me know if you have hardware and want
> to give it a shot.
I only have the old AB1.1 (the one with ESS9023), which I guess have no
volume control.
Ciao,
Paolo.
--
http://borex.lngs.infn.it/
http://www.facebook.com/saggese.paolo