]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: madera: Fix event generation for rate controls
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 23 Jun 2022 10:51:19 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 18:59:26 +0000 (20:59 +0200)
commit79fdadc289dbbf74c7fc95df4ace88c9cd42dd65
treedf3432a30a21e8dce99a70c8cebf4bdffbfee89e
parent381d2bc2456a826d6fc87afa5331601a57e4360b
ASoC: madera: Fix event generation for rate controls

[ Upstream commit 9f0c0f1350f1e8083a5f1e38b605cc07f506342c ]

madera_adsp_rate_put always returns zero regardless of if the control
value was updated. This results in missing notifications to user-space
of the control change. Update the handling to return 1 when the
value is changed.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220623105120.1981154-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/madera.c