I installed MPD on a PI-zero and want to use HDMI as the output.
Therefore I have a HDMI audio splitter connected to HDMI jack.
Running the utility "aplay" and "speaker-test" gives no problem.
So the HW path is ok.
In the mpd.conf I have the following:
audio_output {
type "alsa"
name "HDMI"
device "hw:2"
}
Also tried hw:0 and hw:1
What is the meaning of the number in "hw:2" ?
Or sometimes I see "hw:0,0". A second parameter.
Is this documented somewhere?
Anyway the result is silence.
Please who can help me out?
Regards, Wim
PI-zero and HDMI audio
Re: PI-zero and HDMI audio
I have:
It's "hw:0,1" because "aplay -l" shows:
card 0, device 1 ("hw:0,1") is the HDMI output.
Your question had nothing to do with MPD; it was a bare ALSA question.
Code: Select all
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,1"
}
Code: Select all
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Your question had nothing to do with MPD; it was a bare ALSA question.
Re: PI-zero and HDMI audio
Thanks Max, I will try this tomorrow.
Why is the meaning of this line in the /boot/config.txt
Hdmi drive = 2 ?
Why is the meaning of this line in the /boot/config.txt
Hdmi drive = 2 ?
Re: PI-zero and HDMI audio
My Pi3 doesn't have any HDMI options in /boot/config.txt, and I don't know what this option means. All I can say is that it works without any bootloader configuration.