Re: Fwd: [Bug 217440] New: ALC236 audio disappears from HP 15z-fc000 on warm boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 14 Jul 2023 07:58:49 +0200,
Takashi Iwai wrote:
> 
> On Fri, 14 Jul 2023 04:46:25 +0200,
> Kailang wrote:
> > 
> > Hi Takashi,
> > 
> > Could you agree this workaround?
> 
> Yes, looks fine.  I applied it now.

... and now we receive a regression report due to this change :-<
  https://bugzilla.kernel.org/show_bug.cgi?id=217732

I believe the problem is that the patch disabled the 3kpull-low
behavior too much while some codecs still need it.

The patch changes like:

@@ -3638,8 +3640,7 @@ static void alc256_shutup(struct hda_codec *codec)
        /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly
         * when booting with headset plugged. So skip setting it for the codec alc257
         */
-       if (codec->core.vendor_id != 0x10ec0236 &&
-           codec->core.vendor_id != 0x10ec0257)
+       if (spec->en_3kpull_low)
                alc_update_coef_idx(codec, 0x46, 0, 3 << 12);
 
        if (!spec->no_shutup_pins)

... while the only place setting spec->en_3kpull_low is:

@@ -10682,6 +10683,8 @@ static int patch_alc269(struct hda_codec *codec)
                spec->shutup = alc256_shutup;
                spec->init_hook = alc256_init;
                spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */
+               if (codec->bus->pci->vendor == PCI_VENDOR_ID_AMD)
+                       spec->en_3kpull_low = true;
                break;
        case 0x10ec0257:
                spec->codec_variant = ALC269_TYPE_ALC257;

Since spec->3n_3kpull_low is false as default, it means that, except
for ALC230/236/256 and PCI vendor AMD, the flag is never set, hence
it's no longer called.

Shouldn't spec->en_3kpull_low be enabled rather as default?  Or which
models can set it?


thanks,

Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux