ALSA: hda - Kill snd_hda_codec_update_cache()
snd_hda_codec_update_cache() used to serve for a slightly different purpose from snd_hdac_write_cache(), but now both of them became identical. Let's unify and replace with the latter one consistently. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -148,7 +148,7 @@ static void ad_vmaster_eapd_hook(void *private_data, int enabled)
|
||||
return;
|
||||
if (codec->inv_eapd)
|
||||
enabled = !enabled;
|
||||
snd_hda_codec_update_cache(codec, spec->eapd_nid, 0,
|
||||
snd_hda_codec_write_cache(codec, spec->eapd_nid, 0,
|
||||
AC_VERB_SET_EAPD_BTLENABLE,
|
||||
enabled ? 0x02 : 0x00);
|
||||
}
|
||||
@@ -991,7 +991,7 @@ static void ad1884_vmaster_hp_gpio_hook(void *private_data, int enabled)
|
||||
|
||||
if (spec->eapd_nid)
|
||||
ad_vmaster_eapd_hook(private_data, enabled);
|
||||
snd_hda_codec_update_cache(codec, 0x01, 0,
|
||||
snd_hda_codec_write_cache(codec, 0x01, 0,
|
||||
AC_VERB_SET_GPIO_DATA,
|
||||
enabled ? 0x00 : 0x02);
|
||||
}
|
||||
|
Reference in New Issue
Block a user