aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-jack.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-jack.c')
-rw-r--r--sound/soc/soc-jack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c
index 23d43dac91da..b903f822d1b2 100644
--- a/sound/soc/soc-jack.c
+++ b/sound/soc/soc-jack.c
@@ -250,7 +250,7 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio)
250 report = 0; 250 report = 0;
251 251
252 if (gpio->jack_status_check) 252 if (gpio->jack_status_check)
253 report = gpio->jack_status_check(); 253 report = gpio->jack_status_check(gpio->data);
254 254
255 snd_soc_jack_report(jack, report, gpio->report); 255 snd_soc_jack_report(jack, report, gpio->report);
256} 256}
@@ -342,7 +342,8 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
342 gpio_export(gpios[i].gpio, false); 342 gpio_export(gpios[i].gpio, false);
343 343
344 /* Update initial jack status */ 344 /* Update initial jack status */
345 snd_soc_jack_gpio_detect(&gpios[i]); 345 schedule_delayed_work(&gpios[i].work,
346 msecs_to_jiffies(gpios[i].debounce_time));
346 } 347 }
347 348
348 return 0; 349 return 0;