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

commit 7f3d90a3519680dfa23e750f80bfdefc0f5eda4a 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-3-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