diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2020-02-26 13:28:54 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2020-03-30 18:57:11 +0530 |
commit | 59a43beddbc4468d3e34d7211d3ea8ef3ea84e1c (patch) | |
tree | 62440f0940c7212dcbeb1eed4a09a42ebd4739f3 | |
parent | e62d2e6075379f82a7aa6d3a8017cb3e55b91e2b (diff) |
db845c: audio: Set Analog and HDMI mixer controlsaudio
Set Analog and HDMI mixer controls on boot using tinymix.
Change-Id: Ib321559815e5d22d224fc36a1fe6c21f52df3eec
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | qcom/init.qcom.rc | 25 | ||||
-rw-r--r-- | sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | sepolicy/tinymix.te | 7 |
3 files changed, 34 insertions, 0 deletions
diff --git a/qcom/init.qcom.rc b/qcom/init.qcom.rc index 303fc9a..4aaacb0 100644 --- a/qcom/init.qcom.rc +++ b/qcom/init.qcom.rc @@ -41,3 +41,28 @@ on post-fs-data write /sys/class/firmware/timeout 1 start tqftpserv start rmtfs + +on property:sys.boot_completed=1 + exec - system audio -- /system/bin/tinymix "QUAT_MI2S_RX Audio Mixer MultiMedia1" 1 + exec - system audio -- /system/bin/tinymix "SLIM RX0 MUX" AIF1_PB + exec - system audio -- /system/bin/tinymix "SLIM RX0 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX1 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX2 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX3 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX4 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX5 MUX" ZERO + exec - system audio -- /system/bin/tinymix "SLIM RX6 MUX" AIF1_PB + exec - system audio -- /system/bin/tinymix "SLIM RX7 MUX" AIF1_PB + exec - system audio -- /system/bin/tinymix "RX INT7_1 MIX1 INP0" RX6 + exec - system audio -- /system/bin/tinymix "RX INT8_1 MIX1 INP0" RX7 + exec - system audio -- /system/bin/tinymix "COMP7 Switch" 1 + exec - system audio -- /system/bin/tinymix "COMP8 Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrLeft COMP Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrLeft BOOST Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrLeft VISENSE Switch" 0 + exec - system audio -- /system/bin/tinymix "SpkrLeft DAC Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrRight COMP Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrRight BOOST Switch" 1 + exec - system audio -- /system/bin/tinymix "SpkrRight VISENSE Switch" 0 + exec - system audio -- /system/bin/tinymix "SpkrRight DAC Switch" 1 + exec - system audio -- /system/bin/tinymix "SLIMBUS_0_RX Audio Mixer MultiMedia2" 1 diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 165f3b3..fe631ae 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -29,6 +29,8 @@ /data/vendor/readwrite(/.*)? u:object_r:tqftpserv_vendor_data_file:s0 /data/vendor/readonly(/.*)? u:object_r:tqftpserv_vendor_data_file:s0 +/system/bin/tinymix u:object_r:tinymix_exec:s0 + /vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software u:object_r:hal_gatekeeper_default_exec:s0 /vendor/bin/pd-mapper u:object_r:pd_mapper_exec:s0 /vendor/bin/qrtr-cfg u:object_r:qrtr_exec:s0 diff --git a/sepolicy/tinymix.te b/sepolicy/tinymix.te new file mode 100644 index 0000000..75dc071 --- /dev/null +++ b/sepolicy/tinymix.te @@ -0,0 +1,7 @@ +type tinymix, domain, coredomain; +type tinymix_exec, exec_type, system_file_type, file_type; + +init_daemon_domain(tinymix) + +allow tinymix audio_device:chr_file { ioctl open read write }; +allow tinymix audio_device:dir search; |