projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2dd933
)
ALSA: hda - Avoid unnecessary verbs write in snd_hda_activate_path()
author
Takashi Iwai
<tiwai@suse.de>
Mon, 27 Jan 2014 15:26:16 +0000
(16:26 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 30 Jan 2014 11:39:11 +0000
(12:39 +0100)
... 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>
sound/pci/hda/hda_generic.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_generic.c
b/sound/pci/hda/hda_generic.c
index 8321a97d5c05047ab2312f8c62603826041a1897..437ef13c5a90acb33abb55f8b9d8ea2531853856 100644
(file)
--- 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_
wri
te_cache(codec, nid, 0,
+ snd_hda_codec_
upda
te_cache(codec, nid, 0,
AC_VERB_SET_CONNECT_SEL,
path->idx[i]);
if (has_amp_in(codec, path, i))