summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic32x4.c
diff options
context:
space:
mode:
authorAndrew F. Davis2017-12-12 23:43:07 +0100
committerMark Brown2017-12-13 13:28:18 +0100
commit0fe7aa39ba0492aabdde67dc1511055c9dc7e960 (patch)
treed18b201aa912d8efff96764d0345caeccfd6a683 /sound/soc/codecs/tlv320aic32x4.c
parentASoC: tlv320aic32x4: Use correct shift definition for DATALEN bits (diff)
downloadkernel-qcow2-linux-0fe7aa39ba0492aabdde67dc1511055c9dc7e960.tar.gz
kernel-qcow2-linux-0fe7aa39ba0492aabdde67dc1511055c9dc7e960.tar.xz
kernel-qcow2-linux-0fe7aa39ba0492aabdde67dc1511055c9dc7e960.zip
ASoC: tlv320aic32x4: Use BIT and GENMASK for bit field definitions
Inter-register definitions should use BIT and GENMASK definitions and also be grouped by what register they belong to. This makes it easy to cross-check with the datasheet and is consistent with other drivers. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4.c')
-rw-r--r--sound/soc/codecs/tlv320aic32x4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 9f643199e1ba..e528a8495346 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -686,7 +686,7 @@ static int aic32x4_hw_params(struct snd_pcm_substream *substream,
}
/* Use PLL as CODEC_CLKIN and DAC_MOD_CLK as BDIV_CLKIN */
- snd_soc_write(codec, AIC32X4_CLKMUX, AIC32X4_PLLCLKIN);
+ snd_soc_write(codec, AIC32X4_CLKMUX, AIC32X4_CODEC_CLKIN_PLL);
snd_soc_write(codec, AIC32X4_IFACE3, AIC32X4_DACMOD2BCLK);
/* We will fix R value to 1 and will make P & J=K.D as varialble */