Update for h616 hdmi audio

This commit is contained in:
orangepi-xunlong
2021-11-26 19:27:29 +08:00
parent b1526e13c9
commit 35223e0cd3
6 changed files with 440 additions and 18 deletions

View File

@@ -88,6 +88,16 @@ prepare_board() {
# IRQ distribution based on $BOARDFAMILY and/or $BOARD_NAME
case ${BOARD} in
orangepizero2|orangepi3-lts)
if [[ $BRANCH == current ]]; then
# Initial hdmi audio
aplay /usr/share/sounds/alsa/audio.wav -D hw:0,0 > /dev/null 2>&1
aplay /usr/share/sounds/alsa/audio.wav -D hw:1,0 > /dev/null 2>&1
fi
if [[ $BRANCH == legacy ]]; then
aplay /usr/share/sounds/alsa/audio.wav -D hw:2,0 > /dev/null 2>&1
fi
rfkill unblock all
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
;;