Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270715
b: refs/heads/master
c: 93eebc6
h: refs/heads/master
i:
  270713: a8ed64a
  270711: ce725a0
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Sep 30, 2011
1 parent 9d44022 commit 5d42f39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a46737aee59e4e001106e1d3777e0801843361db
refs/heads/master: 93eebc6982161f317c4a99118a4423bc3933fdfa
9 changes: 5 additions & 4 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ static void twl6040_pga_hs_work(struct work_struct *work)
if (headset->ramp == TWL6040_RAMP_NONE)
return;

/* HS PGA volumes have 4 bits of resolution to ramp */
for (i = 0; i <= 16; i++) {
/* HS PGA gain range: 0x0 - 0xf (0 - 15) */
for (i = 0; i < 16; i++) {
headset_complete = twl6040_hs_ramp_step(codec,
headset->left_step,
headset->right_step);
Expand Down Expand Up @@ -530,8 +530,9 @@ static void twl6040_pga_hf_work(struct work_struct *work)
if (handsfree->ramp == TWL6040_RAMP_NONE)
return;

/* HF PGA volumes have 5 bits of resolution to ramp */
for (i = 0; i <= 32; i++) {
/*
* HF PGA gain range: 0x00 - 0x1d (0 - 29) */
for (i = 0; i < 30; i++) {
handsfree_complete = twl6040_hf_ramp_step(codec,
handsfree->left_step,
handsfree->right_step);
Expand Down

0 comments on commit 5d42f39

Please sign in to comment.