linux-2.6.33/snd_pcm_action_single()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#h08f32bb]
#backlinks
*説明 [#odabdc87]
-パス: [[linux-2.6.33/sound/core/pcm_native.c]]
-FIXME: これは何?
--説明
**引数 [#rbcb13ed]
-struct action_ops *ops
--
--[[linux-2.6.33/action_ops]]
-struct snd_pcm_substream *substream
--
--[[linux-2.6.33/snd_pcm_substream]]
-int state
--
**返り値 [#j31d91fe]
-int
--
**参考 [#z1b1de9d]
*実装 [#hc6579cb]
/*
* Note: call with stream lock
*/
static int snd_pcm_action_single(struct action_ops *ops,
struct snd_pcm_substream *substream,
int state)
{
int res;
res = ops->pre_action(substream, state);
if (res < 0)
return res;
res = ops->do_action(substream, state);
if (res == 0)
ops->post_action(substream, state);
else if (ops->undo_action)
ops->undo_action(substream, state);
return res;
}
*コメント [#i853ac7f]
終了行:
*参照元 [#h08f32bb]
#backlinks
*説明 [#odabdc87]
-パス: [[linux-2.6.33/sound/core/pcm_native.c]]
-FIXME: これは何?
--説明
**引数 [#rbcb13ed]
-struct action_ops *ops
--
--[[linux-2.6.33/action_ops]]
-struct snd_pcm_substream *substream
--
--[[linux-2.6.33/snd_pcm_substream]]
-int state
--
**返り値 [#j31d91fe]
-int
--
**参考 [#z1b1de9d]
*実装 [#hc6579cb]
/*
* Note: call with stream lock
*/
static int snd_pcm_action_single(struct action_ops *ops,
struct snd_pcm_substream *substream,
int state)
{
int res;
res = ops->pre_action(substream, state);
if (res < 0)
return res;
res = ops->do_action(substream, state);
if (res == 0)
ops->post_action(substream, state);
else if (ops->undo_action)
ops->undo_action(substream, state);
return res;
}
*コメント [#i853ac7f]
ページ名: