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

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 SFC driver.

Fixes: b0a2be5cf332 ("ASoC: tegra: Add Tegra210 based SFC 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-14-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_sfc.c