ASoC: ops: Fix stereo change notifications in snd_soc_put_xr_sx()
authorMark Brown <broonie@kernel.org>
Tue, 1 Feb 2022 15:56:29 +0000 (15:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:14 +0000 (12:03 +0100)
commitb4b8e7ae1346badd2836ab5323bc59f27f23ab24
tree4247cda2db03b078ed528b0940de02562625b366
parent312d8074bc99f9f48573b92b9c32491d34d5a05a
ASoC: ops: Fix stereo change notifications in snd_soc_put_xr_sx()

commit 2b7c46369f09c358164d31d17e5695185403185e upstream.

When writing out a stereo control we discard the change notification from
the first channel, meaning that events are only generated based on changes
to the second channel. Ensure that we report a change if either channel
has changed.

Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220201155629.120510-5-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-ops.c