Lines 796-805
static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable)
Link Here
|
796 |
if (spec->own_eapd_ctl || |
796 |
if (spec->own_eapd_ctl || |
797 |
!(snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_EAPD)) |
797 |
!(snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_EAPD)) |
798 |
return; |
798 |
return; |
799 |
if (codec->inv_eapd) |
|
|
800 |
enable = !enable; |
801 |
if (spec->keep_eapd_on && !enable) |
799 |
if (spec->keep_eapd_on && !enable) |
802 |
return; |
800 |
return; |
|
|
801 |
if (codec->inv_eapd) |
802 |
enable = !enable; |
803 |
snd_hda_codec_update_cache(codec, pin, 0, |
803 |
snd_hda_codec_update_cache(codec, pin, 0, |
804 |
AC_VERB_SET_EAPD_BTLENABLE, |
804 |
AC_VERB_SET_EAPD_BTLENABLE, |
805 |
enable ? 0x02 : 0x00); |
805 |
enable ? 0x02 : 0x00); |
806 |
- |
|
|