ASoC: kirkwood-i2s: fix mute handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Jun 2014 14:23:05 +0000 (15:23 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 28 Jun 2014 12:18:28 +0000 (13:18 +0100)
commit2fbc38219c0af91afbeb3c9d97c62e1c7c74df61
tree951221af0dd9632eb3c3c2be92102e21d3885cbd
parent6772190632ebce6c5c6010d2bc77d5de866831b6
ASoC: kirkwood-i2s: fix mute handling

The spec requires that the mute bits must be set while the channel
is disabled.  Ensure that this is the case by providing a helper
which ensures that the appropriate mute bit is set while the enable
bit is clear.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/kirkwood/kirkwood-i2s.c