]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: es8328: Fix event generation for deemphasis control
authorMark Brown <broonie@kernel.org>
Fri, 3 Jun 2022 12:39:37 +0000 (14:39 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:31:27 +0000 (12:31 +0100)
commit6107c173916cd7494aed6acf71265a0d2bbb6536
tree6747990319526f59317d3b154e211f9e4cf0b4c0
parent18232289aaaf25a9d3390a1a7c961291a2f5c5a3
ASoC: es8328: Fix event generation for deemphasis control

Currently the put() method for the deemphasis control returns 0 when a new
value is written to the control even if the value changed, meaning events
are not generated. Fix this, skip the work of updating the value when it is
unchanged and then return 1 after having done so.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220603123937.4013603-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8328.c