aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-12-20 05:43:47 -0500
committerTakashi Iwai <tiwai@suse.de>2013-01-12 02:34:01 -0500
commit84e3908dc837b9d3314a92d8fda12a0ce3946714 (patch)
treed4b96b6818c8e17704114026044f7d09cee546e8
parent0c3d47b007dcc0ec7c26a1a654a281076f2f8545 (diff)
ALSA: hda - Add missing amp cache flush for bound capture vol/sw ctls
The bound capture volume and switch controls use the cached amp updates, but it's missing the flushing at the end. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index f8d1d03cd219..3e818b6aa5b0 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -1919,6 +1919,7 @@ static int cap_put_caller(struct snd_kcontrol *kcontrol,
1919 error: 1919 error:
1920 codec->cached_write = 0; 1920 codec->cached_write = 0;
1921 mutex_unlock(&codec->control_mutex); 1921 mutex_unlock(&codec->control_mutex);
1922 snd_hda_codec_flush_amp_cache(codec);
1922 if (err >= 0 && spec->cap_sync_hook) 1923 if (err >= 0 && spec->cap_sync_hook)
1923 spec->cap_sync_hook(codec); 1924 spec->cap_sync_hook(codec);
1924 return err; 1925 return err;