Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6048541imu; Sun, 2 Dec 2018 08:58:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDUV3J8CEh8kJ3q9Wv5k04NW0srcqm8dW5T/gQlic+ohfar5lIOQn02GqjfHSpdCGIirva X-Received: by 2002:a63:e156:: with SMTP id h22mr9593552pgk.255.1543769917556; Sun, 02 Dec 2018 08:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543769917; cv=none; d=google.com; s=arc-20160816; b=tqnDeY8NfO+715eoFIcZCj5bxZ7ip+zTFnWWkeyFjWt1x098aDI+lC2Fwl7BouzKEN 1ptWFDSdXQVzKmPTd3Y6IEWTdRQfzXbx0WPR51AnKohdCW8mzeSkYbmuGEstBc4dZq3o te0I/MNMXt+LaMS8j5rl4XwLx4Riskg1YvseTT2kxlrbJCKCtMwz6HqAwP/ffVP7Qo/o Ebf3ufxhjeZfSAs0YkAJgXfa2kTupBtKVGiOupYJVscGwxqlh42+RYkQ3SX8y5icOqLz C/e82dxL7Mymr/MUhMDKE7lhn9WwdUoQSsD8ObPM/WsCDCNkGYBcwHAzIL3IFC+xC46I euEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=mNtSXtFyE7IFZNhc0PfoZYS59/v4cWYORa/esC6bpWw=; b=zu7tZ4veyfaAl+os9VSJHkD3tWjmvRkKShbzWYHhZXCMMHV3Br398e7Ipnx74JYNt8 WSzhvp/EtfhMKh/qOPuyv73uODTpcuVr8gQ7HuOH6KCfFf5A2ix3mvmj+EAgnOpBS2hL iQxnio/dEMLRasCTicXan/T5bYDp6NVCsejAOlMa+XmeLZt7Fj3khfCI6ANOv3TppZ+L Vt1QoP+J5OvocLvPi1SA4dnwGhMyDJA3q2+6912xDypebgdk5yxr5NcsWHHOHe23m7xg EcfM+HkQQ556p7YULux44NN+NthZBBbepgMkyuvp5zlnqin1yO0z2kuGUk6X+ZxIopTK y2qQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186si10025234pgd.131.2018.12.02.08.58.11; Sun, 02 Dec 2018 08:58:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725764AbeLBQ5L (ORCPT + 99 others); Sun, 2 Dec 2018 11:57:11 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:40051 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbeLBQ5K (ORCPT ); Sun, 2 Dec 2018 11:57:10 -0500 Received: by mail-yb1-f193.google.com with SMTP id c15so980839ybf.7 for ; Sun, 02 Dec 2018 08:57:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=mNtSXtFyE7IFZNhc0PfoZYS59/v4cWYORa/esC6bpWw=; b=goFEaOBJHgWxBoA5qXr0M1hI+UKKd7ahjuQ8dJ5GGzVFlLpj8LilGlQACtACWBKT31 RXX17+Dzj5TTP0rSAxAzpoI3cTNe5/fQd2gVbNNg7nR3ezare9djZLuCoO6OPD2pHCok 9/80QcZJvylQU4F7ylHpwQgVaY+KQOybAjrgex609SQJpaFLw2JHtwamndRVmEphE8VM d2pf7Nlxx+omOfzsQr4JUhHTTG9gZHXabtt/FIk8G2QecwCh1Y7wMVjhOPRhXaFdVSZ/ wEY/rziIMc9tLNfAqfaEZ6aa6KFu/Jfy0YnF9+lwDtsO9ppyBCM85NfFHn4aUMbzPF/s 7lYA== X-Gm-Message-State: AA+aEWaV7sNAR8HAFmmsrDUb3avrcaqLt5hRAhxEQRJmBz9olU9Suz2I ZvBhcYo0UC31MRevZv8pclvki5M8Cuw= X-Received: by 2002:a25:5f4c:: with SMTP id h12-v6mr12437191ybm.402.1543769828377; Sun, 02 Dec 2018 08:57:08 -0800 (PST) Received: from laptop.jcline.org ([2605:a601:a204:5901:8717:bd34:acd6:5cb7]) by smtp.gmail.com with ESMTPSA id l9sm3951911ywc.81.2018.12.02.08.57.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 08:57:07 -0800 (PST) Subject: Re: Regression: very quiet speakers on Thinkpad T570s To: Takashi Iwai Cc: Kailang Yang , Jaroslav Kysela , Tim Van den Eynde , alsa-devel@alsa-project.org, Linux Kernel Mailing List References: From: Jeremy Cline Openpgp: preference=signencrypt Autocrypt: addr=jcline@redhat.com; keydata= xsFNBFThCPYBEACx9hl05pMfpVKVjm8Yrmd2I3sm9Jw7EIGfn1tmncSnzfveN7UcIjYI23Gw DE11Hf70tMZKXhNmQqDqoftEDwLbTuzBdgJXFZmfEwrcQHGiR5CZ4IQ3U7SF0a701lyYtuNs WndEO8CCaWHUYybiEl1yRZhwyzAA1j/izilD7FckOaEsTM1sFVDs74qWsNGIdJXYQ5dz/iV/ 45wgYNprfMTZQXLvbGIjAD6rmvuArjCQ5GINYSZqO16xZNNWMnS2C0ZF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KdUrSjioP1tK6YLpS7SSc5khYUjVp7xdsu9vCazsLspzBYbQOV02xtI5 CTLwMzh4hYE1/66K899++0v2dP9m9DEKu/R4vqW4axTfWIbR/ygd1bh2a/7NpAT6qiJg8vha Qkf/fVKZ9xM7EDHmfFJscqC6JyYNdYvz8wJ0aa9Z6zvnNUzjAntj62kJV8b8m5diUQDUI8dp r9crk+XxOTNpYid6p8mlNTcX54LTy1eEL7BYG1S3ezcLZC9/78MTdTJbxQMz7/zQXOABfMDy +otLuhEBxi5hl+COIsiRotTOBNPNr1UmV4fQjXz2K6cfgaO/9NilQaEU6zpsMcAOi5lLxlzD GRyPO2a0QQFZ7FmH9dRWw/6mmspQMBNRr5CrQdIBiWDcJGNPl8iX9TqwP62dZgwANT6+FR7K If4axm/gJQMSUCon3eLJhi8b5qZp4vZn7Xj4hCswrO9eExmT9IjpRVcHLYti36m99WRvItDy dVvrvIQi5qah3PrQjtwSJ61ExSZTOpBQGC60yQf+GG0TISIeeXX8CK2e1PIDt7/l+d0onCmU /98IQsNgR/9sifmdPeh3nKsxe2vsa3HNeElQU2ko6ZHMrE0gSyel5vaqRLQQwekBx1mr/7Ll X/87hZ4pdW/aOXUAgQ== Message-ID: Date: Sun, 2 Dec 2018 11:57:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/1/18 9:44 AM, Takashi Iwai wrote: > 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) { > That patch does indeed fix the problem according to the original reporter. Thanks, Jeremy