Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270676
b: refs/heads/master
c: 8ff1e17
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 26, 2011
1 parent 7eabf05 commit 3fa8519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46dd0b93a086b798a040c06479eabcb87cd29344
refs/heads/master: 8ff1e1709846c48d20a062293df013931d99585b
12 changes: 2 additions & 10 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ static void twl6040_pga_hs_work(struct work_struct *work)
container_of(work, struct twl6040_data, headset.work.work);
struct snd_soc_codec *codec = priv->codec;
struct twl6040_output *headset = &priv->headset;
unsigned int delay = headset->step_delay;
int i, headset_complete;

/* do we need to ramp at all ? */
Expand All @@ -508,15 +507,8 @@ static void twl6040_pga_hs_work(struct work_struct *work)
if (headset_complete)
break;

/*
* TODO: tune: delay is longer over 0dB
* as increases are larger.
*/
if (i >= 8)
schedule_timeout_interruptible(msecs_to_jiffies(delay +
(delay >> 1)));
else
schedule_timeout_interruptible(msecs_to_jiffies(delay));
schedule_timeout_interruptible(
msecs_to_jiffies(headset->step_delay));
}

if (headset->ramp == TWL6040_RAMP_DOWN) {
Expand Down

0 comments on commit 3fa8519

Please sign in to comment.