Skip to content

Commit

Permalink
topology2: dmic-generic: add switch for LED control
Browse files Browse the repository at this point in the history
Add a switch to gain widget for MIC mute LED control purpose. Use
"DMIC_MUTE_LED=true" in cmake file to enable this feature.

Signed-off-by: Brent Lu <[email protected]>
  • Loading branch information
brentlu committed Jan 18, 2024
1 parent 8d00ccf commit e0ed509
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/topology/topology2/platform/intel/dmic-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ Define {
DMIC_CORE_ID 0
PASSTHROUGH "false"
DMIC_PIPELINE_PRIORITY 0
DMIC_MUTE_LED "false"
}
10 changes: 10 additions & 0 deletions tools/topology/topology2/platform/intel/dmic-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ IncludeByKey.PASSTHROUGH {
Object.Control.mixer.1 {
name '$DMIC0_PCM_NAME Capture Volume'
}
IncludeByKey.DMIC_MUTE_LED {
"true" {
Object.Control.mixer.2 {
name '$DMIC0_PCM_NAME Capture Switch'

mute_led_use 1
mute_led_direction 1
}
}
}
}

Object.Widget.module-copier."2" {
Expand Down

0 comments on commit e0ed509

Please sign in to comment.