1 # command-line sequence to switch playback/capture 2 # alsaucm -c sof-chtmax98090 set _verb HiFi set _enadev Headphone 3 # alsaucm -c sof-chtmax98090 set _verb HiFi set _enadev Speakers 4 # alsaucm -c sof-chtmax98090 set _verb HiFi set _enadev HeadsetMic 5 # alsaucm -c sof-chtmax98090 set _verb HiFi set _enadev InternalMic 6 7 8 SectionVerb { 9 10 EnableSequence [ 11 cdev "hw:sofchtmax98090" 12 13 cset "name='Left Speaker Mixer Left DAC Switch' on" 14 cset "name='Right Speaker Mixer Right DAC Switch' on" 15 cset "name='Digital EQ 3 Band Switch' off" 16 cset "name='Digital EQ 5 Band Switch' off" 17 cset "name='Digital EQ 7 Band Switch' off" 18 cset "name='Biquad Switch' off" 19 cset "name='Filter Mode' Music" 20 cset "name='ADC Oversampling Rate' 0" 21 22 cset "name='DMIC Mux' DMIC" 23 cset "name='MIC2 Mux' IN34" 24 cset "name='MIC2 Volume' 10" 25 cset "name='MIC2 Boost Volume' 0" 26 27 cset "name='ADCR Boost Volume' 4" 28 cset "name='ADCL Boost Volume' 4" 29 cset "name='ADCR Volume' 11" 30 cset "name='ADCL Volume' 11" 31 32 cset "name='Headphone Volume' 10" 33 cset "name='Speaker Volume' 10" 34 35 cset "name='Speaker Left Mixer Volume' 3" 36 cset "name='Speaker Right Mixer Volume' 3" 37 cset "name='Record Path DC Blocking' on" 38 cset "name='Playback Path DC Blocking' on" 39 40 cset "name='Headphone Left Switch' off" 41 cset "name='Headphone Right Switch' off" 42 cset "name='Headphone Switch' off" 43 44 cset "name='Speaker Left Switch' off" 45 cset "name='Speaker Right Switch' off" 46 cset "name='Ext Spk Switch' off" 47 48 cset "name='Headset Mic Switch' off" 49 cset "name='Int Mic Switch' off" 50 ] 51 52 DisableSequence [ 53 ] 54 55 # ALSA PCM 56 Value { 57 # ALSA PCM device for HiFi 58 PlaybackPCM "hw:sofchtmax98090" 59 CapturePCM "hw:sofchtmax98090" 60 } 61 } 62 63 SectionDevice."Headphone" { 64 Comment "Headphone" 65 66 ConflictingDevice [ 67 "Speakers" 68 ] 69 70 Value { 71 JackControl "Headphone Jack" 72 JackHWMute "Speakers" 73 } 74 75 EnableSequence [ 76 cdev "hw:sofchtmax98090" 77 78 cset "name='Headphone Left Switch' on" 79 cset "name='Headphone Right Switch' on" 80 cset "name='Headphone Switch' on" 81 ] 82 DisableSequence [ 83 cdev "hw:sofchtmax98090" 84 85 cset "name='Headphone Left Switch' off" 86 cset "name='Headphone Right Switch' off" 87 cset "name='Headphone Switch' off" 88 ] 89 90 Value { 91 PlaybackChannels 2 92 } 93 } 94 95 SectionDevice."Speakers" { 96 Comment "Speakers" 97 98 ConflictingDevice [ 99 "Headphone" 100 ] 101 102 EnableSequence [ 103 cdev "hw:sofchtmax98090" 104 105 cset "name='Speaker Left Switch' on" 106 cset "name='Speaker Right Switch' on" 107 cset "name='Ext Spk Switch' on" 108 ] 109 DisableSequence [ 110 cdev "hw:sofchtmax98090" 111 112 cset "name='Speaker Left Switch' off" 113 cset "name='Speaker Right Switch' off" 114 cset "name='Ext Spk Switch' off" 115 ] 116 117 Value { 118 PlaybackChannels 2 119 } 120 } 121 122 SectionDevice."HeadsetMic" { 123 Comment "Headset Mic" 124 125 Value { 126 JackControl "Headset Mic Jack" 127 #FIXME CaptureControl "MIC2" 128 } 129 130 ConflictingDevice [ 131 "InternalMic" 132 ] 133 134 EnableSequence [ 135 cdev "hw:sofchtmax98090" 136 137 cset "name='Headset Mic Switch' on" 138 cset "name='DMIC Mux' ADC" 139 cset "name='Record Path DC Blocking' on" 140 ] 141 142 DisableSequence [ 143 cdev "hw:sofchtmax98090" 144 145 cset "name='Headset Mic Switch' off" 146 cset "name='DMIC Mux' DMIC" 147 cset "name='Record Path DC Blocking' off" 148 ] 149 150 Value { 151 CaptureChannels 2 152 } 153 } 154 155 SectionDevice."InternalMic" { 156 Comment "Internal Mic" 157 158 Value { 159 #FIXME CaptureControl "MIC2" 160 } 161 162 ConflictingDevice [ 163 "HeadsetMic" 164 ] 165 166 EnableSequence [ 167 cdev "hw:sofchtmax98090" 168 169 cset "name='Int Mic Switch' on" 170 cset "name='DMIC Mux' DMIC" 171 cset "name='Record Path DC Blocking' off" 172 ] 173 174 DisableSequence [ 175 cdev "hw:sofchtmax98090" 176 177 cset "name='Int Mic Switch' off" 178 cset "name='DMIC Mux' ADC" 179 cset "name='Record Path DC Blocking' on" 180 ] 181 182 Value { 183 CaptureChannels 2 184 } 185 } 186