OSDN Git Service

codecs/rt5640: Move out BayTrail-specific pin switches
[android-x86/external-alsa-ucm-conf.git] / ucm2 / bytcr-rt5640 / HiFi-LongName.conf
index 34acef8..7b53284 100644 (file)
@@ -10,6 +10,16 @@ If.spk {
        True {
                Include.spk.File "/codecs/rt5640/Speaker.conf"
                Define.HaveSpeaker "yes"
+
+               SectionDevice."Speaker" {
+                       EnableSequence [
+                               cset "name='Speaker Switch' on"
+                       ]
+
+                       DisableSequence [
+                               cset "name='Speaker Switch' off"
+                       ]
+               }
        }
 }
 
@@ -22,12 +32,32 @@ If.mono {
        True {
                Include.mspk.File "/codecs/rt5640/MonoSpeaker.conf"
                Define.HaveSpeaker "yes"
+
+               SectionDevice."Speaker" {
+                       EnableSequence [
+                               cset "name='Speaker Switch' on"
+                       ]
+
+                       DisableSequence [
+                               cset "name='Speaker Switch' off"
+                       ]
+               }
        }
 }
 
 If.hp {
        Condition { Type String Empty "" }
        True.Include.hs.File "/codecs/rt5640/HeadPhones.conf"
+
+       SectionDevice."Headphones" {
+               EnableSequence [
+                       cset "name='Headphone Switch' on"
+               ]
+
+               DisableSequence [
+                       cset "name='Headphone Switch' off"
+               ]
+       }
 }
 
 If.dmic1 {
@@ -39,6 +69,16 @@ If.dmic1 {
        True {
                Include.dmic.File "/codecs/rt5640/DigitalMics.conf"
                Define.HaveInternalMic "yes"
+
+               SectionDevice."Mic" {
+                       EnableSequence [
+                               cset "name='Internal Mic Switch' on"
+                       ]
+
+                       DisableSequence [
+                               cset "name='Internal Mic Switch' off"
+                       ]
+               }
        }
 }
 
@@ -51,6 +91,16 @@ If.in1 {
        True {
                Include.mic1.File "/codecs/rt5640/IN1-InternalMic.conf"
                Define.HaveInternalMic "yes"
+
+               SectionDevice."Mic" {
+                       EnableSequence [
+                               cset "name='Internal Mic Switch' on"
+                       ]
+
+                       DisableSequence [
+                               cset "name='Internal Mic Switch' off"
+                       ]
+               }
        }
 }
 
@@ -63,10 +113,30 @@ If.in3 {
        True {
                Include.mic3.File "/codecs/rt5640/IN3-InternalMic.conf"
                Define.HaveInternalMic "yes"
+
+               SectionDevice."Mic" {
+                       EnableSequence [
+                               cset "name='Internal Mic Switch' on"
+                       ]
+
+                       DisableSequence [
+                               cset "name='Internal Mic Switch' off"
+                       ]
+               }
        }
 }
 
 If.hsmic {
        Condition { Type String Empty "" }
        True.Include.hsmic.File "/codecs/rt5640/HeadsetMic.conf"
+
+       SectionDevice."Headset" {
+               EnableSequence [
+                       cset "name='Headset Mic Switch' on"
+               ]
+
+               DisableSequence [
+                       cset "name='Headset Mic Switch' off"
+               ]
+       }
 }