diff options
Diffstat (limited to 'wm1811/hifi')
-rw-r--r-- | wm1811/hifi | 446 |
1 files changed, 446 insertions, 0 deletions
diff --git a/wm1811/hifi b/wm1811/hifi new file mode 100644 index 0000000..3468b2e --- /dev/null +++ b/wm1811/hifi @@ -0,0 +1,446 @@ +# Use case Configuration for Mobile device +# By Inha Song <ideal.song@samsung.com> + +SectionVerb { + EnableSequence [ +# Playback +## Gain + cset "name='AIF1DAC1 Volume' 96,96" +## Path + cset "name='DAC1 Switch' 1,1" + cset "name='DAC1L Mixer AIF1.1 Switch' 1" + cset "name='DAC1R Mixer AIF1.1 Switch' 1" +# Capture +## Path + cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 1" + cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 1" + ] + DisableSequence [ +# Playback + cset "name='DAC1 Switch' 0,0" + cset "name='DAC1L Mixer AIF1.1 Switch' 0" + cset "name='DAC1R Mixer AIF1.1 Switch' 0" +# Capture + cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0" + cset "name='AIF1ADC1R Mixer ADC/DMIC Switch' 0" + ] + + Value { + TQ "Music" + PlaybackCTL "hw:0" + CaptureCTL "hw:0" + } +} + +SectionDevice."Headphones" { + Comment "3.5mm Headphones" + + EnableSequence [ +# Gain + cset "name='Left Output Mixer DAC Volume' 7" + cset "name='Right Output Mixer DAC Volume' 7" + cset "name='Headphone Volume' 50,50" +# Path + cset "name='Right Headphone Mux' 0" + cset "name='Left Headphone Mux' 0" + cset "name='Right Output Mixer DAC Switch' 1" + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='Headphone Switch' 1,1" + cset "name='HP Switch' 1" + ] + + DisableSequence [ + cset "name='Right Output Mixer DAC Switch' 0" + cset "name='Left Output Mixer DAC Switch' 0" + cset "name='Headphone Switch' 0,0" + cset "name='HP Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + +SectionDevice."Speaker" { + Comment "built-in Speaker" + + EnableSequence [ +# Gain + cset "name='Speaker Mixer Volume' 3,3" + cset "name='Speaker Volume' 57,57" + cset "name='Speaker Boost Volume' 4,4" +# Path + cset "name='SPKL DAC1 Switch' 1" + cset "name='SPKR DAC1 Switch' 1" + cset "name='SPKL Boost SPKL Switch' 1" + cset "name='SPKR Boost SPKR Switch' 1" + cset "name='Speaker Switch' 1,1" + cset "name='SPK Switch' 1" + ] + + DisableSequence [ +# Path + cset "name='SPKL DAC1 Switch' 0" + cset "name='SPKR DAC1 Switch' 0" + cset "name='SPKL Boost SPKL Switch' 0" + cset "name='SPKR Boost SPKR Switch' 0" + cset "name='Speaker Switch' 0,0" + cset "name='SPK Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + +SectionDevice."Earpiece" { + Comment "built-in earpiece, receiver" + + EnableSequence [ +# Gain + cset "name='Output Volume' 61,61" +# Path + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='Right Output Mixer DAC Switch' 1" + cset "name='Earpiece Mixer Left Output Switch' 1" + cset "name='Earpiece Mixer Right Output Switch' 1" + cset "name='Output Switch' 1,1" + cset "name='Right Headphone Mux' 1" + cset "name='Left Headphone Mux' 1" + cset "name='Earpiece Switch' 1" + cset "name='RCV Switch' 1" + ] + + DisableSequence [ + cset "name='Left Output Mixer DAC Switch' 0" + cset "name='Right Output Mixer DAC Switch' 0" + cset "name='Earpiece Mixer Left Output Switch' 0" + cset "name='Earpiece Mixer Right Output Switch' 0" + cset "name='Output Switch' 0,0" + cset "name='Right Headphone Mux' 0" + cset "name='Left Headphone Mux' 0" + cset "name='Earpiece Switch' 0" + cset "name='RCV Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + +SectionDevice."Line" { + Comment "lineout for dock" + + EnableSequence [ +# Gain + cset "name='LINEOUT2 Volume' 0" +# Path + cset "name='Right Output Mixer DAC Switch' 1" + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='LINEOUT2N Mixer Left Output Switch' 1" + cset "name='LINEOUT2P Mixer Right Output Switch' 1" + cset "name='LINEOUT2N Switch' 1" + cset "name='LINEOUT2P Switch' 1" + cset "name='LINE Switch' 1" + ] + + DisableSequence [ +# Path + cset "name='Right Output Mixer DAC Switch' 0" + cset "name='Left Output Mixer DAC Switch' 0" + cset "name='LINEOUT2N Mixer Left Output Switch' 0" + cset "name='LINEOUT2P Mixer Right Output Switch' 0" + cset "name='LINEOUT2N Switch' 0" + cset "name='LINEOUT2P Switch' 0" + cset "name='LINE Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + +SectionDevice."HDMI" { + Comment "playback via HDMI" + + EnableSequence [ +# Path + cset "name='Right Output Mixer DAC Switch' 1" + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='LINEOUT1N Mixer Right Output Switch' 1" + cset "name='LINEOUT1P Mixer Left Output Switch' 1" + cset "name='LINEOUT1N Switch' 1" + cset "name='LINEOUT1P Switch' 1" + cset "name='HDMI Switch' 1" + ] + + DisableSequence [ + cset "name='Right Output Mixer DAC Switch' 0" + cset "name='Left Output Mixer DAC Switch' 0" + cset "name='LINEOUT1N Mixer Right Output Switch' 0" + cset "name='LINEOUT1P Mixer Left Output Switch' 0" + cset "name='LINEOUT1N Switch' 0" + cset "name='LINEOUT1P Switch' 0" + cset "name='HDMI Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + +SectionDevice."Bluetooth" { + Comment "bluetooth sco with codec master" + + EnableSequence [ +# Gain + cset "name='AIF1ADC1 Volume' 96,96" + cset "name='DAC2 Volume' 96,96" + cset "name='AIF2DAC Volume' 96,96" + cset "name='MIXINL IN1LP Volume' 0" +# Path + cset "name='AIF2 Mode' 1" + cset "name='AIF1DAC Mux' 0" + cset "name='AIF2DAC2L Mixer AIF1.1 Switch' 1" + cset "name='AIF2DAC2R Mixer AIF1.1 Switch' 1" + cset "name='DAC2 Switch' 1,1" + cset "name='AIF3ADC Mux' 1" + cset "name='AIF2DAC2L Mixer AIF2 Switch' 0" + cset "name='AIF2DAC2R Mixer AIF2 Switch' 0" + cset "name='AIF2DAC Mux' 1" + cset "name='AIF1ADC1L Mixer AIF2 Switch' 1" + ] + + DisableSequence [ + cset "name='AIF2 Mode' 0" + cset "name='AIF2DAC2L Mixer AIF1.1 Switch' 0" + cset "name='AIF2DAC2R Mixer AIF1.1 Switch' 0" + cset "name='DAC2 Switch' 0,0" + cset "name='AIF3ADC Mux' 0" + cset "name='AIF2DAC Mux' 0" + cset "name='AIF1ADC1L Mixer AIF2 Switch' 0" + ] + + Value { + PlaybackPCM "hw:0,3" + CapturePCM "hw:0,0" + } +} + +SectionDevice."MainMic" { + Comment "built-in main mic" + + EnableSequence [ +# Gain + cset "name='IN1L Volume' 29" + cset "name='MIXINL IN1L Volume' 1" +# Path + cset "name='Main Mic Switch' 1" + cset "name='IN1L PGA IN1LN Switch' 1" + cset "name='IN1L PGA IN1LP Switch' 1" + cset "name='IN1L Switch' 1" + cset "name='MIXINL IN1L Switch' 1" + cset "name='ADCL Mux' 0" + cset "name='AIF1ADCL Source' 0" + cset "name='AIF1ADCR Source' 0" + ] + + DisableSequence [ +# Path + cset "name='Main Mic Switch' 0" + cset "name='IN1L PGA IN1LN Switch' 0" + cset "name='IN1L PGA IN1LP Switch' 0" + cset "name='IN1L Switch' 0" + cset "name='MIXINL IN1L Switch' 0" + ] + + Value { + CapturePCM "hw:0,0" + } +} + +SectionDevice."SubMic" { + Comment "built-in sub mic" + + EnableSequence [ +# Gain + cset "name='IN1R Volume' 11" + cset "name='MIXINR IN1R Volume' 1" +# Path + cset "name='Sub Mic Switch' 1" + cset "name='IN1R PGA IN1RN Switch' 1" + cset "name='IN1R PGA IN1RP Switch' 1" + cset "name='IN1R Switch' 1" + cset "name='MIXINR IN1R Switch' 1" + cset "name='ADCR Mux' 0" + cset "name='AIF1ADCL Source' 1" + cset "name='AIF1ADCR Source' 1" + ] + + DisableSequence [ +# Path + cset "name='Sub Mic Switch' 0" + cset "name='IN1R PGA IN1RN Switch' 0" + cset "name='IN1R PGA IN1RP Switch' 0" + cset "name='IN1R Switch' 0" + cset "name='MIXINR IN1R Switch' 0" + cset "name='AIF1ADCL Source' 0" + cset "name='AIF1ADCR Source' 0" + ] + + Value { + CapturePCM "hw:0,0" + } +} + +SectionDevice."HeadsetMic" { + Comment "external headset mic" + + EnableSequence [ +# Gain + cset "name='IN2L Volume' 21" + cset "name='MIXINL IN2L Volume' 1" +# Path + cset "name='Headset Mic Switch' 1" + cset "name='IN2L PGA IN2LN Switch' 1" + cset "name='IN2L PGA IN2LP Switch' 1" + cset "name='IN2L Switch' 1" + cset "name='MIXINL IN2L Switch' 1" + cset "name='ADCL Mux' 0" + cset "name='AIF1ADCL Source' 0" + cset "name='AIF1ADCR Source' 0" + ] + + DisableSequence [ +# Path + cset "name='Headset Mic Switch' 0" + cset "name='IN2L PGA IN2LN Switch' 0" + cset "name='IN2L PGA IN2LP Switch' 0" + cset "name='IN2L Switch' 0" + cset "name='MIXINL IN2L Switch' 0" + ] + + Value { + CapturePCM "hw:0,0" + } +} + + +SectionDevice."StereoMic" { + Comment "built-in stereo mic" + + EnableSequence [ +# Gain + cset "name='IN1L Volume' 11" + cset "name='IN1R Volume' 11" + cset "name='MIXINL IN1L Volume' 1" + cset "name='MIXINR IN1R Volume' 1" + cset "name='MIXINL IN1LP Volume' 7" + cset "name='MIXINR IN1RP Volume' 7" + cset "name='AIF1ADC1 Volume' 96,96" +# Path + cset "name='IN1L PGA IN1LP Switch' 1" + cset "name='IN1L PGA IN1LN Switch' 1" + cset "name='IN1R PGA IN1RN Switch' 1" + cset "name='IN1R PGA IN1RP Switch' 1" + cset "name='IN1L Switch' 1" + cset "name='IN1R Switch' 1" + cset "name='MIXINL IN1L Switch' 1" + cset "name='MIXINR IN1R Switch' 1" + cset "name='ADCL Mux' 0" + cset "name='ADCR Mux' 0" + cset "name='AIF1ADCL Source' 0" + cset "name='AIF1ADCR Source' 1" + ] + + DisableSequence [ +# Path + cset "name='IN1L PGA IN1LP Switch' 0" + cset "name='IN1L PGA IN1LN Switch' 0" + cset "name='IN1R PGA IN1RN Switch' 0" + cset "name='IN1R PGA IN1RP Switch' 0" + cset "name='IN1L Switch' 0" + cset "name='IN1R Switch' 0" + cset "name='MIXINL IN1L Switch' 0" + cset "name='MIXINR IN1R Switch' 0" + cset "name='AIF1ADCR Source' 0" + ] + + Value { + CapturePCM "hw:0,0" + } +} + +SectionModifier."VoiceSearch" { + Comment "Gain modifier for voice search" + + SupportedDevice [ + "Microphones" + "EarMic" + ] + + EnableSequence [ + cset "name='IN1L Volume' 11" + cset "name='MIXINL IN1L Volume' 1" + cset "name='IN2L Volume' 11" + cset "name='MIXINL IN2L Volume' 0" + ] + + DisableSequence [ + cset "name='IN1L Volume' 21" + cset "name='MIXINL IN1L Volume' 1" + cset "name='IN2L Volume' 21" + cset "name='MIXINL IN2L Volume' 1" + ] + + Value { + CapturePCM "hw:0,0" + } +} + +SectionModifier."Camcording" { + Comment "Gain modifier for camcording" + + SupportedDevice [ + "Microphones" + ] + + EnableSequence [ + cset "name='IN1L Volume' 18" + cset "name='MIXINL IN1L Volume' 1" + cset "name='IN1R Volume' 18" + cset "name='MIXINR IN1R Volume' 1" + ] + + DisableSequence [ + cset "name='IN1L Volume' 21" + cset "name='MIXINL IN1L Volume' 1" + cset "name='IN2L Volume' 21" + cset "name='MIXINL IN2L Volume' 1" + ] + + Value { + CapturePCM "hw:0,0" + } +} + +SectionModifier."Ringtone" { + Comment "Ringtone playback" + + SupportedDevice [ + "Headphones" + ] + + EnableSequence [ + cset "name='Headphone Volume' 32,32" + ] + + DisableSequence [ + cset "name='Headphone Volume' 50,50" + ] + + Value { + PlaybackPCM "hw:0,3" + } +} + |