ASoC: dapm: Support second register for DAPM control updates
authorChen-Yu Tsai <wens@csie.org>
Wed, 2 Nov 2016 07:35:58 +0000 (15:35 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Nov 2016 15:55:03 +0000 (09:55 -0600)
commite411b0b5eb9b65257a050eac333d181d6e00e2c6
tree594c649787b942815021fd13a7db9802089d7619
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: dapm: Support second register for DAPM control updates

To support double channel shared controls split across 2 registers, one
for each channel, we must be able to update both registers together.

Add a second set of register fields to struct snd_soc_dapm_update, and
update the DAPM control writeback (put) callbacks to support this.

For codecs that use custom events which call into DAPM to do updates,
also clear struct snd_soc_dapm_update before using it, so the second
set of fields remains clean.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
sound/soc/codecs/adau17x1.c
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c
sound/soc/soc-dapm.c