参照元

説明

引数

返り値

参考

実装

/**
 * snd_soc_unregister_codec - Unregister a codec from the ASoC core
 *
 * @dev: codec to unregister
 */
void snd_soc_unregister_codec(struct device *dev)
{
        struct snd_soc_codec *codec;
        mutex_lock(&client_mutex);
        list_for_each_entry(codec, &codec_list, list) {
                if (dev == codec->dev)
                        goto found;
        }
        mutex_unlock(&client_mutex);
        return;

found:
        list_del(&codec->list);
        snd_soc_component_del_unlocked(&codec->component);
        mutex_unlock(&client_mutex);
        dev_dbg(codec->dev, "ASoC: Unregistered codec '%s'\n",
                        codec->component.name);
        snd_soc_component_cleanup(&codec->component);
        snd_soc_cache_exit(codec);
        kfree(codec);
}
EXPORT_SYMBOL_GPL(snd_soc_unregister_codec);

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-06-08 (水) 16:38:51