Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270677
b: refs/heads/master
c: 4d64bdc
h: refs/heads/master
i:
  270675: 7eabf05
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 26, 2011
1 parent 3fa8519 commit bde8d9b
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: 8ff1e1709846c48d20a062293df013931d99585b
refs/heads/master: 4d64bdca4485da8d2e604c2b02f3f32c9f468a28
12 changes: 2 additions & 10 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ static void twl6040_pga_hf_work(struct work_struct *work)
container_of(work, struct twl6040_data, handsfree.work.work);
struct snd_soc_codec *codec = priv->codec;
struct twl6040_output *handsfree = &priv->handsfree;
unsigned int delay = handsfree->step_delay;
int i, handsfree_complete;

/* do we need to ramp at all ? */
Expand All @@ -543,15 +542,8 @@ static void twl6040_pga_hf_work(struct work_struct *work)
if (handsfree_complete)
break;

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


Expand Down

0 comments on commit bde8d9b

Please sign in to comment.