参照元

説明

引数

返り値

参考

実装

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;
        list_for_each_entry(w, &dapm->card->widgets, list) {
                if (!strcmp(w->name, pin)) {
                        if (w->dapm == dapm)
                                return w;
                        else
                                fallback = w;
                }
        }
        if (search_other_contexts)
                return fallback;

        return NULL;
}

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-07-28 (木) 13:39:04