参照元

説明

引数

返り値

参考

実装

/**
 * snd_soc_dapm_disable_pin - disable pin.
 * @dapm: DAPM context
 * @pin: pin name
 *
 * Disables input/output pin and its parents or children widgets.
 *
 * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
 * do any widget power switching.
 */
int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm,
                             const char *pin)
{
        int ret;

        mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
        ret = snd_soc_dapm_set_pin(dapm, pin, 0);
        mutex_unlock(&dapm->card->dapm_mutex);
        return ret;
}
EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin);

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS