ASoC: da7219: Fix change notifications for tone generator frequency
authorMark Brown <broonie@kernel.org>
Wed, 20 Apr 2022 13:34:37 +0000 (14:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:06 +0000 (12:30 +0200)
commita5581587bbee2700aaee3971ac25f801cae24732
treeb95fdde71fb9c4534ed2007dc8688f68e3fe4953
parent61808e4089525c9a9ad9308a4f9774fab5db2c88
ASoC: da7219: Fix change notifications for tone generator frequency

commit 08ef48404965cfef99343d6bbbcf75b88c74aa0e upstream.

The tone generator frequency control just returns 0 on successful write,
not a boolean value indicating if there was a change or not.  Compare
what was written with the value that was there previously so that
notifications are generated appropriately when the value changes.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220420133437.569229-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/da7219.c