ASoC: cs4270: add Master Playback Switch
authorDaniel Mack <daniel@caiaq.de>
Fri, 24 Apr 2009 14:37:45 +0000 (16:37 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Apr 2009 19:38:56 +0000 (20:38 +0100)
commit1a4ba05ec8369d62c10155a8931e81267bfbd31c
tree3f26e312c8b93adf411178be73ad221681ebbf98
parent9c935386512a3faa1be1c3d81cba38b7259a43f5
ASoC: cs4270: add Master Playback Switch

This adds a new control named 'Master Playback Switch' for cs4270
codecs. It is implemented using the new SOC_DOUBLE_EXT macro to catch
the put function and store the information about manually set mute
controls from userspace. When a manual mute is set, we don't want the
soc core to un-mute the outputs.

Renamed cs4270_mute() to cs4270_dai_mute() to avoid confusion.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs4270.c