*参照元 [#tfc13884] #backlinks *説明 [#k4218d7f] -パス: [[linux-4.4.1/sound/soc/soc-core.c]] -FIXME: これは何? --説明 **引数 [#q94c0454] -struct snd_soc_dai *dai -- --[[linux-4.4.1/snd_soc_dai]] -const struct snd_kcontrol_new *controls -- --[[linux-4.4.1/snd_kcontrol_new]] -int num_controls -- **返り値 [#wdeece9c] -int -- **参考 [#bc1ea4ee] *実装 [#gc126838] /** * snd_soc_add_dai_controls - add an array of controls to a DAI. * Convienience function to add a list of controls. * * @dai: DAI to add controls to * @controls: array of controls to add * @num_controls: number of elements in the array * * Return 0 for success, else error. */ int snd_soc_add_dai_controls(struct snd_soc_dai *dai, const struct snd_kcontrol_new *controls, int num_controls) { struct snd_card *card = dai->component->card->snd_card; - --dai->component は 型 --[[linux-4.4.1/]] -- dai->component->card は 型 --[[linux-4.4.1/]] --dai->component は struct snd_soc_component * 型 --[[linux-4.4.1/snd_soc_component]] -- dai->component->card は struct snd_soc_card * 型 --[[linux-4.4.1/snd_soc_card]] --[[linux-4.4.1/snd_card]] return snd_soc_add_controls(card, dai->dev, controls, num_controls, NULL, dai); - --[[linux-4.4.1/snd_soc_add_controls()]] } EXPORT_SYMBOL_GPL(snd_soc_add_dai_controls); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#o88ff744]