Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170228
b: refs/heads/master
c: c871a05
h: refs/heads/master
v: v3
  • Loading branch information
Joonyoung Shim authored and Mark Brown committed Nov 12, 2009
1 parent da299e9 commit acb5234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f773205300fa4a5a405f8ed6e3bb97e46c6eefb4
refs/heads/master: c871a05315d1a76034ea06feeda92081e1d608bf
2 changes: 2 additions & 0 deletions trunk/include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ struct snd_soc_jack_gpio {
int debounce_time;
struct snd_soc_jack *jack;
struct work_struct work;

int (*jack_status_check)(void);
};
#endif

Expand Down
3 changes: 3 additions & 0 deletions trunk/sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio)
else
report = 0;

if (gpio->jack_status_check)
report = gpio->jack_status_check();

snd_soc_jack_report(jack, report, gpio->report);
}

Expand Down

0 comments on commit acb5234

Please sign in to comment.