diff options
Diffstat (limited to 'sound/soc/codecs/cs4271.c')
| -rw-r--r-- | sound/soc/codecs/cs4271.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index 23d1bd5dadda..69fde1506fe1 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c | |||
| @@ -434,7 +434,8 @@ static int cs4271_soc_suspend(struct snd_soc_codec *codec, pm_message_t mesg) | |||
| 434 | { | 434 | { |
| 435 | int ret; | 435 | int ret; |
| 436 | /* Set power-down bit */ | 436 | /* Set power-down bit */ |
| 437 | ret = snd_soc_update_bits(codec, CS4271_MODE2, 0, CS4271_MODE2_PDN); | 437 | ret = snd_soc_update_bits(codec, CS4271_MODE2, CS4271_MODE2_PDN, |
| 438 | CS4271_MODE2_PDN); | ||
| 438 | if (ret < 0) | 439 | if (ret < 0) |
| 439 | return ret; | 440 | return ret; |
| 440 | return 0; | 441 | return 0; |
| @@ -501,8 +502,9 @@ static int cs4271_probe(struct snd_soc_codec *codec) | |||
| 501 | return ret; | 502 | return ret; |
| 502 | } | 503 | } |
| 503 | 504 | ||
| 504 | ret = snd_soc_update_bits(codec, CS4271_MODE2, 0, | 505 | ret = snd_soc_update_bits(codec, CS4271_MODE2, |
| 505 | CS4271_MODE2_PDN | CS4271_MODE2_CPEN); | 506 | CS4271_MODE2_PDN | CS4271_MODE2_CPEN, |
| 507 | CS4271_MODE2_PDN | CS4271_MODE2_CPEN); | ||
| 506 | if (ret < 0) | 508 | if (ret < 0) |
| 507 | return ret; | 509 | return ret; |
| 508 | ret = snd_soc_update_bits(codec, CS4271_MODE2, CS4271_MODE2_PDN, 0); | 510 | ret = snd_soc_update_bits(codec, CS4271_MODE2, CS4271_MODE2_PDN, 0); |
