diff options
Diffstat (limited to 'sound/soc/codecs/adau1373.c')
-rw-r--r-- | sound/soc/codecs/adau1373.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c index 068b3ae56a17..1aa10ddf3a61 100644 --- a/sound/soc/codecs/adau1373.c +++ b/sound/soc/codecs/adau1373.c | |||
@@ -133,6 +133,8 @@ struct adau1373 { | |||
133 | #define ADAU1373_DAI_FORMAT_DSP 0x3 | 133 | #define ADAU1373_DAI_FORMAT_DSP 0x3 |
134 | 134 | ||
135 | #define ADAU1373_BCLKDIV_SOURCE BIT(5) | 135 | #define ADAU1373_BCLKDIV_SOURCE BIT(5) |
136 | #define ADAU1373_BCLKDIV_SR_MASK (0x07 << 2) | ||
137 | #define ADAU1373_BCLKDIV_BCLK_MASK 0x03 | ||
136 | #define ADAU1373_BCLKDIV_32 0x03 | 138 | #define ADAU1373_BCLKDIV_32 0x03 |
137 | #define ADAU1373_BCLKDIV_64 0x02 | 139 | #define ADAU1373_BCLKDIV_64 0x02 |
138 | #define ADAU1373_BCLKDIV_128 0x01 | 140 | #define ADAU1373_BCLKDIV_128 0x01 |
@@ -937,7 +939,8 @@ static int adau1373_hw_params(struct snd_pcm_substream *substream, | |||
937 | adau1373_dai->enable_src = (div != 0); | 939 | adau1373_dai->enable_src = (div != 0); |
938 | 940 | ||
939 | snd_soc_update_bits(codec, ADAU1373_BCLKDIV(dai->id), | 941 | snd_soc_update_bits(codec, ADAU1373_BCLKDIV(dai->id), |
940 | ~ADAU1373_BCLKDIV_SOURCE, (div << 2) | ADAU1373_BCLKDIV_64); | 942 | ADAU1373_BCLKDIV_SR_MASK | ADAU1373_BCLKDIV_BCLK_MASK, |
943 | (div << 2) | ADAU1373_BCLKDIV_64); | ||
941 | 944 | ||
942 | switch (params_format(params)) { | 945 | switch (params_format(params)) { |
943 | case SNDRV_PCM_FORMAT_S16_LE: | 946 | case SNDRV_PCM_FORMAT_S16_LE: |