OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48acfb4
)
init.sh: support IntelHDMI audio HAL
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 8 Aug 2016 07:41:54 +0000
(15:41 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 8 Aug 2016 07:41:54 +0000
(15:41 +0800)
Only enable IntelHDMI audio HAL if it's the only sound card.
It doesn't work on devices other than ASUS ViVoStick (TS10).
init.sh
patch
|
blob
|
history
diff --git
a/init.sh
b/init.sh
index
caec377
..
e9bbb98
100644
(file)
--- 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()