Skip to content

Commit

Permalink
sof-hda-dsp,sof-soundwire: add CaptureMicInfoFile fields for dmics
Browse files Browse the repository at this point in the history
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed May 16, 2023
1 parent 906f692 commit 9fa70ad
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions ucm2/Intel/sof-hda-dsp/HiFi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ If.dmic {
Value {
CapturePriority 100
CapturePCM "hw:${CardId},6"
CaptureMicInfoFile "${var:LibDir}/dmics-nhlt.json"
If.chn {
Condition {
Type RegexMatch
Expand Down
3 changes: 3 additions & 0 deletions ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ If.devdmic {
True {
Define.DeviceDmic "Mic1"
Define.DeviceMic "Mic2"
Include.card-init.File "/lib/card-init.conf"
FixedBootSequence [
#
# users expect to turn the LED on when only internal
# mic is off, but it makes sense to turn this LED
# when all internal inputs are off
#
sysw "-/class/sound/ctl-led/mic/card${CardNumber}/detach:Capture Switch"
# dmic array info
exec "-nhlt-dmic-info -o ${var:LibDir}/dmics-nhlt.json"
]
}
}
Expand Down
1 change: 1 addition & 0 deletions ucm2/sof-soundwire/dmic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ SectionDevice."Mic" {
CaptureMixerElem "Dmic0"
CaptureVolume "Dmic0 Capture Volume"
CaptureSwitch "Dmic0 Capture Switch"
CaptureMicInfoFile "${var:LibDir}/dmics-nhlt.json"
}
}
11 changes: 6 additions & 5 deletions ucm2/sof-soundwire/rt715-sdca.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ SectionDevice."Mic" {
]

Value {
CapturePriority 100
CapturePCM "hw:${CardId},4"
CaptureSwitch "rt714 FU02 Capture Switch"
CaptureVolume "rt714 FU02 Capture Volume"
CaptureMixerElem "rt714 FU02"
CapturePriority 100
CapturePCM "hw:${CardId},4"
CaptureSwitch "rt714 FU02 Capture Switch"
CaptureVolume "rt714 FU02 Capture Volume"
CaptureMixerElem "rt714 FU02"
CaptureMicInfoFile "${var:LibDir}/dmics-nhlt.json"
}
}
1 change: 1 addition & 0 deletions ucm2/sof-soundwire/rt715.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ SectionDevice."Mic" {
CaptureSwitch "${var:rt715ctl} Switch"
CaptureVolume "${var:rt715ctl} Volume"
CaptureMixerElem "${var:rt715ctl}"
CaptureMicInfoFile "${var:LibDir}/dmics-nhlt.json"
}
}
11 changes: 11 additions & 0 deletions ucm2/sof-soundwire/sof-soundwire.conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,14 @@ If.pga_init_pga5 {
cset "name='PGA5.0 5 Master Capture Switch' 1"
]
}

If.mics-array {
Condition {
Type String
Empty "${var:Mics1}"
}
False.FixedBootSequence {
# dmic array info
exec "-nhlt-dmic-info -o ${var:LibDir}/dmics-nhlt.json"
}
}

0 comments on commit 9fa70ad

Please sign in to comment.