[Sound-open-firmware] [PATCH v2 1/3] topology: use switch IO handler for tone switch

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Sun Jun 24 10:01:05 CEST 2018


Use the bespoke switch IO handler in the driver for the tone switch kcontrol.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 topology/sof/pipe-tone.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/topology/sof/pipe-tone.m4 b/topology/sof/pipe-tone.m4
index 53cef5a..fc5eb00 100644
--- a/topology/sof/pipe-tone.m4
+++ b/topology/sof/pipe-tone.m4
@@ -30,7 +30,7 @@ C_CONTROLMIXER(Tone Volume, PIPELINE_ID,
 
 # Switch type Mixer Control with max value of 1
 C_CONTROLMIXER(Tone Switch, PIPELINE_ID,
-	CONTROLMIXER_OPS(volsw, 256 binds the mixer control to volume get/put handlers, 256, 256),
+	CONTROLMIXER_OPS(volsw, 259 binds the mixer control to switch get/put handlers, 259, 259),
 	CONTROLMIXER_MAX(max 1 indicates switch type control, 1),
 	false,
 	,
-- 
2.17.1



More information about the Sound-open-firmware mailing list