summaryrefslogtreecommitdiffstats
path: root/configs/tinyucm.conf
diff options
context:
space:
mode:
Diffstat (limited to 'configs/tinyucm.conf')
-rw-r--r--configs/tinyucm.conf76
1 files changed, 64 insertions, 12 deletions
diff --git a/configs/tinyucm.conf b/configs/tinyucm.conf
index f040eb2..8d7b9d1 100644
--- a/configs/tinyucm.conf
+++ b/configs/tinyucm.conf
@@ -20,7 +20,8 @@ BluetoothLink 2
ModifierFile "default_gain.conf"
INOUT_MAP {
- { "Speaker", "Builtin Mic" },
+ { "Earpiece", "Builtin Mic" },
+ { "Speaker", "Back Mic" },
{ "Headset Out", "Headset In" },
{ "Headphone", "Builtin Mic" },
{ "SCO Headset Out", "SCO Headset In" },
@@ -29,6 +30,7 @@ INOUT_MAP {
INPUT_CHANNEL_MAP {
{ "Builtin Mic", "Left" },
+ { "Back Mic", "Right" },
{ "Headset In", "Right" },
{ "SCO Headset In", "Left" },
}
@@ -132,6 +134,14 @@ Core {
// Should really add aliasing; headset and headphone are the same thing
// and we should refcount appropriately (ditto for speaker/earpiece on
// some low end devices)
+Device "Earpiece" {
+ Enable {
+ { "RCV Switch", 1 },
+ }
+ Disable {
+ { "RCV Switch", 0 },
+ }
+}
Device "Speaker" {
Enable {
@@ -224,10 +234,14 @@ Device "Builtin Mic" {
Enable {
{ "Main Mic Switch", 1 },
{ "AIF1ADCL Source", "Left" },
- { "AIF1ADCR Source", "Left" },
+// { "AIF1ADCR Source", "Left" },
{ "AIF2ADCL Source", "Left" },
{ "AIF2ADCR Source", "Left" },
{ "MIXINL IN1L Switch", 1 },
+ { "AIF2DAC2L Mixer Left Sidetone Switch", 1 },
+ { "AIF2DAC2L Mixer Right Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Right Sidetone Switch", 0 },
}
Disable {
{ "Main Mic Switch", 0 },
@@ -235,6 +249,25 @@ Device "Builtin Mic" {
}
}
+Device "Back Mic" {
+ Enable {
+ { "Sub Mic Switch", 1 },
+// { "AIF1ADCL Source", "Right" },
+ { "AIF1ADCR Source", "Right" },
+ { "AIF2ADCL Source", "Right" },
+ { "AIF2ADCR Source", "Right" },
+ { "MIXINR IN2R Switch", 1 },
+ { "AIF2DAC2L Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2L Mixer Right Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Right Sidetone Switch", 1 },
+ }
+ Disable {
+ { "Sub Mic Switch", 0 },
+ { "MIXINR IN2R Switch", 0 },
+ }
+}
+
Device "Headset In" {
Enable {
{ "Headset Mic Switch", 1 },
@@ -243,6 +276,10 @@ Device "Headset In" {
{ "AIF2ADCL Source", "Right" },
{ "AIF2ADCR Source", "Right" },
{ "MIXINR IN1R Switch", 1 },
+ { "AIF2DAC2L Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2L Mixer Right Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Right Sidetone Switch", 1 },
}
Disable {
{ "Headset Mic Switch", 0 },
@@ -259,6 +296,10 @@ Device "SCO Headset In" {
{ "AIF2ADCR Source", "Left" },
{ "AIF1ADC1R Mixer AIF2 Switch", 1 },
{ "AIF1ADC1L Mixer AIF2 Switch", 1 },
+ { "AIF2DAC2L Mixer Left Sidetone Switch", 1 },
+ { "AIF2DAC2L Mixer Right Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Left Sidetone Switch", 0 },
+ { "AIF2DAC2R Mixer Right Sidetone Switch", 1 },
}
Disable {
{ "AIF2ADC Mux", 0 },
@@ -267,6 +308,17 @@ Device "SCO Headset In" {
}
}
+Device "Voice Call" {
+ Enable {
+ { "DAC1L Mixer AIF1.1 Switch", 1 },
+ { "DAC1R Mixer AIF1.1 Switch", 1 },
+ }
+ Disable {
+ { "DAC1L Mixer AIF1.1 Switch", 1 },
+ { "DAC1R Mixer AIF1.1 Switch", 1 },
+ }
+}
+
#Verb Stage
#Currently just using normal and voicecall
#Normal, Voicecall
@@ -313,23 +365,23 @@ Verb "Voicecall" {
Enable {
{ "HP Output Mode", 0 },
{ "AIF2 Mode", 0 },
-//left:0, right:1
- { "AIF2DACL Source", 0 },
- { "AIF2DACR Source", 0 },
{ "DAC1L Mixer AIF1.1 Switch", 1 },
{ "DAC1R Mixer AIF1.1 Switch", 1 },
{ "DAC1L Mixer AIF2 Switch", 1 },
{ "DAC1R Mixer AIF2 Switch", 1 },
+//left:0, right:1
+ { "AIF2DACL Source", 0 },
+ { "AIF2DACR Source", 0 },
{ "AIF2DAC Mux", "AIF2DACDAT" },
}
Disable {
{ "AIF2 Mode", 0 },
- { "AIF2DACL Source", 0 },
- { "AIF2DACR Source", 1 },
// { "DAC1L Mixer AIF1.1 Switch", 0 },
// { "DAC1R Mixer AIF1.1 Switch", 0 },
{ "DAC1L Mixer AIF2 Switch", 0 },
{ "DAC1R Mixer AIF2 Switch", 0 },
+ { "AIF2DACL Source", 0 },
+ { "AIF2DACR Source", 1 },
{ "AIF2DAC Mux", "AIF2DACDAT" },
}
}
@@ -338,25 +390,25 @@ Verb "Loopback" {
Enable {
{ "HP Output Mode", 0 },
{ "AIF2 Mode", 0 },
-//left:0, right:1
- { "AIF2DACL Source", 0 },
- { "AIF2DACR Source", 0 },
{ "DAC1L Mixer AIF1.1 Switch", 1 },
{ "DAC1R Mixer AIF1.1 Switch", 1 },
{ "DAC1L Mixer AIF2 Switch", 1 },
{ "DAC1R Mixer AIF2 Switch", 1 },
+//left:0, right:1
+ { "AIF2DACL Source", 0 },
+ { "AIF2DACR Source", 0 },
{ "AIF2DAC Mux", "AIF2DACDAT" },
{ "AIF2DAC2L Mixer AIF2 Switch", 0 },
{ "AIF2DAC2R Mixer AIF2 Switch", 0 },
}
Disable {
{ "AIF2 Mode", 0 },
- { "AIF2DACL Source", 0 },
- { "AIF2DACR Source", 1 },
// { "DAC1L Mixer AIF1.1 Switch", 0 },
// { "DAC1R Mixer AIF1.1 Switch", 0 },
{ "DAC1L Mixer AIF2 Switch", 0 },
{ "DAC1R Mixer AIF2 Switch", 0 },
+ { "AIF2DACL Source", 0 },
+ { "AIF2DACR Source", 1 },
{ "AIF2DAC Mux", "AIF2DACDAT" },
}
}