Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363179
b: refs/heads/master
c: 84eaa13
h: refs/heads/master
i:
  363177: 8ab8f11
  363175: ce20554
v: v3
  • Loading branch information
Mark Brown committed Apr 1, 2013
1 parent 222c72b commit 192dea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 253b5374f08f3908cc380c5665470a5b7609be1c
refs/heads/master: 84eaa13616b6e7d001b7f7b909228087779b677b
4 changes: 3 additions & 1 deletion trunk/drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ static void arizona_extcon_set_mode(struct arizona_extcon_info *info, int mode)
{
struct arizona *arizona = info->arizona;

mode %= info->num_micd_modes;

if (arizona->pdata.micd_pol_gpio > 0)
gpio_set_value_cansleep(arizona->pdata.micd_pol_gpio,
info->micd_modes[mode].gpio);
Expand Down Expand Up @@ -783,7 +785,7 @@ static irqreturn_t arizona_micdet(int irq, void *data)
* impedence then give up and report headphones.
*/
if (info->detecting && (val & 0x3f8)) {
if (info->jack_flips >= info->micd_num_modes) {
if (info->jack_flips >= info->micd_num_modes * 10) {
dev_dbg(arizona->dev, "Detected HP/line\n");
arizona_identify_headphone(info);

Expand Down

0 comments on commit 192dea9

Please sign in to comment.