OSDN Git Service

init.sh: handle new IntelHdmiLpeAudio driver
[android-x86/device-generic-common.git] / 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
 }