Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4976681imu; Sat, 1 Dec 2018 06:46:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/V5RmukbaNv4CtERF16dZar7jQfJO2vkJYT5XpN4BxLhl6Rv8C6kBWLklxubvFFXF2wb1ka X-Received: by 2002:a17:902:bb98:: with SMTP id m24mr9298637pls.71.1543675600510; Sat, 01 Dec 2018 06:46:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543675600; cv=none; d=google.com; s=arc-20160816; b=ytYtNG1CLIhQYvWNVmF99euaZ8uf6Lk3q4McXjx8WAZhIq0YIlJKzBgy5mCYlumXow M1H4+f7LEq/njbUiP4QGYtp44VNyC6e0zyU4v4zG2QFvFSh9h7nlbIKH+YNVgPE0ilHh KUD5Ym6nNhtJL/Km9lVAUBMLtsmBPRT0jb4F2zmqNFIQLg1D6+I2R3HLI/f2syhKczVv oVfw1+CAU2qbjA2ymYqDDkbpV4NoQuUQPp19ToObtRUlWq6DA1mkQ60lVrkBAFzNMpTJ T0v1SF2Qf5sewbcyt9VTUQAnoFdD7s2QATwG6Sc5gddB5z9BZtWXjeyrvlcQnsWVor8W q0tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=6jG5xR9WkbiBAgoEVsmk7EYOEGcBWe5dutafmIsiFYo=; b=CTy2kvV6aQWhJodtYPbBXJKOKUUvO2vJO83nmu51rlbX/7xLwRMUgQAlFfXndloyxa /KYOmfBHfXQP0x8qVtU4hJ7yRLGAozNe1l+GAxEzToLQO9FxwH/LL7e0b8B1k0VfdhCs Fd0mac8rkypXKRqzDtk+NVQx0AIWsGa3xgpFDAljKmhx1wrXka15gHYOVDHAWnsdZrbM 1M6KjqMwb4AwHUN6byC3LtMlY65vzvsleyUrx9fXx74FbGwfb85GO3vEbk8NjF2Kin/c kFUfJle/Vx+N47Xr621ZoUwalLP1tVw+Qw3Yh5uM0sAYJ+m5deMnWWHNk0ZFpsojiTHi X1Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 83si7921648pgf.572.2018.12.01.06.46.25; Sat, 01 Dec 2018 06:46:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbeLBB5b (ORCPT + 99 others); Sat, 1 Dec 2018 20:57:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:54202 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726458AbeLBB5b (ORCPT ); Sat, 1 Dec 2018 20:57:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 32831AE69; Sat, 1 Dec 2018 14:44:50 +0000 (UTC) Date: Sat, 01 Dec 2018 15:44:48 +0100 Message-ID: From: Takashi Iwai To: Jeremy Cline Cc: Kailang Yang , Jaroslav Kysela , Tim Van den Eynde , alsa-devel@alsa-project.org, Linux Kernel Mailing List Subject: Re: Regression: very quiet speakers on Thinkpad T570s In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Nov 2018 17:51:33 +0100, Jeremy Cline wrote: > > On 11/30/18 11:00 AM, Takashi Iwai wrote: > > On Fri, 30 Nov 2018 15:49:17 +0100, > > Jeremy Cline wrote: > >> > >> Hi, > >> > >> Some folks have reported on the Fedora bug tracker[0] that the laptop > >> speaker volume is very low on the Thinkpad T570 when running a kernel > >> that includes commit 61fcf8ece9b6 ("ALSA: hda/realtek - Enable Thinkpad > >> Dock device for ALC298 platform"). > >> > >> alsa-info.sh from v4.15.4 (just before commit 61fcf8ece9b6 arrived in > >> stable) and v4.19.4 with the issue present are attached to the bugzilla. > >> I've also Cc'd Tim, who uploaded them and has the laptop in question. > >> > >> [0] https://bugzilla.redhat.com/show_bug.cgi?id=1554304 > > > > Could you pinpoint which kernel version started showing the > > regression, at least? The diffs are fairly wide between 4.15 and > > 4.19. > > Ah, sorry for not being more clear. The regression appears to be > introduced by commit 61fcf8ece9b6, which got backported to v4.15.5 > because it addressed a bug with the dock[0]. v4.19.4 with that commit > reverted works, according to the bug reporter. > > [0] https://bugzilla.kernel.org/show_bug.cgi?id=195161 OK, then this seems to be the change of DAC assignment. Maybe the hardware has some implicit assumption of NID 0x03 bound with the speaker pin. Below is a patch for fixing the pin / DAC mapping. Please give it a try. thanks, Takashi --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 06f93032d0cc..50bc2e97d799 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4988,9 +4988,14 @@ static void alc_fixup_tpt470_dock(struct hda_codec *codec, { 0x19, 0x21a11010 }, /* dock mic */ { } }; + static hda_nid_t preferred_pairs[] = { + 0x14, 0x03, 0x17, 0x02, 0x21, 0x02, + 0 + }; struct alc_spec *spec = codec->spec; if (action == HDA_FIXUP_ACT_PRE_PROBE) { + spec->gen.preferred_dacs = preferred_pairs; spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; snd_hda_apply_pincfgs(codec, pincfgs); } else if (action == HDA_FIXUP_ACT_INIT) {