]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: control: return true when kcontrol values change
authorDragos Tarcatu <dragos_tarcatu@mentor.com>
Fri, 18 Oct 2019 12:38:06 +0000 (07:38 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 18 Oct 2019 17:09:22 +0000 (18:09 +0100)
commit1a652b82d1b6814766a1e06c4b210682e625b665
treef9ba57e41470ab30bac5ee3a67af6a714b2cb5ef
parent5be7ea7773a0711845da1a5c8b0d358d1434e603
ASoC: SOF: control: return true when kcontrol values change

All the kcontrol put() functions are currently returning 0 when
successful. This does not go well with alsamixer as it does
not seem to get notified on SND_CTL_EVENT_MASK_VALUE callbacks
when values change for (some of) the sof kcontrols.
This patch fixes that by returning true for volume, switch
and enum type kcontrols when values do change in put().

Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191018123806.18063-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/control.c