Skip to content

Commit

Permalink
topology2: gain: add mixer switch for mute control
Browse files Browse the repository at this point in the history
Add a switch to gain widget for mute control. It could also be used
as MIC/SPK mute LED control purpose.

Signed-off-by: Brent Lu <brent.lu@intel.com>
  • Loading branch information
brentlu authored and lgirdwood committed Feb 8, 2024
1 parent f9bcf61 commit b2d1f09
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tools/topology/topology2/include/components/gain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,41 @@ Class.Widget."gain" {
}
}
}

# mute switch control
mixer."2" {
Object.Base.channel.1 {
name "flw"
reg 2
shift 0
}
Object.Base.channel.2 {
name "fl"
reg 2
shift 1
}
Object.Base.channel.3 {
name "fr"
reg 2
shift 2
}
Object.Base.channel.4 {
name "frw"
reg 2
shift 3
}

Object.Base.ops.1 {
name "ctl"
info "volsw"
## get = 259 binds the mixer control to switch get/put handlers
get 259
put 259
}

#max 1 indicates switch type control
max 1
}
}

# Default attribute values for gain widget
Expand Down

0 comments on commit b2d1f09

Please sign in to comment.