*参照元 [#l41e743e]
#backlinks

*説明 [#q0c3db66]
-パス: [[linux-2.6.33/sound/soc/soc-core.c]]

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


**引数 [#g21311a0]
-struct snd_soc_platform *platform
--
--[[linux-2.6.33/snd_soc_platform]]


**返り値 [#r7c80877]
-int
--成功ならば 0、失敗ならば負のエラー値を返す。


**参考 [#fedeebb8]


*実装 [#g7c5f36c]
 /**
  * snd_soc_register_platform - Register a platform with the ASoC core
  *
  * @platform: platform to register
  */
 int snd_soc_register_platform(struct snd_soc_platform *platform)
 {
 	if (!platform->name)
 		return -EINVAL;
 
 	INIT_LIST_HEAD(&platform->list);
 
-
--[[linux-2.6.33/INIT_LIST_HEAD()]]

 	mutex_lock(&client_mutex);
 	list_add(&platform->list, &platform_list);
 	snd_soc_instantiate_cards();
 	mutex_unlock(&client_mutex);
 
-
--[[linux-2.6.33/mutex_lock()]]
-
--[[linux-2.6.33/list_add()]]
-
--[[linux-2.6.33/snd_soc_instantiate_cards()]]
-
--[[linux-2.6.33/mutex_unlock()]]
-
--[[linux-2.6.33/client_mutex(global)]]
-
--[[linux-2.6.33/platform_list(global)]]

 	pr_debug("Registered platform '%s'\n", platform->name);
 
-
--[[linux-2.6.33/pr_debug()]]

 	return 0;
 }
 EXPORT_SYMBOL_GPL(snd_soc_register_platform);
-GPL のモジュールにのみシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL_GPL()]]


*コメント [#y97833c4]

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