When the line-jack is plugged/unplugged, the driver must check also
the headphone jack state in addition to the line-out jack.  Currently
it checks only the line-out state and ignores the headphone.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
 
        res &= ~VIA_JACK_EVENT;
 
-       if (res == VIA_HP_EVENT)
+       if (res == VIA_HP_EVENT || res == VIA_LINE_EVENT)
                via_hp_automute(codec);
        else if (res == VIA_GPIO_EVENT)
                via_gpio_control(codec);
-       else if (res == VIA_LINE_EVENT)
-               via_line_automute(codec, false);
 }
 
 #ifdef SND_HDA_NEEDS_RESUME
        via_auto_init_unsol_event(codec);
 
        via_hp_automute(codec);
-       via_line_automute(codec, false);
 
        return 0;
 }