From 056536df35416c6d5b4dbb1e59ab21cb94fae11d Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Tue, 21 Nov 2023 10:32:31 -0500 Subject: [PATCH] Remove any platform-specific sof-rt5682 --- adl/sof-rt5682/HiFi.banshee.conf | 79 ---------- adl/sof-rt5682/HiFi.felwinter.conf | 78 ---------- adl/sof-rt5682/HiFi.felwinter.rt5682vs.conf | 79 ---------- adl/sof-rt5682/HiFi.gimble.conf | 128 ---------------- adl/sof-rt5682/HiFi.primus.conf | 121 --------------- adl/sof-rt5682/HiFi.primus.rt5682vs.conf | 108 ------------- adl/sof-rt5682/HiFi.redrix.conf | 133 ---------------- adl/sof-rt5682/HiFi.taeko.conf | 118 -------------- adl/sof-rt5682/HiFi.taniks.conf | 89 ----------- adl/sof-rt5682/sof-rt5682.conf | 111 -------------- cml/sof-rt5682/HiFi.conf | 129 ---------------- cml/sof-rt5682/sof-rt5682.conf | 8 - jsl/sof-rt5682/Google-Magolor-rev5.conf | 8 - jsl/sof-rt5682/HiFi-Magolor.conf | 90 ----------- jsl/sof-rt5682/HiFi.1mic.conf | 124 --------------- jsl/sof-rt5682/HiFi.1mic.rt5682vs.conf | 115 -------------- jsl/sof-rt5682/HiFi.2mic.conf | 145 ------------------ .../HiFi.max98360a.rt5682vs.1mic.conf | 112 -------------- jsl/sof-rt5682/HiFi.rt1015p.1mic.conf | 119 -------------- jsl/sof-rt5682/HiFi.rt1015p.2mic.conf | 138 ----------------- jsl/sof-rt5682/sof-rt5682.conf | 110 ------------- tgl/sof-rt5682/HiFi.conf | 58 ------- tgl/sof-rt5682/sof-rt5682.conf | 24 --- 23 files changed, 2224 deletions(-) delete mode 100644 adl/sof-rt5682/HiFi.banshee.conf delete mode 100644 adl/sof-rt5682/HiFi.felwinter.conf delete mode 100644 adl/sof-rt5682/HiFi.felwinter.rt5682vs.conf delete mode 100644 adl/sof-rt5682/HiFi.gimble.conf delete mode 100644 adl/sof-rt5682/HiFi.primus.conf delete mode 100644 adl/sof-rt5682/HiFi.primus.rt5682vs.conf delete mode 100644 adl/sof-rt5682/HiFi.redrix.conf delete mode 100644 adl/sof-rt5682/HiFi.taeko.conf delete mode 100644 adl/sof-rt5682/HiFi.taniks.conf delete mode 100644 adl/sof-rt5682/sof-rt5682.conf delete mode 100644 cml/sof-rt5682/HiFi.conf delete mode 100644 cml/sof-rt5682/sof-rt5682.conf delete mode 100644 jsl/sof-rt5682/Google-Magolor-rev5.conf delete mode 100644 jsl/sof-rt5682/HiFi-Magolor.conf delete mode 100644 jsl/sof-rt5682/HiFi.1mic.conf delete mode 100644 jsl/sof-rt5682/HiFi.1mic.rt5682vs.conf delete mode 100644 jsl/sof-rt5682/HiFi.2mic.conf delete mode 100644 jsl/sof-rt5682/HiFi.max98360a.rt5682vs.1mic.conf delete mode 100644 jsl/sof-rt5682/HiFi.rt1015p.1mic.conf delete mode 100644 jsl/sof-rt5682/HiFi.rt1015p.2mic.conf delete mode 100644 jsl/sof-rt5682/sof-rt5682.conf delete mode 100644 tgl/sof-rt5682/HiFi.conf delete mode 100644 tgl/sof-rt5682/sof-rt5682.conf diff --git a/adl/sof-rt5682/HiFi.banshee.conf b/adl/sof-rt5682/HiFi.banshee.conf deleted file mode 100644 index bd8ddbc..0000000 --- a/adl/sof-rt5682/HiFi.banshee.conf +++ /dev/null @@ -1,79 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='RECMIX1L CBJ Switch' on" - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='CBJ Boost Volume' 25" - cset "name='Stereo1 ADC L Mux' ADC1 L" - cset "name='Stereo1 ADC L1 Mux' ADC" - cset "name='Stereo1 ADC R1 Mux' ADC" - ] -} - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' on" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' on" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' off" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' off" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Stereo1 ADC MIXL ADC1 Switch' on" - cset "name='Stereo1 ADC MIXR ADC1 Switch' on" - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' off" - cset "name='Stereo1 ADC MIXR ADC1 Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.felwinter.conf b/adl/sof-rt5682/HiFi.felwinter.conf deleted file mode 100644 index 78eafd8..0000000 --- a/adl/sof-rt5682/HiFi.felwinter.conf +++ /dev/null @@ -1,78 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='DAC L1 Source' DAC1" - cset "name='DAC R1 Source' DAC1" - cset "name='RECMIX1L CBJ Switch' on" - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L Mux' ADC1 L" - cset "name='Stereo1 ADC L1 Mux' ADC" - cset "name='Stereo1 ADC MIXL ADC2 Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' on" - ] -} - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' on" - cset "name='HPOR Playback Switch' on" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.felwinter.rt5682vs.conf b/adl/sof-rt5682/HiFi.felwinter.rt5682vs.conf deleted file mode 100644 index bd8ddbc..0000000 --- a/adl/sof-rt5682/HiFi.felwinter.rt5682vs.conf +++ /dev/null @@ -1,79 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='RECMIX1L CBJ Switch' on" - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='CBJ Boost Volume' 25" - cset "name='Stereo1 ADC L Mux' ADC1 L" - cset "name='Stereo1 ADC L1 Mux' ADC" - cset "name='Stereo1 ADC R1 Mux' ADC" - ] -} - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' on" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' on" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' off" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' off" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Stereo1 ADC MIXL ADC1 Switch' on" - cset "name='Stereo1 ADC MIXR ADC1 Switch' on" - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' off" - cset "name='Stereo1 ADC MIXR ADC1 Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.gimble.conf b/adl/sof-rt5682/HiFi.gimble.conf deleted file mode 100644 index cd700ce..0000000 --- a/adl/sof-rt5682/HiFi.gimble.conf +++ /dev/null @@ -1,128 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='RECMIX1R CBJ Switch' 1" - cset "name='STO1 ADC Capture Switch' on" - cset "name='Left DAI Sel Mux' 0" - cset "name='Right DAI Sel Mux' 1" - cset "name='Left Digital Volume' 153" - cset "name='Right Digital Volume' 153" - cset "name='Left Current Limit' 2.60A" - cset "name='Right Current Limit' 2.60A" - cset "name='Left Boost Clock Phase' 0" - cset "name='Right Boost Clock Phase' 2" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='CBJ Boost Volume' 27" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - cset "name='DAC1 Playback Volume' 127,127" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "adl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Jack" - } - EnableSequence [ - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "adl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 0 - ChannelPos0 FL - ChannelPos1 FR - } -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.primus.conf b/adl/sof-rt5682/HiFi.primus.conf deleted file mode 100644 index 28de0de..0000000 --- a/adl/sof-rt5682/HiFi.primus.conf +++ /dev/null @@ -1,121 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "adl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' on" - cset "name='HPOR Playback Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "adl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.primus.rt5682vs.conf b/adl/sof-rt5682/HiFi.primus.rt5682vs.conf deleted file mode 100644 index 8ae4c68..0000000 --- a/adl/sof-rt5682/HiFi.primus.rt5682vs.conf +++ /dev/null @@ -1,108 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Stereo1 DAC MIXL DAC L1 Switch' off" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' off" - cset "name='RECMIX1L CBJ Switch' on" - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='CBJ Boost Volume' 27" - cset "name='Stereo1 ADC L Mux' ADC1 L" - cset "name='Stereo1 ADC L1 Mux' ADC" - cset "name='Stereo1 ADC MIXL ADC2 Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' on" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "adl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "adl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.redrix.conf b/adl/sof-rt5682/HiFi.redrix.conf deleted file mode 100644 index 4c24158..0000000 --- a/adl/sof-rt5682/HiFi.redrix.conf +++ /dev/null @@ -1,133 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Stereo1 DAC MIXL DAC L1 Switch' off" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' off" - cset "name='RECMIX1L CBJ Switch' on" - cset "name='IF1 01 ADC Swap Mux' L/L" - cset "name='CBJ Boost Volume' 28" - cset "name='Stereo1 ADC L Mux' ADC1 L" - cset "name='Stereo1 ADC L1 Mux' ADC" - cset "name='Stereo1 ADC MIXL ADC2 Switch' off" - cset "name='Stereo1 ADC MIXL ADC1 Switch' on" - cset "name='Left DAI Sel Mux' Left" - cset "name='Tweeter Left DAI Sel Mux' Left" - cset "name='Right DAI Sel Mux' Right" - cset "name='Tweeter Right DAI Sel Mux' Right" - cset "name='Left Digital Volume' 153" - cset "name='Tweeter Left Digital Volume' 155" - cset "name='Right Digital Volume' 153" - cset "name='Tweeter Right Digital Volume' 155" - cset "name='Left Current Limit' 2.20A" - cset "name='Tweeter Left Current Limit' 2.20A" - cset "name='Right Current Limit' 2.20A" - cset "name='Tweeter Right Current Limit' 2.20A" - cset "name='Left Boost Clock Phase' 0" - cset "name='Tweeter Left Boost Clock Phase' 1" - cset "name='Right Boost Clock Phase' 2" - cset "name='Tweeter Right Boost Clock Phase' 3" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "adl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - cset "name='TL Spk Switch' on" - cset "name='TR Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - cset "name='TL Spk Switch' off" - cset "name='TR Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "adl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 0 - ChannelPos0 FL - ChannelPos1 FR - } -} - - - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.taeko.conf b/adl/sof-rt5682/HiFi.taeko.conf deleted file mode 100644 index 84f27d5..0000000 --- a/adl/sof-rt5682/HiFi.taeko.conf +++ /dev/null @@ -1,118 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "adl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' on" - cset "name='HPOR Playback Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "adl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/HiFi.taniks.conf b/adl/sof-rt5682/HiFi.taniks.conf deleted file mode 100644 index 2f442d8..0000000 --- a/adl/sof-rt5682/HiFi.taniks.conf +++ /dev/null @@ -1,89 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' on" - cset "name='HPOR Playback Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Mic" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/adl/sof-rt5682/sof-rt5682.conf b/adl/sof-rt5682/sof-rt5682.conf deleted file mode 100644 index 00e99f3..0000000 --- a/adl/sof-rt5682/sof-rt5682.conf +++ /dev/null @@ -1,111 +0,0 @@ -Syntax 6 - -If.felwinter { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Felwinter" - } - True { - If.rt5682vs { - Condition { - Type RegexMatch - Regex "^sku(196865|196866|196867|196868|196869|196870|196871|196872|196873|196874|196875|196876|196877|196878|196879|196880|197121|197122|197123|197124|197125|197126|197127|197128|197129|197130|197131|197132|197133|197134|197135|197136)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.felwinter.rt5682vs.conf" - Comment "Default" - } - False.SectionUseCase."HiFi" { - File "HiFi.felwinter.conf" - Comment "Default" - } - } - } -} - -If.primus { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Primus" - } - True { - If.rt5682vs { - Condition { - Type RegexMatch - Regex "^sku(2147483647|524290|524291|524292|524293)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.primus.rt5682vs.conf" - Comment "Default" - } - False.SectionUseCase."HiFi" { - File "HiFi.primus.conf" - Comment "Default" - } - } - } -} - -If.banshee { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Banshee" - } - True.SectionUseCase."HiFi" { - File "HiFi.banshee.conf" - Comment "Default" - } -} - -If.gimble { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Gimble" - } - True.SectionUseCase."HiFi" { - File "HiFi.gimble.conf" - Comment "Default" - } -} - -If.taniks { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Taniks" - } - True.SectionUseCase."HiFi" { - File "HiFi.taniks.conf" - Comment "Default" - } -} - -If.taeko { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Taeko" - } - True.SectionUseCase."HiFi" { - File "HiFi.taeko.conf" - Comment "Default" - } -} - -If.redrix { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Redrix" - } - True.SectionUseCase."HiFi" { - File "HiFi.redrix.conf" - Comment "Default" - } -} diff --git a/cml/sof-rt5682/HiFi.conf b/cml/sof-rt5682/HiFi.conf deleted file mode 100644 index ee45d16..0000000 --- a/cml/sof-rt5682/HiFi.conf +++ /dev/null @@ -1,129 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='RECMIX1L CBJ Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 0" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "cml_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},5" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},0" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},1" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "cml_stereo_in" - Direction Capture - Device 1 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},0" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Headset Mic Switch' on" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - cset "name='IF1 01 ADC Swap Mux' 0" - cset "name='Stereo1 ADC L1 Switch' 0" - cset "name='Stereo1 ADC L1 Switch' 0" - cset "name='RECMIX1L CBJ Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 0" - cset "name='Stereo1 ADC L1 Mux' 0" - cset "name='Stereo1 ADC R1 Mux' 0" - cset "name='STO1 ADC Capture Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/cml/sof-rt5682/sof-rt5682.conf b/cml/sof-rt5682/sof-rt5682.conf deleted file mode 100644 index ef48d66..0000000 --- a/cml/sof-rt5682/sof-rt5682.conf +++ /dev/null @@ -1,8 +0,0 @@ -Syntax 6 - -Comment "sof-cmlrt5682max internal card" - -SectionUseCase."HiFi" { - File "HiFi.conf" - Comment "Default" -} diff --git a/jsl/sof-rt5682/Google-Magolor-rev5.conf b/jsl/sof-rt5682/Google-Magolor-rev5.conf deleted file mode 100644 index 8774ee1..0000000 --- a/jsl/sof-rt5682/Google-Magolor-rev5.conf +++ /dev/null @@ -1,8 +0,0 @@ -Syntax 6 - -Comment "Waddledee internal card" - -SectionUseCase."HiFi" { - File "HiFi-Magolor.conf" - Comment "Default" -} diff --git a/jsl/sof-rt5682/HiFi-Magolor.conf b/jsl/sof-rt5682/HiFi-Magolor.conf deleted file mode 100644 index b4eabcf..0000000 --- a/jsl/sof-rt5682/HiFi-Magolor.conf +++ /dev/null @@ -1,90 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - - ] -} - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' 0" - cset "name='HPOR Playback Switch' 0" - ] -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.1mic.conf b/jsl/sof-rt5682/HiFi.1mic.conf deleted file mode 100644 index 5057d74..0000000 --- a/jsl/sof-rt5682/HiFi.1mic.conf +++ /dev/null @@ -1,124 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - - cset "name='Left Bypass Boost' 1" - cset "name='Right Bypass Boost' 1" - cset "name='Left Mono LR Select' Left" - cset "name='Right Mono LR Select' Right" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' 0" - cset "name='HPOR Playback Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.1mic.rt5682vs.conf b/jsl/sof-rt5682/HiFi.1mic.rt5682vs.conf deleted file mode 100644 index 0016512..0000000 --- a/jsl/sof-rt5682/HiFi.1mic.rt5682vs.conf +++ /dev/null @@ -1,115 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Headset Mic Switch' off" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 28" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.2mic.conf b/jsl/sof-rt5682/HiFi.2mic.conf deleted file mode 100644 index ee651ae..0000000 --- a/jsl/sof-rt5682/HiFi.2mic.conf +++ /dev/null @@ -1,145 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - - cset "name='Left Bypass Boost' 1" - cset "name='Right Bypass Boost' 1" - cset "name='Left Mono LR Select' Left" - cset "name='Right Mono LR Select' Right" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' 0" - cset "name='HPOR Playback Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Front Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Mic 1" { - Comment "Rear Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 3 - Channel1 3 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 300 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.max98360a.rt5682vs.1mic.conf b/jsl/sof-rt5682/HiFi.max98360a.rt5682vs.1mic.conf deleted file mode 100644 index 8544052..0000000 --- a/jsl/sof-rt5682/HiFi.max98360a.rt5682vs.1mic.conf +++ /dev/null @@ -1,112 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Headset Mic Switch' off" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 28" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Spk Switch' on" - ] - DisableSequence [ - cset "name='Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 1 - Channel1 0 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.rt1015p.1mic.conf b/jsl/sof-rt5682/HiFi.rt1015p.1mic.conf deleted file mode 100644 index ed0176d..0000000 --- a/jsl/sof-rt5682/HiFi.rt1015p.1mic.conf +++ /dev/null @@ -1,119 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' 0" - cset "name='HPOR Playback Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/HiFi.rt1015p.2mic.conf b/jsl/sof-rt5682/HiFi.rt1015p.2mic.conf deleted file mode 100644 index 8374b2f..0000000 --- a/jsl/sof-rt5682/HiFi.rt1015p.2mic.conf +++ /dev/null @@ -1,138 +0,0 @@ -SectionVerb { - EnableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' off" - cset "name='HPOR Playback Switch' off" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" - cset "name='Stereo1 ADC L Mux' 0" - cset "name='STO1 ADC Capture Switch' on" - cset "name='RECMIX1L CBJ Switch' 1" - cset "name='IF1 01 ADC Swap Mux' 2" - cset "name='CBJ Boost Volume' 3" - cset "name='Stereo1 ADC L1 Mux' 1" - cset "name='Stereo1 ADC R1 Mux' 1" - cset "name='Stereo1 ADC MIXL ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXR ADC2 Switch' 0" - cset "name='Stereo1 ADC MIXL ADC1 Switch' 1" - cset "name='Stereo1 ADC MIXR ADC1 Switch' 1" - ] -} - -# Split 4ch dmic into 2 virtual 2ch mics -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "jsl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Speaker" { - Comment "Speaker" - - Value { - PlaybackPriority 100 - PlaybackPCM "hw:${CardId},0" - } - EnableSequence [ - cset "name='Left Spk Switch' on" - cset "name='Right Spk Switch' on" - ] - DisableSequence [ - cset "name='Left Spk Switch' off" - cset "name='Right Spk Switch' off" - ] -} - -SectionDevice."Headphones" { - Comment "Headphones" - - Value { - PlaybackPriority 200 - PlaybackPCM "hw:${CardId},1" - PlaybackMixerElem "DAC1" - JackControl "Headphone Jack" - } - EnableSequence [ - cset "name='Headphone Jack Switch' on" - cset "name='HPOL Playback Switch' 1" - cset "name='HPOR Playback Switch' 1" - cset "name='Stereo1 DAC MIXL DAC L1 Switch' 1" - cset "name='Stereo1 DAC MIXR DAC R1 Switch' 1" - ] - DisableSequence [ - cset "name='Headphone Jack Switch' off" - cset "name='HPOL Playback Switch' 0" - cset "name='HPOR Playback Switch' 0" - ] -} - -SectionDevice."Mic" { - Comment "Front Microphone" - - Value { - CapturePriority 100 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 0 - Channel1 1 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Mic 1" { - Value { - CapturePriority 200 - CapturePCM "hw:${CardId},5" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "jsl_stereo_in" - Direction Capture - Device 5 - HWChannels 4 - Channels 2 - Channel0 3 - Channel1 3 - ChannelPos0 FL - ChannelPos1 FR - } -} - -SectionDevice."Headset" { - Comment "Headset Microphone" - - Value { - CapturePriority 300 - CapturePCM "hw:${CardId},1" - CaptureMixerElem "Headset Mic" - JackControl "Headset Mic Jack" - } - EnableSequence [ - cset "name='Headset Mic Switch' on" - ] - DisableSequence [ - cset "name='Headset Mic Switch' off" - ] -} - -Include.hdmi.File "/codecs/hda/hdmi234.conf" diff --git a/jsl/sof-rt5682/sof-rt5682.conf b/jsl/sof-rt5682/sof-rt5682.conf deleted file mode 100644 index a6cce0e..0000000 --- a/jsl/sof-rt5682/sof-rt5682.conf +++ /dev/null @@ -1,110 +0,0 @@ -Syntax 6 - -If.magpie { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Magpie" - } - True { - If.1mic { - Condition { - Type RegexMatch - Regex "^sku(720896|720897|721152|721153)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.1mic.conf" - Comment "Default" - } - } - If.2mic { - Condition { - Type RegexMatch - Regex "^sku(720898|720899|721154|721155)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.2mic.conf" - Comment "Default" - } - } - If.1mic_rt5682vs { - Condition { - Type RegexMatch - Regex "^sku(720912|720913|720914|720915|721168|721169|721170|721171)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.1mic.rt5682vs.conf" - Comment "Default" - } - } - If.rt1015p_1mic { - Condition { - Type RegexMatch - Regex "^sku(720928|720929|721184|721185)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.rt1015p.1mic.conf" - Comment "Default" - } - } - If.rt1015p_2mic { - Condition { - Type RegexMatch - Regex "^sku(720930|720931|721186|721187)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.rt1015p.2mic.conf" - Comment "Default" - } - } - } -} - -If.storo { - Condition { - Type RegexMatch - Regex "^(Storo|Storo360)$" - String "${sys:devices/virtual/dmi/id/product_name}" - } - True { - If.rt1015p_2mic { - Condition { - Type RegexMatch - Regex "^sku(1638401|1638402|1638403|1638404|1638405|1638406)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.rt1015p.2mic.conf" - Comment "Default" - } - } - If.rt5682vs_rt1015p_2mic { - Condition { - Type RegexMatch - Regex "^sku(1638407|1638408|1638409|1638410|1638411|1638412)$" - String "${sys:devices/virtual/dmi/id/product_sku}" - } - True.SectionUseCase."HiFi" { - File "HiFi.rt1015p.2mic.conf" - Comment "Default" - } - } - } -} - -If.landrid { - Condition { - Type String - Haystack "${sys:devices/virtual/dmi/id/product_name}" - Needle "Landrid" - } - True.SectionUseCase."HiFi" { - File "HiFi.max98360a.rt5682vs.1mic.conf" - Comment "Default" - } -} diff --git a/tgl/sof-rt5682/HiFi.conf b/tgl/sof-rt5682/HiFi.conf deleted file mode 100644 index ba12507..0000000 --- a/tgl/sof-rt5682/HiFi.conf +++ /dev/null @@ -1,58 +0,0 @@ -If.rt5682s { - Condition { - Type String - Haystack "$${sys:bus/i2c/devices/i2c-RTL5682:00/modalias}" - Needle "acpi:RTL5682:" - } - True.Include.headset.File "/codecs/rt5682s/headset.conf" -} - -If.max98373 { - Condition { - Type String - Haystack "$${sys:bus/i2c/devices/i2c-MX98373:00/modalias}" - Needle "acpi:MX98373:" - } - True.Include.speaker.File "/codecs/max98373/speaker.conf" -} - -Include.pcm_split.File "/common/pcm/split.conf" - -Macro [ - { - SplitPCM { - Name "tgl_stereo_in" - Direction Capture - Format S32_LE - Channels 2 - HWChannels 4 - HWChannelPos0 FL - HWChannelPos1 FR - HWChannelPos2 FL - HWChannelPos3 FR - } - } -] - -SectionDevice."Mic" { - Comment "Internal Microphone" - - Value { - CapturePrioirty 100 - CapturePCM "hw:${CardId},99" - CaptureChannels 4 - } - Macro.pcm_split.SplitPCMDevice { - Name "tgl_stereo_in" - Direction Capture - Device 99 - HWChannels 4 - Channels 2 - Channel0 2 - Channel1 3 - ChannelPos0 FL - ChannelPos1 FR - } -} - -Include.hdmi.File "/codecs/hda/hdmi2345.conf" diff --git a/tgl/sof-rt5682/sof-rt5682.conf b/tgl/sof-rt5682/sof-rt5682.conf deleted file mode 100644 index 558f6ec..0000000 --- a/tgl/sof-rt5682/sof-rt5682.conf +++ /dev/null @@ -1,24 +0,0 @@ -Syntax 6 - -SectionUseCase."HiFi" { - File "HiFi.conf" - Comment "Default" -} - -If.rt5682s { - Condition { - Type String - Haystack "$${sys:bus/i2c/devices/i2c-RTL5682:00/modalias}" - Needle "acpi:RTL5682:" - } - True.Include.codec-init.File "/codecs/rt5682s/init.conf" -} - -If.max98373 { - Condition { - Type String - Haystack "$${sys:bus/i2c/devices/i2c-MX98373:00/modalias}" - Needle "acpi:MX98373:" - } - True.Include.codec-init.File "/codecs/max98373/init.conf" -}