*参照元 [#wc9169b3]
#backlinks

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

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


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


**返り値 [#j4c48388]
-int
--


**参考 [#v40587b9]


*実装 [#kcb42549]
 /**
  * snd_soc_dapm_enable_pin - enable pin.
  * @dapm: DAPM context
  * @pin: pin name
  *
  * Enables input/output pin and its parents or children widgets iff there is
  * a valid audio route and active audio stream.
  *
  * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
  * do any widget power switching.
  */
 int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin)
 {
         int ret;
 
         mutex_lock_nested(&dapm->card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
 
-
--[[linux-4.4.1/mutex_lock_nested()]]

         ret = snd_soc_dapm_set_pin(dapm, pin, 1);
 
-
--[[linux-4.4.1/snd_soc_dapm_set_pin()]]

         mutex_unlock(&dapm->card->dapm_mutex);
 
-
--[[linux-4.4.1/mutex_unlock()]]

         return ret;
 }
 EXPORT_SYMBOL_GPL(snd_soc_dapm_enable_pin);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]


*コメント [#pd32b2ae]


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