summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-05-18 20:48:22 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-05-18 20:48:22 +0200
commit5ee6fcc0f439c1ce485e93ed5496f4963d3195e3 (patch)
tree13ec7d4151eadd618e4f28f7b627564220892e31
parente0c42098365792c6a5307066810963b1926fd26d (diff)
downloaddevice_goldelico_gta04-5ee6fcc0f439c1ce485e93ed5496f4963d3195e3.zip
device_goldelico_gta04-5ee6fcc0f439c1ce485e93ed5496f4963d3195e3.tar.gz
device_goldelico_gta04-5ee6fcc0f439c1ce485e93ed5496f4963d3195e3.tar.bz2
tinyalsa-audio.xml: Headset configurations
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--configs/tinyalsa-audio.xml55
1 files changed, 42 insertions, 13 deletions
diff --git a/configs/tinyalsa-audio.xml b/configs/tinyalsa-audio.xml
index 7283e00..f0539f2 100644
--- a/configs/tinyalsa-audio.xml
+++ b/configs/tinyalsa-audio.xml
@@ -5,18 +5,17 @@
<device type="default">
<path type="enable">
- <ctrl name="DAC1 Digital Fine Playback Volume" value="60" />
- <ctrl name="DAC2 Digital Fine Playback Volume" value="60" />
- <ctrl name="DAC1 Digital Coarse Playback Volume" value="0" />
- <ctrl name="DAC2 Digital Coarse Playback Volume" value="0" />
+ <ctrl name="DAC1 Digital Fine Playback Volume" value="60" />
+ <ctrl name="DAC2 Digital Fine Playback Volume" value="60" />
+ <ctrl name="DAC1 Digital Coarse Playback Volume" value="0" />
+ <ctrl name="DAC2 Digital Coarse Playback Volume" value="0" />
- <ctrl name="DAC1 Analog Playback Volume" value="16" />
- <ctrl name="DAC2 Analog Playback Volume" value="16" />
+ <ctrl name="Headset Playback Volume" value="1" />
- <ctrl name="TX1 Digital Capture Volume" value="12" />
- <ctrl name="TX2 Digital Capture Volume" value="12" />
+ <ctrl name="TX1 Digital Capture Volume" value="12" />
+ <ctrl name="TX2 Digital Capture Volume" value="12" />
- <ctrl name="Analog Capture Volume" value="5" />
+ <ctrl name="Analog Capture Volume" value="5" />
</path>
</device>
<device type="earpiece">
@@ -29,16 +28,46 @@
<ctrl name="Earpiece Playback Volume" value="0" />
</path>
</device>
- <device type="speaker">
- <path type="enable">
+ <device type="speaker">
+ <path type="enable">
+ <ctrl name="DAC1 Analog Playback Volume" value="16" />
+ <ctrl name="DAC2 Analog Playback Volume" value="16" />
<ctrl name="HandsfreeL Mux" value="AudioL2" />
<ctrl name="HandsfreeR Mux" value="AudioR2" />
<ctrl name="HandsfreeL Switch" value="on" />
<ctrl name="HandsfreeR Switch" value="on" />
- </path>
- <path type="disable">
+ </path>
+ <path type="disable">
<ctrl name="HandsfreeL Switch" value="off" />
<ctrl name="HandsfreeR Switch" value="off" />
+ </path>
+ </device>
+ <device type="wired-headphone">
+ <path type="enable">
+ <write name="/sys/class/gpio/gpio55/value" value="1" />
+ <ctrl name="DAC1 Analog Playback Volume" value="10" />
+ <ctrl name="DAC2 Analog Playback Volume" value="10" />
+ <ctrl name="HeadsetR Mixer AudioR2" value="on" />
+ <ctrl name="HeadsetL Mixer AudioL2" value="on" />
+ </path>
+ <path type="disable">
+ <write name="/sys/class/gpio/gpio55/value" value="0" />
+ <ctrl name="HeadsetR Mixer AudioR2" value="off" />
+ <ctrl name="HeadsetL Mixer AudioL2" value="off" />
+ </path>
+ </device>
+ <device type="wired-headset">
+ <path type="enable">
+ <write name="/sys/class/gpio/gpio55/value" value="1" />
+ <ctrl name="DAC1 Analog Playback Volume" value="10" />
+ <ctrl name="DAC2 Analog Playback Volume" value="10" />
+ <ctrl name="HeadsetR Mixer AudioR2" value="on" />
+ <ctrl name="HeadsetL Mixer AudioL2" value="on" />
+ </path>
+ <path type="disable">
+ <write name="/sys/class/gpio/gpio55/value" value="0" />
+ <ctrl name="HeadsetR Mixer AudioR2" value="off" />
+ <ctrl name="HeadsetL Mixer AudioL2" value="off" />
</path>
</device>
</output>