diff options
Diffstat (limited to 'sound/soc/codecs/wm8974.c')
-rw-r--r-- | sound/soc/codecs/wm8974.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 8812751da8c9..ee637af4737a 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c | |||
@@ -170,6 +170,10 @@ SOC_ENUM("Aux Mode", wm8974_auxmode), | |||
170 | 170 | ||
171 | SOC_SINGLE("Capture Boost(+20dB)", WM8974_ADCBOOST, 8, 1, 0), | 171 | SOC_SINGLE("Capture Boost(+20dB)", WM8974_ADCBOOST, 8, 1, 0), |
172 | SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 1), | 172 | SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 1), |
173 | |||
174 | /* DAC / ADC oversampling */ | ||
175 | SOC_SINGLE("DAC 128x Oversampling Switch", WM8974_DAC, 8, 1, 0), | ||
176 | SOC_SINGLE("ADC 128x Oversampling Switch", WM8974_ADC, 8, 1, 0), | ||
173 | }; | 177 | }; |
174 | 178 | ||
175 | /* Speaker Output Mixer */ | 179 | /* Speaker Output Mixer */ |
@@ -381,14 +385,6 @@ static int wm8974_set_dai_clkdiv(struct snd_soc_dai *codec_dai, | |||
381 | reg = snd_soc_read(codec, WM8974_CLOCK) & 0x11f; | 385 | reg = snd_soc_read(codec, WM8974_CLOCK) & 0x11f; |
382 | snd_soc_write(codec, WM8974_CLOCK, reg | div); | 386 | snd_soc_write(codec, WM8974_CLOCK, reg | div); |
383 | break; | 387 | break; |
384 | case WM8974_ADCCLK: | ||
385 | reg = snd_soc_read(codec, WM8974_ADC) & 0x1f7; | ||
386 | snd_soc_write(codec, WM8974_ADC, reg | div); | ||
387 | break; | ||
388 | case WM8974_DACCLK: | ||
389 | reg = snd_soc_read(codec, WM8974_DAC) & 0x1f7; | ||
390 | snd_soc_write(codec, WM8974_DAC, reg | div); | ||
391 | break; | ||
392 | case WM8974_BCLKDIV: | 388 | case WM8974_BCLKDIV: |
393 | reg = snd_soc_read(codec, WM8974_CLOCK) & 0x1e3; | 389 | reg = snd_soc_read(codec, WM8974_CLOCK) & 0x1e3; |
394 | snd_soc_write(codec, WM8974_CLOCK, reg | div); | 390 | snd_soc_write(codec, WM8974_CLOCK, reg | div); |