]> 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)
commit2032661b7911681c16aedbed1f06254cd1209e9b
treedf3432a30a21e8dce99a70c8cebf4bdffbfee89e
parent088290553bfee7901f32468f5fa3163ac6d6a264
ASoC: madera: Fix event generation for rate controls

[ Upstream commit dfd81cf9344cd07a1a6c800410ad75b1bd5c7137 ]

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