]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: vmaster: Fix slave change notification
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Mar 2013 14:43:39 +0000 (15:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Mar 2013 14:43:39 +0000 (15:43 +0100)
commit6d10a2376a38241e66e97c1374e57aec2027de84
tree0d8e0ea4dbd52498b774e82ff2593262f86f6af4
parent8cad06fb9f2b2c268367e523d53aa4f63f661372
ALSA: vmaster: Fix slave change notification

When a value of a vmaster slave control is changed, the ctl change
notification is sometimes ignored.  This happens when the master
control overrides, e.g. when the corresponding master control is
muted.  The reason is that slave_put() returns the value of the actual
slave put callback, and it doesn't reflect the virtual slave value
change.

This patch fixes the function just to return 1 whenever a slave value
is changed.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/vmaster.c