diff options
Diffstat (limited to 'sound/soc/codecs/ak4642.c')
| -rw-r--r-- | sound/soc/codecs/ak4642.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c index 2d0378709702..090d499bb7eb 100644 --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c | |||
| @@ -257,7 +257,7 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream, | |||
| 257 | * This operation came from example code of | 257 | * This operation came from example code of |
| 258 | * "ASAHI KASEI AK4642" (japanese) manual p94. | 258 | * "ASAHI KASEI AK4642" (japanese) manual p94. |
| 259 | */ | 259 | */ |
| 260 | snd_soc_write(codec, SG_SL1, PMMP | MGAIN0); | 260 | snd_soc_update_bits(codec, SG_SL1, PMMP | MGAIN0, PMMP | MGAIN0); |
| 261 | snd_soc_write(codec, TIMER, ZTM(0x3) | WTM(0x3)); | 261 | snd_soc_write(codec, TIMER, ZTM(0x3) | WTM(0x3)); |
| 262 | snd_soc_write(codec, ALC_CTL1, ALC | LMTH0); | 262 | snd_soc_write(codec, ALC_CTL1, ALC | LMTH0); |
| 263 | snd_soc_update_bits(codec, PW_MGMT1, PMADL, PMADL); | 263 | snd_soc_update_bits(codec, PW_MGMT1, PMADL, PMADL); |
| @@ -352,7 +352,6 @@ static int ak4642_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) | |||
| 352 | */ | 352 | */ |
| 353 | default: | 353 | default: |
| 354 | return -EINVAL; | 354 | return -EINVAL; |
| 355 | break; | ||
| 356 | } | 355 | } |
| 357 | snd_soc_update_bits(codec, MD_CTL1, DIF_MASK, data); | 356 | snd_soc_update_bits(codec, MD_CTL1, DIF_MASK, data); |
| 358 | 357 | ||
| @@ -405,7 +404,6 @@ static int ak4642_dai_hw_params(struct snd_pcm_substream *substream, | |||
| 405 | break; | 404 | break; |
| 406 | default: | 405 | default: |
| 407 | return -EINVAL; | 406 | return -EINVAL; |
| 408 | break; | ||
| 409 | } | 407 | } |
| 410 | snd_soc_update_bits(codec, MD_CTL2, FS_MASK, rate); | 408 | snd_soc_update_bits(codec, MD_CTL2, FS_MASK, rate); |
| 411 | 409 | ||
