]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: rme96: Fix unexpected volume reset after rate changes
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Dec 2015 15:44:24 +0000 (16:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:25:45 +0000 (11:25 -0800)
commitb46082e9ec37dbbd428dcb4393d9cfedb70ad6e5
treeafe8558ae9ade2056ec9dac62183401a9841c3ab
parent18b080581f0b5c7b0ff87871806a9525a60cccc0
ALSA: rme96: Fix unexpected volume reset after rate changes

commit a74a821624c0c75388a193337babd17a8c02c740 upstream.

rme96 driver needs to reset DAC depending on the sample rate, and this
results in resetting to the max volume suddenly.  It's because of the
missing call of snd_rme96_apply_dac_volume().

However, calling this function right after the DAC reset still may not
work, and we need some delay before this call.  Since the DAC reset
and the procedure after that are performed in the spinlock, we delay
the DAC volume restore at the end after the spinlock.

Reported-and-tested-by: Sylvain LABOISNE <maeda1@free.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/rme96.c