*参照元 [#xb78213f] #backlinks *説明 [#cb496a6b] -パス: [[linux-4.4.1/sound/soc/soc-jack.c]] -FIXME: これは何? --説明 **引数 [#n8aa7204] -struct snd_soc_jack_gpio *gpio -- --[[linux-4.4.1/snd_soc_jack_gpio]] **返り値 [#s8c76b51] -なし **参考 [#r37c2449] *実装 [#f0b98bfa] /* gpio detect */ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio) { struct snd_soc_jack *jack = gpio->jack; int enable; int report; - --[[linux-4.4.1/snd_soc_jack]] enable = gpiod_get_value_cansleep(gpio->desc); if (gpio->invert) enable = !enable; - --[[linux-4.4.1/gpiod_get_value_cansleep()]] if (enable) report = gpio->report; else report = 0; if (gpio->jack_status_check) report = gpio->jack_status_check(gpio->data); snd_soc_jack_report(jack, report, gpio->report); - --[[linux-4.4.1/snd_soc_jack_report()]] } *コメント [#t09d5a9e]