adl/sof-nau8825/osiris: add dmic split

pull/1/head
WeirdTreeThing 2023-05-27 08:24:18 -04:00
parent cfd16856a5
commit 32508031df
No known key found for this signature in database
GPG Key ID: 1F56A4B52998B851
1 changed files with 49 additions and 0 deletions

View File

@ -10,6 +10,44 @@ SectionVerb {
]
}
# Split 4ch dmic into 2 virtual 2ch mics
Include.pcm_split.File "/conf.d/dmic-common/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
}
}
]
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"
@ -51,6 +89,17 @@ SectionDevice."Mic" {
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" {