*参照元 [#sd09a68f] #backlinks *説明 [#z017e07a] -パス: [[linux-4.4.1/sound/soc/soc-core.c]] -FIXME: これは何? --説明 **引数 [#oe8eaf84] -struct snd_soc_card *card -- --[[linux-4.4.1/snd_soc_card]] -int num -- -int order -- **返り値 [#v0bbc1c6] -int -- **参考 [#y3c9015a] *実装 [#b8bbcb63] static int soc_probe_link_components(struct snd_soc_card *card, int num, int order) { struct snd_soc_pcm_runtime *rtd = &card->rtd[num]; struct snd_soc_platform *platform = rtd->platform; struct snd_soc_component *component; int i, ret; - --[[linux-4.4.1/snd_soc_pcm_runtime]] --[[linux-4.4.1/snd_soc_platform]] --[[linux-4.4.1/snd_soc_component]] /* probe the CPU-side component, if it is a CODEC */ component = rtd->cpu_dai->component; if (component->driver->probe_order == order) { ret = soc_probe_component(card, component); if (ret < 0) return ret; } - --[[linux-4.4.1/soc_probe_component()]] /* probe the CODEC-side components */ for (i = 0; i < rtd->num_codecs; i++) { component = rtd->codec_dais[i]->component; if (component->driver->probe_order == order) { ret = soc_probe_component(card, component); if (ret < 0) return ret; } } /* probe the platform */ if (platform->component.driver->probe_order == order) { ret = soc_probe_component(card, &platform->component); if (ret < 0) return ret; } return 0; } *コメント [#v344b10f]