diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-06-26 15:22:55 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-28 13:18:17 +0100 |
commit | 52b896cfef00289b5966b9b0e22b865511238216 (patch) | |
tree | 3f43d291edfe104dce4afd24c567c08d6a8b890c /sound/soc/kirkwood/kirkwood.h | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) | |
download | op-kernel-dev-52b896cfef00289b5966b9b0e22b865511238216.zip op-kernel-dev-52b896cfef00289b5966b9b0e22b865511238216.tar.gz |
ASoC: kirkwood-i2s: provide helper KIRKWOOD_RECCTL_ENABLE_MASK definition
Add a KIRKWOOD_RECCTL_ENABLE_MASK definition to complement the existing
PLAYCTL definition, and make use of it where we wish to clear both
enable bits.
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>
Diffstat (limited to 'sound/soc/kirkwood/kirkwood.h')
-rw-r--r-- | sound/soc/kirkwood/kirkwood.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/kirkwood/kirkwood.h b/sound/soc/kirkwood/kirkwood.h index bf23afb..ab21de0 100644 --- a/sound/soc/kirkwood/kirkwood.h +++ b/sound/soc/kirkwood/kirkwood.h @@ -38,6 +38,9 @@ #define KIRKWOOD_RECCTL_SIZE_24 (1<<0) #define KIRKWOOD_RECCTL_SIZE_32 (0<<0) +#define KIRKWOOD_RECCTL_ENABLE_MASK (KIRKWOOD_RECCTL_SPDIF_EN | \ + KIRKWOOD_RECCTL_I2S_EN) + #define KIRKWOOD_REC_BUF_ADDR 0x1004 #define KIRKWOOD_REC_BUF_SIZE 0x1008 #define KIRKWOOD_REC_BYTE_COUNT 0x100C |