https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_via.c?id=11890956e948e6ed1b3e4acc11b6879db6ace01b

there is a bug in set_widgets_power_state_vt2002P

node 0x26 does not support Jack detect

Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono


        /* Mono Out */
        present = snd_hda_jack_detect(codec, 0x26);
 
        parm = present ? AC_PWRST_D3 : AC_PWRST_D0;
-       /* PW15 (31h), MW8(17h), MUX8(3bh) */
-       snd_hda_codec_write(codec, 0x31, 0,
-                           AC_VERB_SET_POWER_STATE, parm);
-       snd_hda_codec_write(codec, 0x17, 0,
-                           AC_VERB_SET_POWER_STATE, parm);
-       snd_hda_codec_write(codec, 0x3b, 0,
-                           AC_VERB_SET_POWER_STATE, parm);
-
+       if (spec->codec_type == VT1802) {
+               /* PW15 (33h), MW8(1ch), MUX8(3ch) */
+               snd_hda_codec_write(codec, 0x33, 0,
+                                   AC_VERB_SET_POWER_STATE, parm);
+               snd_hda_codec_write(codec, 0x1c, 0,
+                                   AC_VERB_SET_POWER_STATE, parm);
+               snd_hda_codec_write(codec, 0x3c, 0,
+                                   AC_VERB_SET_POWER_STATE, parm);

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313904

Title:
  [W230SS, VIA VT1802, Green Headphone Out, Front] No sound after
  suspend/resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/alsa-driver/+bug/1313904/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to