Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Kailang <kailang@realtek.com>
To: Dean Matthew Menezes <dean.menezes@utexas.edu>,
	Takashi Iwai <tiwai@suse.de>
Cc: "stable@vger.kernel.org" <stable@vger.kernel.org>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Linux Sound System <linux-sound@vger.kernel.org>,
	Greg KH <gregkh@linuxfoundation.org>
Subject: RE: No sound on speakers X1 Carbon Gen 12
Date: Mon, 11 Nov 2024 06:57:16 +0000	[thread overview]
Message-ID: <b97c52ec20594eecb074d333095a4560@realtek.com> (raw)
In-Reply-To: CAEkK70RAek2Y-syVt3S+3Q-kiriO24e8qQGDTrqC-Xt4kHzbCA@mail.gmail.com

Hi Dean,

Could you test the patch?

> -----Original Message-----
> From: Kailang
> Sent: Friday, November 8, 2024 10:59 AM
> To: 'Dean Matthew Menezes' <dean.menezes@utexas.edu>; Takashi Iwai
> <tiwai@suse.de>
> Cc: stable@vger.kernel.org; regressions@lists.linux.dev; Jaroslav Kysela
> <perex@perex.cz>; Takashi Iwai <tiwai@suse.com>; Linux Sound System
> <linux-sound@vger.kernel.org>; Greg KH <gregkh@linuxfoundation.org>
> Subject: RE: No sound on speakers X1 Carbon Gen 12
> 
> Hi Dean,
> 
> I check issues with our site machine.
> I guess your BIOS didn't update to newer version.
> 
> If BIOS no update, you need to add below patch.
> 
> diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
> index 74ca0bb6c091..126b68140e7e 100644
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -7450,7 +7450,6 @@ static void
> alc287_alc1318_playback_pcm_hook(struct hda_pcm_stream *hinfo,
>  				   struct snd_pcm_substream *substream,
>  				   int action)
>  {
> -	alc_write_coef_idx(codec, 0x10, 0x8806); /* Change MLK to GPIO3 */
>  	switch (action) {
>  	case HDA_GEN_PCM_ACT_OPEN:
>  		alc_write_coefex_idx(codec, 0x5a, 0x00, 0x954f); /* write gpio3 to
> high */ @@ -7464,7 +7463,6 @@ static void
> alc287_alc1318_playback_pcm_hook(struct hda_pcm_stream *hinfo,  static
> void alc287_s4_power_gpio3_default(struct hda_codec *codec)  {
>  	if (is_s4_suspend(codec)) {
> -		alc_write_coef_idx(codec, 0x10, 0x8806); /* Change MLK to GPIO3
> */
>  		alc_write_coefex_idx(codec, 0x5a, 0x00, 0x554f); /* write gpio3 as
> default value */
>  	}
>  }
> @@ -7473,9 +7471,17 @@ static void
> alc287_fixup_lenovo_thinkpad_with_alc1318(struct hda_codec *codec,
>  			       const struct hda_fixup *fix, int action)  {
>  	struct alc_spec *spec = codec->spec;
> +        static const struct coef_fw coefs[] = {
> +                WRITE_COEF(0x24, 0x0013), WRITE_COEF(0x25, 0x0000),
> WRITE_COEF(0x26, 0xC300),
> +                WRITE_COEF(0x28, 0x0001), WRITE_COEF(0x29, 0xb023),
> +                WRITE_COEF(0x24, 0x0013), WRITE_COEF(0x25, 0x0000),
> WRITE_COEF(0x26, 0xC301),
> +                WRITE_COEF(0x28, 0x0001), WRITE_COEF(0x29, 0xb023),
> +        };
> 
>  	if (action != HDA_FIXUP_ACT_PRE_PROBE)
>  		return;
> +        alc_update_coef_idx(codec, 0x10, 1<<11, 1<<11);
> +        alc_process_coef_fw(codec, coefs);
>  	spec->power_hook = alc287_s4_power_gpio3_default;
>  	spec->gen.pcm_playback_hook =
> alc287_alc1318_playback_pcm_hook;  }
> 
> > -----Original Message-----
> > From: Dean Matthew Menezes <dean.menezes@utexas.edu>
> > Sent: Saturday, October 26, 2024 8:23 AM
> > To: Takashi Iwai <tiwai@suse.de>
> > Cc: Kailang <kailang@realtek.com>; stable@vger.kernel.org;
> > regressions@lists.linux.dev; Jaroslav Kysela <perex@perex.cz>; Takashi
> > Iwai <tiwai@suse.com>; Linux Sound System
> > <linux-sound@vger.kernel.org>; Greg KH <gregkh@linuxfoundation.org>
> > Subject: Re: No sound on speakers X1 Carbon Gen 12
> >
> >
> > External mail.
> >
> >
> >
> > I get the same output: axiom /home/dean # hda-verb /dev/snd/hwC0D0
> > 0x5a SET_COEF_INDEX 0x00 nid = 0x5a, verb = 0x500, param = 0x0 value =
> > 0x0 axiom /home/dean # hda-verb /dev/snd/hwC0D0 0x5a GET_PROC_COEF
> > 0x00 nid = 0x5a, verb = 0xc00, param = 0x0 value = 0x0
> >
> > On Fri, 25 Oct 2024 at 02:16, Takashi Iwai <tiwai@suse.de> wrote:
> > >
> > > On Fri, 25 Oct 2024 03:22:38 +0200,
> > > Dean Matthew Menezes wrote:
> > > >
> > > > I get the same values for both
> > > >
> > > > axiom /home/dean/linux-6.11.3/sound/pci/hda # hda-verb
> > > > /dev/snd/hwC0D0 0x5a SET_COEF_INDEX 0x00 nid = 0x5a, verb = 0x500,
> > > > param = 0x0 value = 0x0
> > >
> > > Here OK, but...
> > >
> > > > axiom /home/dean/linux-6.11.3/sound/pci/hda # hda-verb
> > > > /dev/snd/hwC0D0 0x5a SET_PROC_COEF 0x00
> > >
> > > ... here run GET_PROC_COEF instead, i.e. to read the value.
> > >
> > >
> > > thanks,
> > >
> > > Takashi

  parent reply	other threads:[~2024-11-11  6:57 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAEkK70Tke7UxMEEKgRLMntSYeMqiv0PC8st72VYnBVQD-KcqVw@mail.gmail.com>
     [not found] ` <2024101613-giggling-ceremony-aae7@gregkh>
2024-10-16  5:56   ` No sound on speakers X1 Carbon Gen 12 Linux regression tracking (Thorsten Leemhuis)
2024-10-16  9:21     ` Takashi Iwai
2024-10-16 21:18       ` Dean Matthew Menezes
2024-10-17  8:34         ` Takashi Iwai
2024-10-18 23:14           ` Dean Matthew Menezes
2024-10-19  8:12             ` Takashi Iwai
2024-10-19 23:11               ` Dean Matthew Menezes
2024-10-20  7:19                 ` Takashi Iwai
2024-10-20 14:54                   ` Dean Matthew Menezes
     [not found]                   ` <CAEkK70TWL_me58QZXeJSq+=Ry3jA+CgZJttsgAPz1wP7ywqj6A@mail.gmail.com>
2024-10-20 15:29                     ` Takashi Iwai
2024-10-20 15:33                       ` Takashi Iwai
2024-10-21  1:30                         ` Dean Matthew Menezes
2024-10-21  6:59                           ` Takashi Iwai
2024-10-21  7:56                             ` Kailang
2024-10-21  8:20                               ` Takashi Iwai
2024-10-21  8:19                             ` Kailang
2024-10-21  8:24                               ` Takashi Iwai
2024-10-21  8:38                                 ` Kailang
2024-10-21  8:56                                   ` Takashi Iwai
2024-10-21  8:59                                     ` Kailang
2024-10-25  1:22                                       ` Dean Matthew Menezes
2024-10-25  7:17                                         ` Takashi Iwai
2024-10-25  7:32                                           ` Kailang
2024-10-26  0:22                                           ` Dean Matthew Menezes
2024-11-08  2:58                                             ` Kailang
2024-11-11  6:57                                             ` Kailang [this message]
2024-11-12  3:17                                               ` Dean Matthew Menezes
2024-11-13  6:22                                                 ` Kailang
2024-11-13  6:43                                                   ` Takashi Iwai
2024-10-21  9:31                                     ` Kailang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b97c52ec20594eecb074d333095a4560@realtek.com \
    --to=kailang@realtek.com \
    --cc=dean.menezes@utexas.edu \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox