Skip to content

Commit

Permalink
ALSA: hda - Add missing amp cache flush for bound capture vol/sw ctls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 0c3d47b commit 84e3908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1919,6 +1919,7 @@ static int cap_put_caller(struct snd_kcontrol *kcontrol,
error:
codec->cached_write = 0;
mutex_unlock(&codec->control_mutex);
snd_hda_codec_flush_amp_cache(codec);
if (err >= 0 && spec->cap_sync_hook)
spec->cap_sync_hook(codec);
return err;
Expand Down

0 comments on commit 84e3908

Please sign in to comment.