diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-27 15:26:16 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-30 11:39:11 (GMT) |
commit | 8f0972dfa9b7378aaf14eebf2454abd93a6033ad (patch) | |
tree | a4cba525493c57bb40143fb1a2d64a254188ab60 /sound/pci/hda/hda_generic.c | |
parent | a2dd933d01fb947915b1323d4db0d8e5c84f4dc3 (diff) | |
download | linux-8f0972dfa9b7378aaf14eebf2454abd93a6033ad.tar.xz |
ALSA: hda - Avoid unnecessary verbs write in snd_hda_activate_path()
... by using snd_Hda_codec_update_cache() instead of *_write_cache().
Since all path elements should have been updated by this function,
we are safe to assume that the cache contents are consistent.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 8321a97..437ef13 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -762,7 +762,7 @@ void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, AC_PWRST_D0); } if (enable && path->multi[i]) - snd_hda_codec_write_cache(codec, nid, 0, + snd_hda_codec_update_cache(codec, nid, 0, AC_VERB_SET_CONNECT_SEL, path->idx[i]); if (has_amp_in(codec, path, i)) |