*参照元 [#g1f9c32a]
#backlinks

*説明 [#g7d35511]
-パス: [[linux-4.4.1/sound/soc/soc-dapm.c]]

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


**引数 [#tbe7b32d]
-struct snd_soc_dapm_context *dapm
--
--[[linux-4.4.1/snd_soc_dapm_context]]
-const char *pin
--
-bool search_other_contexts
--


**返り値 [#ed35f161]
-struct snd_soc_dapm_widget *
--
--[[linux-4.4.1/snd_soc_dapm_widget]]


**参考 [#kd12ec24]


*実装 [#ka8f6a3b]
 static struct snd_soc_dapm_widget *dapm_find_widget(
                         struct snd_soc_dapm_context *dapm, const char *pin,
                         bool search_other_contexts)
 {
         struct snd_soc_dapm_widget *w;
         struct snd_soc_dapm_widget *fallback = NULL;
 
-
--[[linux-4.4.1/snd_soc_dapm_widget]]

         list_for_each_entry(w, &dapm->card->widgets, list) {
-
--[[linux-4.4.1/list_for_each_entry()]]

                 if (!strcmp(w->name, pin)) {
                         if (w->dapm == dapm)
                                 return w;
                         else
                                 fallback = w;
                 }
         }
 
-
--[[linux-4.4.1/strcmp()]]

         if (search_other_contexts)
                 return fallback;
 
         return NULL;
 }


*コメント [#o3b77f48]


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