ALSA: hda - Fix missing unsol event handler in some codec drivers
authorTakashi Iwai <tiwai@suse.de>
Fri, 18 Jan 2013 06:51:17 +0000 (07:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Jan 2013 06:57:46 +0000 (07:57 +0100)
This resulted in non-working auto-mute behavior, of course...

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_ca0110.c
sound/pci/hda/patch_cmedia.c

index 02fe0d1da6e016e882251540ca18b178186b4eae..6feaec4cd6b93f837a97bd6f90ee8dc9ec9ca04b 100644 (file)
@@ -595,6 +595,7 @@ static const struct hda_codec_ops ad198x_auto_patch_ops = {
        .build_pcms = snd_hda_gen_build_pcms,
        .init = snd_hda_gen_init,
        .free = ad198x_free,
+       .unsol_event = snd_hda_jack_unsol_event,
 #ifdef CONFIG_PM
        .check_power_status = snd_hda_gen_check_power_status,
        .suspend = ad198x_suspend,
index 8d093254c2044a74779fdac1a39c90bb9310fa8b..db7635cd8255a46744fcc9f0a7c8591317088fcd 100644 (file)
@@ -36,6 +36,7 @@ static const struct hda_codec_ops ca0110_patch_ops = {
        .build_pcms = snd_hda_gen_build_pcms,
        .init = snd_hda_gen_init,
        .free = snd_hda_gen_free,
+       .unsol_event = snd_hda_jack_unsol_event,
 };
 
 static int ca0110_parse_auto_config(struct hda_codec *codec)
index 04dd3b6b7db5f05ad6caf8e3651a365be5de680b..087cabbcf25c56b06a4b71fa7b84b2626a1a8201 100644 (file)
@@ -576,6 +576,7 @@ static const struct hda_codec_ops cmi_auto_patch_ops = {
        .build_pcms = snd_hda_gen_build_pcms,
        .init = snd_hda_gen_init,
        .free = snd_hda_gen_free,
+       .unsol_event = snd_hda_jack_unsol_event,
 };
 
 static int cmi_parse_auto_config(struct hda_codec *codec)