|
@@ -4475,9 +4475,11 @@ int snd_hda_gen_build_controls(struct hda_codec *codec)
|
|
true, &spec->vmaster_mute.sw_kctl);
|
|
true, &spec->vmaster_mute.sw_kctl);
|
|
if (err < 0)
|
|
if (err < 0)
|
|
return err;
|
|
return err;
|
|
- if (spec->vmaster_mute.hook)
|
|
|
|
|
|
+ if (spec->vmaster_mute.hook) {
|
|
snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute,
|
|
snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute,
|
|
spec->vmaster_mute_enum);
|
|
spec->vmaster_mute_enum);
|
|
|
|
+ snd_hda_sync_vmaster_hook(&spec->vmaster_mute);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
free_kctls(spec); /* no longer needed */
|
|
free_kctls(spec); /* no longer needed */
|