aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-05-08 12:24:42 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-05-08 19:44:54 -0400
commitf6c1f2d5e5d50366910fd687e88d07ebaabe00ab (patch)
treec141bbd6bb9ffbbd3998303f8480e1e227c4b33d
parent7164bdb643cd9c919d69a5ea55b6f8477b90657c (diff)
ASoC: SSM2602: Do not power the codec up in probe
It is not required to have the codec powered at this stage and DAPM will power the ADC and DAC down again after probe has run anyway. Thus we avoid some unnecessary writes by this change. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/ssm2602.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index a09d66c0e70e..e1ebf3d04935 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -509,8 +509,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec)
509 return ret; 509 return ret;
510 } 510 }
511 511
512 /*power on device*/
513 snd_soc_write(codec, SSM2602_ACTIVE, 0);
514 /* set the update bits */ 512 /* set the update bits */
515 reg = snd_soc_read(codec, SSM2602_LINVOL); 513 reg = snd_soc_read(codec, SSM2602_LINVOL);
516 snd_soc_write(codec, SSM2602_LINVOL, reg | LINVOL_LRIN_BOTH); 514 snd_soc_write(codec, SSM2602_LINVOL, reg | LINVOL_LRIN_BOTH);
@@ -523,7 +521,6 @@ static int ssm2602_probe(struct snd_soc_codec *codec)
523 /*select Line in as default input*/ 521 /*select Line in as default input*/
524 snd_soc_write(codec, SSM2602_APANA, APANA_SELECT_DAC | 522 snd_soc_write(codec, SSM2602_APANA, APANA_SELECT_DAC |
525 APANA_ENABLE_MIC_BOOST); 523 APANA_ENABLE_MIC_BOOST);
526 snd_soc_write(codec, SSM2602_PWR, 0);
527 524
528 snd_soc_add_controls(codec, ssm2602_snd_controls, 525 snd_soc_add_controls(codec, ssm2602_snd_controls,
529 ARRAY_SIZE(ssm2602_snd_controls)); 526 ARRAY_SIZE(ssm2602_snd_controls));