fix hdmi audio on rpi
This commit is contained in:
parent
fdb33812ac
commit
3c915fbf88
|
|
@ -195,10 +195,10 @@ create_install() {
|
||||||
|
|
||||||
info "Doing device specific setups for $DEVICE..."
|
info "Doing device specific setups for $DEVICE..."
|
||||||
if [[ "$DEVICE" = "rpi2" ]] || [[ "$DEVICE" = "rpi3" ]]; then
|
if [[ "$DEVICE" = "rpi2" ]] || [[ "$DEVICE" = "rpi3" ]]; then
|
||||||
echo "dtparam=audio=on" | tee --append $TMPDIR/root/boot/config.txt
|
echo "dtparam=audio=on" | tee --append $TMPDIR/root/boot/config.txt 1> /dev/null 2>&1
|
||||||
echo "hdmi_drive=2" | tee --append $TMPDIR/root/boot/config.txt
|
echo "blacklist vchiq" | tee --append $TMPDIR/root/etc/modprobe.d/blacklist-vchiq.conf 1> /dev/null 2>&1
|
||||||
echo "audio_pwm_mode=2" | tee --append $TMPDIR/root/boot/config.txt
|
echo "blacklist snd_bcm2835" | tee --append $TMPDIR/root/etc/modprobe.d/blacklist-vchiq.conf 1> /dev/null 2>&1
|
||||||
echo "/dev/mmcblk0p1 /boot vfat defaults 0 0" | tee --append $TMPDIR/root/etc/fstab
|
echo "/dev/mmcblk0p1 /boot vfat defaults 0 0" | tee --append $TMPDIR/root/etc/fstab 1> /dev/null 2>&1
|
||||||
elif [[ "$DEVICE" = "oc1" ]] || [[ "$DEVICE" = "oc2" ]]; then
|
elif [[ "$DEVICE" = "oc1" ]] || [[ "$DEVICE" = "oc2" ]]; then
|
||||||
$NSPAWN $TMPDIR/root systemctl enable amlogic.service 1> /dev/null 2>&1
|
$NSPAWN $TMPDIR/root systemctl enable amlogic.service 1> /dev/null 2>&1
|
||||||
elif [[ "$DEVICE" = "on2" ]]; then
|
elif [[ "$DEVICE" = "on2" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue