device/generic/common
Revision | 7fbe9f54a4457edc13128a1b89314aedbc36d216 (tree) |
---|---|
Time | 2016-08-08 16:41:54 |
Author | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
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).
@@ -32,6 +32,10 @@ function init_hal_audio() | ||
32 | 32 | *) |
33 | 33 | ;; |
34 | 34 | esac |
35 | + | |
36 | + if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then | |
37 | + [ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi | |
38 | + fi | |
35 | 39 | } |
36 | 40 | |
37 | 41 | function init_hal_bluetooth() |