]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/hda/patch_via.c
ALSA: hda - Get rid of action field from struct hda_jack_tbl
[mirror_ubuntu-bionic-kernel.git] / sound / pci / hda / patch_via.c
index 778166259b3e8e72fe039d08fe5e1671d5c6fd94..2a8be5a5da153e99d39f8c68aed7ba504c50de97 100644 (file)
@@ -592,8 +592,6 @@ static void via_jack_powerstate_event(struct hda_codec *codec, struct hda_jack_t
        set_widgets_power_state(codec);
 }
 
-#define VIA_JACK_EVENT (HDA_GEN_LAST_EVENT + 1)
-
 static void via_set_jack_unsol_events(struct hda_codec *codec)
 {
        struct via_spec *spec = codec->spec;
@@ -610,7 +608,6 @@ static void via_set_jack_unsol_events(struct hda_codec *codec)
                if (pin && !snd_hda_jack_tbl_get(codec, pin) &&
                    is_jack_detectable(codec, pin))
                        snd_hda_jack_detect_enable_callback(codec, pin,
-                                                           VIA_JACK_EVENT,
                                                            via_jack_powerstate_event);
        }
 
@@ -619,7 +616,6 @@ static void via_set_jack_unsol_events(struct hda_codec *codec)
                if (pin && !snd_hda_jack_tbl_get(codec, pin) &&
                    is_jack_detectable(codec, pin))
                        snd_hda_jack_detect_enable_callback(codec, pin,
-                                                           VIA_JACK_EVENT,
                                                            via_jack_powerstate_event);
        }
 }