提交 1ba65ae4 编写于 作者: T Takashi Iwai

ALSA: vmaster: Fix the regression of missing vmaster hook call

The commit [1ca2f2ec: 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: NTakashi Iwai <tiwai@suse.de>
上级 05843c07
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册