]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: Fix kcontrol put callback in MVC
authorSameer Pujar <spujar@nvidia.com>
Thu, 18 Nov 2021 07:07:07 +0000 (12:37 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 18 Nov 2021 19:02:37 +0000 (19:02 +0000)
commitb6598e11464c7dc86c059c0fe57ad4aaef7045b6
treef5c8a3d9c34f828a51ad43ce1d7cae6cba4da8d3
parent1cd5562bf886ac9513ea1275513ff3616b44e320
ASoC: tegra: Fix kcontrol put callback in MVC

The kcontrol put callback is expected to return 1 when there is change
in HW or when the update is acknowledged by driver. This would ensure
that change notifications are sent to subscribed applications. Filter
out duplicate updates in MVC driver.

Fixes: 3368abb34f16 ("ASoC: tegra: Add Tegra210 based MVC driver")
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Suggested-by: Jaroslav Kysela <perex@perex.cz>
Suggested-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/1637219231-406-13-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_mvc.c