OSDN Git Service

a764d82d6110dac3e8f6f99af02a8543603d11d7
[android-x86/external-alsa-ucm-conf.git] / ucm2 / codecs / rt5672 / HeadsetMic.conf
1 SectionDevice."Headset" {
2         Comment "Headset Microphone"
3
4         ConflictingDevice [
5                 "Mic1"
6                 "Mic2"
7         ]
8
9         EnableSequence [
10                 cset "name='Headset Mic Switch' on"
11                 cset "name='RECMIXL BST1 Switch' on"
12                 cset "name='RECMIXR BST1 Switch' on"
13                 cset "name='Sto1 ADC MIXL ADC1 Switch' on"
14                 cset "name='Sto1 ADC MIXR ADC1 Switch' on"
15                 # For unknown reasons the headset mic sound is only recorded
16                 # on the left channel, we tweak the data-stream reception to
17                 # use the left samples for both slots, so that we get a stereo
18                 # stream with the mic sound on both channels
19                 cset "name='codec_in rx deinterleaver codec_in0_1' 1"
20         ]
21
22         DisableSequence [
23                 cset "name='Headset Mic Switch' off"
24                 cset "name='RECMIXL BST1 Switch' off"
25                 cset "name='RECMIXR BST1 Switch' off"
26                 cset "name='Sto1 ADC MIXL ADC1 Switch' off"
27                 cset "name='Sto1 ADC MIXR ADC1 Switch' off"
28                 # Undo data-stream reception mono-mix workaround
29                 cset "name='codec_in rx deinterleaver codec_in0_1' 2"
30         ]
31
32         Value {
33                 CapturePriority 300
34                 CapturePCM "hw:${CardId}"
35                 JackControl "Headset Mic Jack"
36         }
37 }