Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355078
b: refs/heads/master
c: c37b387
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Feb 11, 2013
1 parent 27bae3c commit 802ab0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 5d9ab708200fefc3ec6e4454c65584d14ce716b0
refs/heads/master: c37b387f077c54c5a01fa240dc8448b60bd731c1
7 changes: 4 additions & 3 deletions trunk/drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ static int arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading)
info->hpdet_res[0], info->hpdet_res[1],
info->hpdet_res[2]);


/* Take the headphone impedance for the main report */
*reading = info->hpdet_res[0];

/*
* Either the two grounds measure differently or we
* measure the mic as high impedance.
Expand All @@ -466,9 +470,6 @@ static int arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading)
dev_err(arizona->dev,
"Failed to report mic: %d\n", ret);
}

/* Take the headphone impedance for the main report */
*reading = info->hpdet_res[1];
} else {
dev_dbg(arizona->dev, "Detected headphone\n");
}
Expand Down

0 comments on commit 802ab0e

Please sign in to comment.