From: Chih-Wei Huang Date: Mon, 8 Aug 2016 07:41:54 +0000 (+0800) Subject: init.sh: support IntelHDMI audio HAL X-Git-Tag: android-x86-6.0-r1~5 X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=7fbe9f54a4457edc13128a1b89314aedbc36d216;p=android-x86%2Fdevice-generic-common.git init.sh: support IntelHDMI audio HAL Only enable IntelHDMI audio HAL if it's the only sound card. It doesn't work on devices other than ASUS ViVoStick (TS10). --- diff --git a/init.sh b/init.sh index caec377..e9bbb98 100644 --- a/init.sh +++ b/init.sh @@ -32,6 +32,10 @@ function init_hal_audio() *) ;; esac + + if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then + [ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi + fi } function init_hal_bluetooth()