summaryrefslogtreecommitdiff
path: root/qcom
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2020-02-26 13:28:54 +0530
committerTodd Kjos <tkjos@google.com>2020-04-25 15:24:46 +0000
commit65502d4b52be218340911dd902d6f068e2924e37 (patch)
tree0ccfc57d8c212ce350719b7d17611235ed6eb3d1 /qcom
parent1641199f230d7926891a9c6a9d09b6c9b8f411db (diff)
audio: Set Analog and HDMI mixer controls
Set Analog and HDMI mixer controls for db845c on boot completion using tinymix. Put a 1 second sleep in-between pd-mapper and tinymix to let sound/codecs initialized properly before setting mixer controls. Also made sure that audio out interface is ready before audioserver service get started. Change-Id: Ib321559815e5d22d224fc36a1fe6c21f52df3eec Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'qcom')
-rw-r--r--qcom/init.qcom.rc28
1 files changed, 27 insertions, 1 deletions
diff --git a/qcom/init.qcom.rc b/qcom/init.qcom.rc
index 6325127..5867179 100644
--- a/qcom/init.qcom.rc
+++ b/qcom/init.qcom.rc
@@ -19,6 +19,33 @@ service rmtfs /vendor/bin/rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-na
disabled
oneshot
+on post-fs
+ start pd_mapper
+ exec - root -- /system/bin/sleep 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
+
on post-fs-data
mkdir /data/vendor
mkdir /data/vendor/tmp
@@ -27,6 +54,5 @@ on post-fs-data
mkdir /data/vendor/readonly/firmware
mkdir /data/vendor/readonly/firmware/image
write /sys/class/firmware/timeout 1
- start pd_mapper
start tqftpserv
start rmtfs