*参照元 [#idaa869d]
#backlinks

*説明 [#uea96305]
-パス: [[linux-4.4.1/sound/core/pcm_memory.c]]

-FIXME: これは何?
--説明


**引数 [#hca725d9]
-struct snd_pcm *pcm
--
--[[linux-4.4.1/snd_pcm]]


**返り値 [#ga3a6567]
-int
--


**参考 [#i105c43b]


*実装 [#nc28386f]
 /**
  * snd_pcm_lib_preallocate_free_for_all - release all pre-allocated buffers on the pcm
  * @pcm: the pcm instance
  *
  * Releases all the pre-allocated buffers on the given pcm.
  *
  * Return: Zero if successful, or a negative error code on failure.
  */
 int snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm)
 {
 	struct snd_pcm_substream *substream;
 	int stream;
 
-
--[[linux-4.4.1/snd_pcm_substream]]

 	for (stream = 0; stream < 2; stream++)
 		for (substream = pcm->streams[stream].substream; substream; substream = substream->next)
 			snd_pcm_lib_preallocate_free(substream);
-substream は playback と capture の 2つ
-pcm->streams は struct snd_pcm_str 型
--substream はデバイスによって存在したり、存在しなかったりする
null じゃなければ存在していることになるようだ
--[[linux-4.4.1/snd_pcm_str]]
--[[linux-4.4.1/snd_pcm_lib_preallocate_free()]]

 	return 0;
 }
 
 EXPORT_SYMBOL(snd_pcm_lib_preallocate_free_for_all);
-ライセンスに関係なくシンボルを公開する。
--[[linux-4.4.1/EXPORT_SYMBOL()]]


*コメント [#qf23fa32]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS