Skip to content

Commit

Permalink
ALSA: vmaster: Fix the regression of missing vmaster hook call
Browse files Browse the repository at this point in the history
The commit [1ca2f2e: ALSA: vmaster: Add snd_ctl_sync_vmaster() helper
function] changed master_put() function and the check for the required
vmaster hook call is wrongly performed now, which results in the
missing hook call upon "Master Playback Switch" value changes.
This patch corrects the check logic.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jul 3, 2013
1 parent 05843c0 commit 1ba65ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/vmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static int master_put(struct snd_kcontrol *kcontrol,
err = sync_slaves(master, old_val, new_val);
if (err < 0)
return err;
if (master->hook && first_init)
if (master->hook && !first_init)
master->hook(master->hook_private_data, master->val);
return 1;
}
Expand Down

0 comments on commit 1ba65ae

Please sign in to comment.