Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Jul 24, 2015
2 parents 66874cc + f2a5ded commit 51126f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/rt5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -2943,6 +2943,9 @@ static int rt5645_irq_detection(struct rt5645_priv *rt5645)
{
int val, btn_type, gpio_state = 0, report = 0;

if (!rt5645->codec)
return -EINVAL;

switch (rt5645->pdata.jd_mode) {
case 0: /* Not using rt5645 JD */
if (rt5645->gpiod_hp_det) {
Expand Down

0 comments on commit 51126f6

Please sign in to comment.