Skip to content

Commit

Permalink
ASoC: twl6040: Shift 2 identifies the HS output in out_drv_event
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 30, 2011
1 parent 93eebc6 commit 6fbb32d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,14 +563,13 @@ static int out_drv_event(struct snd_soc_dapm_widget *w,
struct delayed_work *work;

switch (w->shift) {
case 2:
case 3:
case 2: /* Headset output driver */
out = &priv->headset;
out->left_step = priv->hs_left_step;
out->right_step = priv->hs_right_step;
out->step_delay = 5; /* 5 ms between volume ramp steps */
break;
case 4:
case 4: /* Handsfree output driver */
out = &priv->handsfree;
out->left_step = priv->hf_left_step;
out->right_step = priv->hf_right_step;
Expand Down

0 comments on commit 6fbb32d

Please sign in to comment.