From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4F361E1C18; Mon, 21 Oct 2024 09:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729503077; cv=none; b=jVucJHyZGYaVFN0srHqA+Ev99LNwNXPNmGKut22jK+drYf0FgANI0U/zkIepFmh63rjo0soEtJVO/yorMjjr/3hSg9ZJnfjxavyVwVMQQSjEH7iPqjzn93GjqXb7+zyZOvUSrSaadbfyPuRl1Pq4WiijAFQRqy7Nc+vGRVWbTdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729503077; c=relaxed/simple; bh=GQSpJJI5IGjcyXynsa8pJEnZ5S6eiP4WGTSuAiP3oHI=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=CyPvwPNaUPnh3O3DuzbERe37EijOGlNeNbzwWKytdKfMRtL5MEXHatjVlk+RnJkPBGRKq/CvCf9Kgl2g0b6jJ+xegLer/lIsLteHxTjlKcolbOfE6clZ/uz5izcccemxfOlwSihIBKc1tQuEikO1YQKvc1/Cuqzocs1BmX2hD/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=temperror (0-bit key) header.d=realtek.com header.i=@realtek.com header.b=GRljuWkQ; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=realtek.com header.i=@realtek.com header.b="GRljuWkQ" X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 49L9V7RX02196782, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=realtek.com; s=dkim; t=1729503067; bh=GQSpJJI5IGjcyXynsa8pJEnZ5S6eiP4WGTSuAiP3oHI=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=GRljuWkQAX6gChy37FYHi8IZKpbRRseyGLXv8+N0MCz3IxLl4L2INuKi7v/pfoEUX HgHKNOx9X4eFfI2OxJocZRb8AcJYApZMZAa+j5Z1YR5OQuc/to8fTnGH5Nzsktt++z eYgDvAWTCiTimvztraLSCdaxOXAgCqifkTeV63BbUooJkq37wIaRQUfeeDoaJuWI8n /WwbK6qLfFFBli7oGGxaz1T8C9qnRN9TeF35vf9u3dZtD/wDyb0wP7sPn4gPWlyArP X+i3r5Ie+8SEw+OAP5LIzIPTHFoXC0WSTp8XkBfQ7sMaCrzkIIcfv6x7DNh2yNF54n k/Ep1vVpHYAZw== Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/3.06/5.92) with ESMTPS id 49L9V7RX02196782 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Oct 2024 17:31:07 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 21 Oct 2024 17:31:08 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 21 Oct 2024 17:31:07 +0800 Received: from RTEXMBS01.realtek.com.tw ([fe80::147b:e1e8:e867:41c2]) by RTEXMBS01.realtek.com.tw ([fe80::147b:e1e8:e867:41c2%7]) with mapi id 15.01.2507.035; Mon, 21 Oct 2024 17:31:07 +0800 From: Kailang To: Takashi Iwai CC: Dean Matthew Menezes , "stable@vger.kernel.org" , "regressions@lists.linux.dev" , Jaroslav Kysela , Takashi Iwai , Linux Sound System , Greg KH Subject: RE: No sound on speakers X1 Carbon Gen 12 Thread-Topic: No sound on speakers X1 Carbon Gen 12 Thread-Index: AQHbIwVT/23eeZo4dEmkKtnQN51H6bKP5WWAgABb9wCAAJxEgP//e3+AgACHy9D//4FDgIAAjaEg Date: Mon, 21 Oct 2024 09:31:07 +0000 Message-ID: <556c2d97b9054562a96e070efc9f817c@realtek.com> References: <2024101613-giggling-ceremony-aae7@gregkh> <433b8579-e181-40e6-9eac-815d73993b23@leemhuis.info> <87bjzktncb.wl-tiwai@suse.de> <87cyjzrutw.wl-tiwai@suse.de> <87ttd8jyu3.wl-tiwai@suse.de> <87h697jl6c.wl-tiwai@suse.de> <87ed4akd2a.wl-tiwai@suse.de> <87bjzekcva.wl-tiwai@suse.de> <877ca2j60l.wl-tiwai@suse.de> <43fe74e10d1d470e80dc2ae937bc1a43@realtek.com> <87ldyh6eyu.wl-tiwai@suse.de> <18d07dccef894f4cb87b78dd548c5bdd@realtek.com> <87h6956dgu.wl-tiwai@suse.de> In-Reply-To: <87h6956dgu.wl-tiwai@suse.de> Accept-Language: zh-TW, en-US Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 > -----Original Message----- > From: Takashi Iwai > Sent: Monday, October 21, 2024 4:57 PM > To: Kailang > Cc: Takashi Iwai ; Dean Matthew Menezes > ; stable@vger.kernel.org; > regressions@lists.linux.dev; Jaroslav Kysela ; Takashi Iw= ai > ; Linux Sound System ; Greg > KH > Subject: Re: No sound on speakers X1 Carbon Gen 12 >=20 >=20 > External mail. >=20 >=20 >=20 > On Mon, 21 Oct 2024 10:38:48 +0200, > Kailang wrote: > > > > But this platform need to assign model > ALC287_FIXUP_LENOVO_THKPAD_WH_ALC1318. > > It has a chance to broken amp IC. >=20 > Yes, if X1 Carbon Gen 12 is indeed the targeted model of the fix, it must= be > applied. But we seem still missing some small piece... >=20 > > But I don't know why it doesn't have output from speaker. >=20 > The diff of COEF dump showed at NID 0x20: > (working) Coeff 0x10: 0x8006 > (broken) Coeff 0x10: 0x8806 > (working) Coeff 0x46: 0x0004 > (broken) Coeff 0x46: 0x0404 > It shouldn't be a problem to leave the bit 0x800 to COEF 0x10, I suppose? This just change pin function from MLK to GIPO. Our AE guess says, it maybe GPIO3 can't pull high. >=20 > > Maybe could run hda_verb to get COEF value. To get NID 0x5A index 0 val= ue. >=20 > Dean, please run hda-verb program (as root) like: > hda-verb /dev/snd/hwC0D0 0x5a SET_COEF_INDEX 0x00 > hda-verb /dev/snd/hwC0D0 0x5a GET_PROC_COEF 0 >=20 > and give the outputs on both working and non-working cases. >=20 > hda-verb should be included in alsa-utils. >=20 >=20 > Takashi >=20 > > > > > -----Original Message----- > > > From: Takashi Iwai > > > Sent: Monday, October 21, 2024 4:24 PM > > > To: Kailang > > > Cc: Takashi Iwai ; Dean Matthew Menezes > > > ; stable@vger.kernel.org; > > > regressions@lists.linux.dev; Jaroslav Kysela ; > > > Takashi Iwai ; Linux Sound System > > > ; Greg KH > > > Subject: Re: No sound on speakers X1 Carbon Gen 12 > > > > > > > > > External mail. > > > > > > > > > > > > On Mon, 21 Oct 2024 10:19:53 +0200, > > > Kailang wrote: > > > > > > > > Change to below model. > > > > + SND_PCI_QUIRK(0x17aa, 0x231e, "Thinkpad", > > > ALC287_FIXUP_THINKPAD_I2S_SPK), > > > > + SND_PCI_QUIRK(0x17aa, 0x231f, "Thinkpad", > > > > + ALC287_FIXUP_THINKPAD_I2S_SPK), > > > > > > > > The speaker will have output. Right? > > > > > > FWIW, that was what I asked in > > > https://lore.kernel.org/87h697jl6c.wl-tiwai@suse.de > > > and Dean replied that the speaker worked with it. > > > (His reply missed Cc, so it didn't appear in the thread, unfortunatel= y). > > > > > > > > > Takashi > > > > > > > > -----Original Message----- > > > > > From: Takashi Iwai > > > > > Sent: Monday, October 21, 2024 2:59 PM > > > > > To: Dean Matthew Menezes > > > > > Cc: Takashi Iwai ; Kailang ; > > > > > stable@vger.kernel.org; regressions@lists.linux.dev; Jaroslav > > > > > Kysela ; Takashi Iwai ; Linux > > > > > Sound System ; Greg KH > > > > > > > > > > Subject: Re: No sound on speakers X1 Carbon Gen 12 > > > > > > > > > > > > > > > External mail. > > > > > > > > > > > > > > > > > > > > On Mon, 21 Oct 2024 03:30:13 +0200, Dean Matthew Menezes wrote: > > > > > > > > > > > > I can confirm that the original fix does not bring back the > > > > > > speaker output. I have attached both outputs for alsa-info.sh > > > > > > > > > > Thanks! This confirms that the only significant difference is > > > > > the COEF data between working and patched-non-working cases. > > > > > > > > > > Kailang, I guess this model (X1 Carbon Gen 12) isn't with > > > > > ALC1318, hence your quirk rather influences badly. Or may the > > > > > GPIO3 workaround have the similar effect? > > > > > > > > > > As of now, the possible fix is to simply remove the quirk > > > > > entries for > > > ALC1318. > > > > > But I'd need to know which model was targeted for your original > > > > > fix in commit > > > > > 1e707769df07 and whether the regressed model is with ALC1318. > > > > > > > > > > > > > > > Takashi