linux-4.4.1/soc_probe_link_components()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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...
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 CODE...
component = rtd->cpu_dai->component;
if (component->driver->probe_order == order) {
ret = soc_probe_component(card, componen...
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 == or...
ret = soc_probe_component(card, ...
if (ret < 0)
return ret;
}
}
/* probe the platform */
if (platform->component.driver->probe_order == o...
ret = soc_probe_component(card, &platfor...
if (ret < 0)
return ret;
}
return 0;
}
*コメント [#v344b10f]
終了行:
*参照元 [#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...
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 CODE...
component = rtd->cpu_dai->component;
if (component->driver->probe_order == order) {
ret = soc_probe_component(card, componen...
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 == or...
ret = soc_probe_component(card, ...
if (ret < 0)
return ret;
}
}
/* probe the platform */
if (platform->component.driver->probe_order == o...
ret = soc_probe_component(card, &platfor...
if (ret < 0)
return ret;
}
return 0;
}
*コメント [#v344b10f]
ページ名: