diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-09-29 08:22:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-30 08:55:08 -0400 |
commit | 6fbb32d175368b6ab8fb827e65cd8d18ed04c1f3 (patch) | |
tree | 3bcbd031fc2a4a2f955a336265c5360564ebdd59 /sound/soc/codecs | |
parent | 93eebc6982161f317c4a99118a4423bc3933fdfa (diff) |
ASoC: twl6040: Shift 2 identifies the HS output in out_drv_event
None of the driver handled by out_drv_event have it's power
bit shifted by 3.
Remove the case for shift 3, and also add comment for the cases.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/twl6040.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index d706bd00d613..738d1022247c 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -563,14 +563,13 @@ static int out_drv_event(struct snd_soc_dapm_widget *w, | |||
563 | struct delayed_work *work; | 563 | struct delayed_work *work; |
564 | 564 | ||
565 | switch (w->shift) { | 565 | switch (w->shift) { |
566 | case 2: | 566 | case 2: /* Headset output driver */ |
567 | case 3: | ||
568 | out = &priv->headset; | 567 | out = &priv->headset; |
569 | out->left_step = priv->hs_left_step; | 568 | out->left_step = priv->hs_left_step; |
570 | out->right_step = priv->hs_right_step; | 569 | out->right_step = priv->hs_right_step; |
571 | out->step_delay = 5; /* 5 ms between volume ramp steps */ | 570 | out->step_delay = 5; /* 5 ms between volume ramp steps */ |
572 | break; | 571 | break; |
573 | case 4: | 572 | case 4: /* Handsfree output driver */ |
574 | out = &priv->handsfree; | 573 | out = &priv->handsfree; |
575 | out->left_step = priv->hf_left_step; | 574 | out->left_step = priv->hf_left_step; |
576 | out->right_step = priv->hf_right_step; | 575 | out->right_step = priv->hf_right_step; |