ALSA: vmaster: Fix slave change notification
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Mar 2013 14:43:39 +0000 (15:43 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:23 +0000 (15:03 +0000)
commit80e841638927953e753fa80b95077a3e88caab61
treef3191c5ca8ae9d12fad0f9079b80958b0997ddcd
parent4533ed41f0afffa36413ce4f04cc4413e215b321
ALSA: vmaster: Fix slave change notification

commit 2069d483b39a603a5f3428a19d3b4ac89aa97f48 upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/core/vmaster.c