diff --git a/tgl/sof-rt5682/HiFi-Eldrid.conf b/tgl/sof-rt5682/HiFi-Eldrid.conf index 801b8c6..8933908 100644 --- a/tgl/sof-rt5682/HiFi-Eldrid.conf +++ b/tgl/sof-rt5682/HiFi-Eldrid.conf @@ -22,8 +22,43 @@ SectionVerb { ] } -Include.dmic_split.File "/conf.d/dmic-common/dmic-split-remap.conf" -Include.dmic_macro.File "/conf.d/dmic-common/dmic-split-macro.conf" +# Split 4ch dmic into 2 virtual 2ch mics +Include.pcm_split.File "/conf.d/dmic-common/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 + } + } +] + +Include.ctl_remap.File "/conf.d/dmic-common/remap.conf" + +Macro [ + { + CtlRemapStereoVolSw { + Dst "Mic 1 Capture" + Index0 0 + Index1 1 + } + } + { + CtlRemapStereoVolSw { + Dst "Mic 2 Capture" + Index0 2 + Index1 3 + } + } +] SectionDevice."Speaker" { Comment "Speaker" @@ -73,9 +108,17 @@ SectionDevice."Mic" { CapturePrioirty 100 CapturePCM "hw:sofrt5682,99" CaptureChannels 4 - } - Macro.pcm_split.DmicSplit { - PCM 99 + } + Macro.pcm_split.SplitPCMDevice { + Name "tgl_stereo_in" + Direction Capture + Device 99 + HWChannels 4 + Channels 2 + Channel0 0 + Channel1 1 + ChannelPos0 FL + ChannelPos1 FR } }