*参照元 [#fd0bf098] #backlinks *説明 [#m7ec3781] -パス: 複数あり --CONFIG_SND_JACK 有効: [[linux-4.4.1/sound/core/jack.c]] --CONFIG_SND_JACK 無効: [[linux-4.4.1/include/sound/jack.h]] -FIXME: これは何? --説明 **引数 [#i4f79a29] -struct snd_jack *jack -- --[[linux-4.4.1/snd_jack]] -int status -- **返り値 [#mef014f3] -なし **参考 [#t1290cc0] *実装 [#z26828cd] --CONFIG_SND_JACK 有効: sound/core/jack.c **CONFIG_SND_JACK 有効: sound/core/jack.c [#o6c34b5a] /** * snd_jack_report - Report the current status of a jack * * @jack: The jack to report status for * @status: The current status of the jack */ void snd_jack_report(struct snd_jack *jack, int status) { struct snd_jack_kctl *jack_kctl; int i; - --[[linux-4.4.1/snd_jack_kctl]] if (!jack) return; list_for_each_entry(jack_kctl, &jack->kctl_list, list) snd_kctl_jack_report(jack->card, jack_kctl->kctl, status & jack_kctl->mask_bits); - --[[linux-4.4.1/list_for_each_entry()]] --[[linux-4.4.1/snd_kctl_jack_report()]] if (!jack->input_dev) return; for (i = 0; i < ARRAY_SIZE(jack->key); i++) { int testbit = SND_JACK_BTN_0 >> i; if (jack->type & testbit) input_report_key(jack->input_dev, jack->key[i], status & testbit); - --[[linux-4.4.1/input_report_key()]] } for (i = 0; i < ARRAY_SIZE(jack_switch_types); i++) { int testbit = 1 << i; if (jack->type & testbit) input_report_switch(jack->input_dev, jack_switch_types[i], status & testbit); - --[[linux-4.4.1/input_report_switch()]] } input_sync(jack->input_dev); - --[[linux-4.4.1/input_sync()]] } EXPORT_SYMBOL(snd_jack_report); - --[[linux-4.4.1/EXPORT_SYMBOL()]] --CONFIG_SND_JACK 無効: include/sound/jack.h **CONFIG_SND_JACK 無効: include/sound/jack.h [#r951fae4] static inline void snd_jack_report(struct snd_jack *jack, int status) { } *コメント [#h5be6c17]