Last active
August 15, 2021 12:54
-
-
Save metzenseifner/86c9f9259267027a5d8b160c30026f15 to your computer and use it in GitHub Desktop.
Force Analog Audio on Raspberry Pi 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
echo "dtparam=audio=on" >> /boot/config.txt | |
echo "audio_pwm_mode=2" >> /boot/config.txt | |
echo "disable_audio_dither=1 # remove analog audible background hiss at low volume (did not work for me)" >> /boot/config.txt | |
echo "#hdmi_drive=1 # 1: DVI (no sound) 2: HDMI (sound if supported and enabled)" >> /boot/config.txt | |
echo "#amixer cset numid=3 1 # Did not work for me 0=auto 1=analog 2=HDMI (careful, number directly after = should be 2)" >> /boot/config.txt | |
echo "# Force analog audio" >> /boot/config.txt | |
echo "hdmi_ignore_edid_audio=1" >> /boot/config.txt | |
echo "hdmi_force_edid_audio=0" >> /boot/config.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your code saved me!
thank you very much