*参照元 [#obe8e45d]
#backlinks

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

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


**引数 [#w39d1f6a]
-struct snd_soc_dai *dai
--
--[[linux-2.6.33/snd_soc_dai]]


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


**参考 [#pa1e0218]


*実装 [#ie236a55]
 /**
  * snd_soc_register_dai - Register a DAI with the ASoC core
  *
  * @dai: DAI to register
  */
 int snd_soc_register_dai(struct snd_soc_dai *dai)
 {
 	if (!dai->name)
 		return -EINVAL;
 
 	/* The device should become mandatory over time */
 	if (!dai->dev)
 		printk(KERN_WARNING "No device for DAI %s\n", dai->name);
 
 	if (!dai->ops)
 		dai->ops = &null_dai_ops;
 
 	INIT_LIST_HEAD(&dai->list);
 
-
--[[linux-2.6.33/INIT_LIST_HEAD()]]

 	mutex_lock(&client_mutex);
 	list_add(&dai->list, &dai_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/dai_list(global)]]
-
--[[linux-2.6.33/snd_soc_instantiate_cards()]]
-
--[[linux-2.6.33/mutex_unlock()]]

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

 	return 0;
 }
 EXPORT_SYMBOL_GPL(snd_soc_register_dai);
-
--[[linux-2.6.33/EXPORT_SYMBOL_GPL()]]


*コメント [#o9408b94]


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