OSDN Git Service

init.sh: handle new IntelHdmiLpeAudio driver
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 25 Mar 2017 11:27:26 +0000 (19:27 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 25 Mar 2017 11:27:26 +0000 (19:27 +0800)
The driver has already queued for kernel 4.11.

init.sh

diff --git a/init.sh b/init.sh
index 2c0999f..dfe465a 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -36,7 +36,7 @@ function init_hal_audio()
                        ;;
        esac
 
-       if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then
+       if grep -qi "IntelHDMI" /proc/asound/card0/id; then
                [ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi
        fi
 }