音效設備選擇問題
近日發現B760的板子上音效設備問題,有點出乎意料,這裡做個經驗分享,當做日後樂友參考用。就以小弟的設備為例來說明。
小弟把BIOS 的HD Audio 打開。下圖列出包含USB DDC加上主機板的音效、HDMI聲音輸出:
audio_device.png
B760的狀況是,板子上的設備如何選都不出聲,包括HDMI。後來用root 執行 alpay -l 列出設備實際狀況:
代碼:
[root@ArchQ: music]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audio [Nowna Audio], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: => hw:0, (小弟的USB DAC)
card 1: => hw:1, (電腦的音效設備,B760 會把HDMI 拆成另一個card)
device 0 => hw: ,0; device 1 => hw: ,1; ....
所以實際的設備代號:
card 0 device 0 (USB Audio) => hw:0,0
card 1 device 3 (HDMI 0) => hw:1,3
因為B760 用選單列出的資訊和aplay -l 實體列出的對不上,mpd 都不能操作播放,只好手動修改。
如果要用(HDMI 0), 這時在選單裡只有hw:0,0可選,就只能先選hw:0,0,之後在/etc/mpd, /etc/squeezelite, /etc/shairport-sync(airplay) 裡修改為 hw:1,3。
不過大部份的樂友都會買USB DAC,加上主機板的HDMI 用Q352H 也不見得支援,所以這類問題很難碰上。