• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Revision7fbe9f54a4457edc13128a1b89314aedbc36d216 (tree)
Time2016-08-08 16:41:54
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

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).

Change Summary

Incremental Difference

--- a/init.sh
+++ b/init.sh
@@ -32,6 +32,10 @@ function init_hal_audio()
3232 *)
3333 ;;
3434 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
3539 }
3640
3741 function init_hal_bluetooth()