Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int tegra_wm8903_suspend_post(struct snd_soc_card *card)
- {
- struct snd_soc_jack_gpio *gpio = &tegra_wm8903_hp_jack_gpio;
- if (gpio_is_valid(gpio->gpio))
- disable_irq(gpio_to_irq(gpio->gpio));
- return 0;
- }
- static int tegra_wm8903_resume_pre(struct snd_soc_card *card)
- {
- int val;
- struct snd_soc_jack_gpio *gpio = &tegra_wm8903_hp_jack_gpio;
- if (gpio_is_valid(gpio->gpio)) {
- val = gpio_get_value(gpio->gpio);
- val = gpio->invert ? !val : val;
- snd_soc_jack_report(gpio->jack, val, gpio->report);
- enable_irq(gpio_to_irq(gpio->gpio));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment