diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-27 11:43:09 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-27 11:43:09 +0200 |
commit | 401caff70cd3d3ef3c96e1a1cbf6f973c24ba899 (patch) | |
tree | 83e3d22afb2665e06be6c7c4fc09173d51b89280 /sound/pci/hda/patch_analog.c | |
parent | ALSA: hda/realtek - Comprehensive model list for ALC882 & co (diff) | |
download | linux-dev-401caff70cd3d3ef3c96e1a1cbf6f973c24ba899.tar.xz linux-dev-401caff70cd3d3ef3c96e1a1cbf6f973c24ba899.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 757857313426..fd476fb40e1b 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -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); } |