Received: by 10.213.65.68 with SMTP id h4csp464712imn; Tue, 13 Mar 2018 09:54:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELso1Wa5mvrus/i10izBlC+o1P1P980XNllCTrPiJfoJTkJdj+bC4xm/uSNqiYyuTuLor9cD X-Received: by 10.99.136.194 with SMTP id l185mr1024173pgd.419.1520960055394; Tue, 13 Mar 2018 09:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960055; cv=none; d=google.com; s=arc-20160816; b=rS3VfDFn94+Q5MUtR+BujhsbyLLrcJ5alLgObwbj34G7dujl+MfnCGfSPwSvI4vPxe /HQv47SeJMrlqecEMOafBcwDiDoVZhlSh21PKCCH68irBeJhUXmfWDRzsFwOsKLzBqtf cYPqa82GX7IZmkXdkRJKl+acFafXQ+lRLuMkPcTVZipzpLFljp7xvVoOjRaxm9Lcs2Yb E8hs5AX2Cihl9Ul/3cveAvum9Hs0QvSmkS3CfBxegJtJa+EoNYS6zYae+igP+mzMvFpZ vjGATnelnJmgwM3WpAHnBKksM6Fu1bgQeB+ul+XW6bg/gQBbQGDfHBOB8h9Lj1OVXpNj SooA== 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:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BOuzddrBKmraR4VIm6vUhBpdVSKvMkku8B6PoJZ9/1A=; b=attzFpGseWKrbszOch5tP/fgs9q1XG2uS5DIfeoWhOc+ZCOuAYjl0gv7DUAaNQOMc1 eIDSpSC1ms/Jc9oV6y/ovvgMLs9Rl/gEBw1tvOrNL5h0hsk4/iIrT/2aHCo8JC0LvPjM bgLgd/IT76zy1H7g/Y76cMEbpTRJyFAgwFOOTIC+KsRPQ3ljXNOuo/V/ahSzPLC0mfdY pm0A0CphwEVf1+leL/JljrtyqOhs0mEYB7r9QbazCnB6NxYN7m5k2Lo2JYpUOSXhffLS CFQU0hWsGxeOEMPaJNCuVuPh1jrUQkOX/wyHxjOyKsL49cCpHt2f85tWF9JPoTbT/ddy rSgg== 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 v12-v6si312538plo.170.2018.03.13.09.54.00; Tue, 13 Mar 2018 09:54:15 -0700 (PDT) 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 S933262AbeCMPbI (ORCPT + 99 others); Tue, 13 Mar 2018 11:31:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59098 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbeCMPbG (ORCPT ); Tue, 13 Mar 2018 11:31:06 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5281911EA; Tue, 13 Mar 2018 15:31:05 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 4.15 069/146] ALSA: hda/realtek - Fix dock line-out volume on Dell Precision 7520 Date: Tue, 13 Mar 2018 16:23:56 +0100 Message-Id: <20180313152326.050379537@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit e312a869cd726c698a75caca0d9e5c22fd3f1534 upstream. The dock line-out pin (NID 0x17 of ALC3254 codec) on Dell Precision 7520 may route to three different DACs, 0x02, 0x03 and 0x06. The first two DACS have the volume amp controls while the last one doesn't. And unfortunately, the auto-parser assigns this pin to DAC3, resulting in the non-working volume control for the line out. Fix it by disabling the routing to DAC3 on the corresponding pin. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199029 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5152,6 +5152,16 @@ static void alc298_fixup_speaker_volume( } } +/* disable DAC3 (0x06) selection on NID 0x17 as it has no volume amp control */ +static void alc295_fixup_disable_dac3(struct hda_codec *codec, + const struct hda_fixup *fix, int action) +{ + if (action == HDA_FIXUP_ACT_PRE_PROBE) { + hda_nid_t conn[2] = { 0x02, 0x03 }; + snd_hda_override_conn_list(codec, 0x17, 2, conn); + } +} + /* Hook to update amp GPIO4 for automute */ static void alc280_hp_gpio4_automute_hook(struct hda_codec *codec, struct hda_jack_callback *jack) @@ -5344,6 +5354,7 @@ enum { ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY, ALC255_FIXUP_DELL_SPK_NOISE, ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, + ALC295_FIXUP_DISABLE_DAC3, ALC280_FIXUP_HP_HEADSET_MIC, ALC221_FIXUP_HP_FRONT_MIC, ALC292_FIXUP_TPT460, @@ -6078,6 +6089,10 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC298_FIXUP_DELL_AIO_MIC_NO_PRESENCE, }, + [ALC295_FIXUP_DISABLE_DAC3] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc295_fixup_disable_dac3, + }, [ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -6268,6 +6283,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1028, 0x0725, "Dell Inspiron 3162", ALC255_FIXUP_DELL_SPK_NOISE), SND_PCI_QUIRK(0x1028, 0x075b, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE), SND_PCI_QUIRK(0x1028, 0x075d, "Dell AIO", ALC298_FIXUP_SPK_VOLUME), + SND_PCI_QUIRK(0x1028, 0x07b0, "Dell Precision 7520", ALC295_FIXUP_DISABLE_DAC3), SND_PCI_QUIRK(0x1028, 0x0798, "Dell Inspiron 17 7000 Gaming", ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER), SND_PCI_QUIRK(0x1028, 0x080c, "Dell WYSE", ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1028, 0x082a, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE),