]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:33 +0000 (18:47 +0100)
commita4f17e2509255a6492f5378054c698707b8a01f8
tree7cc7596283f295884142567413f14fe6d56a92b0
parent09589b332683e411ffdc7b15b575369571aad658
ASoC: SOF: control: return true when kcontrol values change

BugLink: https://bugs.launchpad.net/bugs/1852111
[ Upstream commit 95a32c98055f664f9b3f34c41e153d4dcedd0eff ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/sof/control.c