linux-4.4.1/dpcm_be_connect()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#t4b9ede1]
#backlinks
*説明 [#q2dd1066]
-パス: [[linux-4.4.1/sound/soc/soc-pcm.c]]
-FIXME: これは何?
--説明
**引数 [#p9966b8e]
-struct snd_soc_pcm_runtime *fe
--
--[[linux-4.4.1/snd_soc_pcm_runtime]]
-struct snd_soc_pcm_runtime *be
--
-int stream
--
**返り値 [#h9411e08]
-int
--
**参考 [#p0981fa1]
*実装 [#i694cf06]
/* connect a FE and BE */
static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe,
struct snd_soc_pcm_runtime *be, int stre...
{
struct snd_soc_dpcm *dpcm;
-
--[[linux-4.4.1/snd_soc_dpcm]]
/* only add new dpcms */
list_for_each_entry(dpcm, &fe->dpcm[stream].be_c...
if (dpcm->be == be && dpcm->fe == fe)
return 0;
}
-
--[[linux-4.4.1/list_for_each_entry()]]
dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_...
if (!dpcm)
return -ENOMEM;
-
--[[linux-4.4.1/kzalloc()]]
dpcm->be = be;
dpcm->fe = fe;
be->dpcm[stream].runtime = fe->dpcm[stream].runt...
dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW;
list_add(&dpcm->list_be, &fe->dpcm[stream].be_cl...
list_add(&dpcm->list_fe, &be->dpcm[stream].fe_cl...
-
--[[linux-4.4.1/list_add()]]
dev_dbg(fe->dev, "connected new DPCM %s path %s ...
stream ? "capture" : "playback",...
stream ? "<-" : "->", be->dai_li...
-
--[[linux-4.4.1/dev_dbg()]]
#ifdef CONFIG_DEBUG_FS
-
--[[linux-4.4.1/CONFIG_DEBUG_FS]]
if (fe->debugfs_dpcm_root)
dpcm->debugfs_state = debugfs_create_u32...
fe->debugfs_dpcm_root, &...
-
--[[linux-4.4.1/debugfs_create_u32()]]
#endif
return 1;
}
*コメント [#bcc3f736]
終了行:
*参照元 [#t4b9ede1]
#backlinks
*説明 [#q2dd1066]
-パス: [[linux-4.4.1/sound/soc/soc-pcm.c]]
-FIXME: これは何?
--説明
**引数 [#p9966b8e]
-struct snd_soc_pcm_runtime *fe
--
--[[linux-4.4.1/snd_soc_pcm_runtime]]
-struct snd_soc_pcm_runtime *be
--
-int stream
--
**返り値 [#h9411e08]
-int
--
**参考 [#p0981fa1]
*実装 [#i694cf06]
/* connect a FE and BE */
static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe,
struct snd_soc_pcm_runtime *be, int stre...
{
struct snd_soc_dpcm *dpcm;
-
--[[linux-4.4.1/snd_soc_dpcm]]
/* only add new dpcms */
list_for_each_entry(dpcm, &fe->dpcm[stream].be_c...
if (dpcm->be == be && dpcm->fe == fe)
return 0;
}
-
--[[linux-4.4.1/list_for_each_entry()]]
dpcm = kzalloc(sizeof(struct snd_soc_dpcm), GFP_...
if (!dpcm)
return -ENOMEM;
-
--[[linux-4.4.1/kzalloc()]]
dpcm->be = be;
dpcm->fe = fe;
be->dpcm[stream].runtime = fe->dpcm[stream].runt...
dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW;
list_add(&dpcm->list_be, &fe->dpcm[stream].be_cl...
list_add(&dpcm->list_fe, &be->dpcm[stream].fe_cl...
-
--[[linux-4.4.1/list_add()]]
dev_dbg(fe->dev, "connected new DPCM %s path %s ...
stream ? "capture" : "playback",...
stream ? "<-" : "->", be->dai_li...
-
--[[linux-4.4.1/dev_dbg()]]
#ifdef CONFIG_DEBUG_FS
-
--[[linux-4.4.1/CONFIG_DEBUG_FS]]
if (fe->debugfs_dpcm_root)
dpcm->debugfs_state = debugfs_create_u32...
fe->debugfs_dpcm_root, &...
-
--[[linux-4.4.1/debugfs_create_u32()]]
#endif
return 1;
}
*コメント [#bcc3f736]
ページ名: