TEMP: mixer paths testing
The HAL side is all hooked up, now we just need to right mixer paths to
enable output device switching on the codec side. Almost there!
diff --git a/etc/audio_policy_configuration.xml b/etc/audio_policy_configuration.xml
index fec99cc..a068541 100644
--- a/etc/audio_policy_configuration.xml
+++ b/etc/audio_policy_configuration.xml
@@ -73,7 +73,7 @@
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
- <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
+ <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink" >
</devicePort>
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
</devicePort>
diff --git a/etc/mixer_paths.xml b/etc/mixer_paths.xml
index 0c85d5b..a740922 100644
--- a/etc/mixer_paths.xml
+++ b/etc/mixer_paths.xml
@@ -2,9 +2,59 @@
<mixer>
<!-- Enable Internal speaker -->
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
+ <ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia2' 1" />
<ctl name="MultiMedia3 Mixer SLIMBUS_0_TX" value="1" />
- <ctl name="Amp DSP Switch" value="1" />
+ <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
+ <ctl name="SLIM RX0 MUX" value="AIF1_PB" />
+ <ctl name="SLIM RX1 MUX" value="AIF1_PB" />
+ <ctl name="SLIM RX2 MUX" value="ZERO" />
+ <ctl name="SLIM RX3 MUX" value="ZERO" />
+ <ctl name="SLIM RX4 MUX" value="ZERO" />
+ <ctl name="SLIM RX5 MUX" value="ZERO" />
+ <ctl name="SLIM RX6 MUX" value="ZERO" />
+ <ctl name="SLIM RX7 MUX" value="ZERO" />
+ <ctl name="RX INT7_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX INT8_1 MIX1 INP0" value="RX1" />
+ <ctl name="RX INT1_2 MUX" value="RX0" />
+ <ctl name="RX INT2_2 MUX" value="RX1" />
<ctl name="CDC_IF TX7 MUX" value="DEC7" />
+
+ <ctl name="COMP1 Switch" value="1" />
+ <ctl name="COMP2 Switch" value="1" />
+ <ctl name="COMP7 Switch" value="0" />
+ <ctl name="COMP8 Switch" value="0" />
+
+ <!-- Default speaker -->
+ <ctl name="Amp DSP Switch" value="0" />
+
+ <!-- Default headphones -->
+ <ctl name="RX INT1_1 MIX1 INP0" value="ZERO" />
+ <ctl name="RX INT2_1 MIX1 INP0" value="ZERO" />
+ <ctl name="RX INT1_1 INTERP" value="ZERO" />
+ <ctl name="RX INT2_1 INTERP" value="ZERO" />
+ <ctl name="RX INT1 DEM MUX" value="NORMAL_DSM_OUT" />
+ <ctl name="RX INT2 DEM MUX" value="NORMAL_DSM_OUT" />
+ <ctl name="COMP1 Switch" value="0" />
+ <ctl name="COMP2 Switch" value="0" />
+ <ctl name="RX1 Digital Volume" value="0" />
+ <ctl name="RX2 Digital Volume" value="0" />
+
+ <path name="speaker">
+ <ctl name="Amp DSP Switch" value="1" />
+ </path>
+
+ <path name="wired-headset">
+ <ctl name="RX INT1_1 MIX1 INP0" value="RX0" />
+ <ctl name="RX INT2_1 MIX1 INP0" value="RX1" />
+ <ctl name="RX INT1_1 INTERP" value="RX INT1_1 MIX1" />
+ <ctl name="RX INT2_1 INTERP" value="RX INT2_1 MIX1" />
+ <ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
+ <ctl name="COMP1 Switch" value="1" />
+ <ctl name="COMP2 Switch" value="1" />
+ <ctl name="RX1 Digital Volume" value="84" />
+ <ctl name="RX2 Digital Volume" value="84" />
+ </path>
</mixer>
@@ -26,4 +76,20 @@
tinymix "RX INT1_2 MUX" RX0
tinymix "RX INT2_2 MUX" RX1
-tinymix "Amp DSP Switch" 1 -->
\ No newline at end of file
+tinymix "Amp DSP Switch" 1
+
+
+
+# headphones
+tinymix "RX INT1_1 MIX1 INP0" RX0
+tinymix "RX INT2_1 MIX1 INP0" RX1
+tinymix "RX INT1_1 INTERP" RX INT1_1 MIX1
+tinymix "RX INT2_1 INTERP" RX INT2_1 MIX1
+tinymix "RX INT1 DEM MUX" CLSH_DSM_OUT
+tinymix "RX INT2 DEM MUX" CLSH_DSM_OUT
+tinymix "COMP1 Switch" 1
+tinymix "COMP2 Switch" 1
+tinymix "RX1 Digital Volume" 84
+tinymix "RX2 Digital Volume" 84
+
+-->
\ No newline at end of file