樹莓派上遇到的一些audio問題

樹莓派的聲音輸出一直是個known issue.
紀錄一下一些處理方式,但也不是每一個情況都適用
只能多試試看了

另外如果安裝了hassio
那 hassio_audio會搶走host的audio控制權
好心人士寫了暫時的patch可處理

config.txt

在 /boot/config.txt 中,有以下可以嘗試

# Setting hdmi_force_hotplug to 1 pretends that the HDMI hotplug signal is asserted, so it appears that a HDMI display is attached. In other words, HDMI output mode will be used, even if no HDMI monitor is detected.
hdmi_force_hotplug=1

# forces HDMI mode
hdmi_drive=2

# Pretends all audio formats are supported by display, allowing passthrough of DTS/AC even when not reported as supported.
# May not be needed for all HDMI devices
hdmi_force_edid_audio=1

#shift audio (and CEC) to HDMI1 or 0
hdmi_preferred=1

這邊有些資訊可以參考

手動切換 mixer mixer 輸出裝置

amixer -q cset numid=3 2

最後一碼數字
  • 0 = Auto
  • 1 = Analog
  • 2 = HDMI 0
  • 3 = HDMI 1

pulseAudio方法

安裝 pulseAudio
sudo apt-get install pulseaudio
sudo reboot

重啟後,移除 pulseAudio
sudo apt-get remove pulseaudio
sudo apt autoremove
sudo /etc/init.d/alsa-utils reset
sudo reboot



相關系列文章:

留言

這個網誌中的熱門文章

[TCL] 基本語法與指令 - 2. TCL 語法

[TCL] 基本語法與指令 - 1. TCL 簡介

[TCL] 基本語法與指令 - 3. 資料型態