Received: by 10.213.65.68 with SMTP id h4csp431899imn; Tue, 13 Mar 2018 08:52:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELs0uB2Waq+YF6gP9DOAzn1N3lvSNL9RIWwuVI91Kpkq/dqP0ycsIirOAitrmpNVCHGbGVpu X-Received: by 2002:a17:902:6d0f:: with SMTP id s15-v6mr990017plk.375.1520956357864; Tue, 13 Mar 2018 08:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956357; cv=none; d=google.com; s=arc-20160816; b=ELGsNoJW//c4F0J07jcwmFwpYI9RnNlomizd0ve0VoXNEzcIeEJrXPggtLdRqy5Qne SQ70h3olKRWL7QZWgAZzbW1mSRpgROSBv1OZQ/SGyEG14s+2PN9lAnzuqfJ6w6TN1kvy em+wKgMBrqERuQ2evQq1clCuP1nf8h32d0uKjthCL8Bu5+KjbFgTy91q5fvU7Ja0ChPf 64YIc0WLKH1xPIrt0iXHr7jm43rM7ftNvPHN2ZTZK5WPa38UdDkMPM7i3hlXeVW7WDHF +yQwLf723bobMl66qOgFU3R3WQbQLZoA+zKpl27tjEt2B1kTktUT4dIea7pShwSvBlvP 6iKw== 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=EViT7BJIcNkz6P/zp8OyML6ofNzjC4PZyjReA8d+JCk=; b=nkREBhBmAuBm7Ru85tpbPN7gaTyl/v8E1RNKcqe9yZWZVa0oy40hFqCM5gtXgejHw3 STuuj3XOuYKX2l/QQicKhI2lT7SAI+jPjTo4pD+5tUz8RSE6Lcj7jqq3P6553i4akS7e ShODK3cZ26CF+0uQPi56YhCyUllFjHaRiBphsyqOmETqiwZbFXCMa/znfGxqLo2uXOPc 7u7uSD+zLs4orbbTebMonrdT1Zwy+vB7UI+3FkJighRHzj8M6t9Y7q4xnHoNng3icw5A ZP3jsEEXopv70UIoP5K8Nq8vqeWba3c9gQqil7lUnnsuQDeK1EyethWj7gnXE0++0b1h B0Ww== 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 r4si255483pgs.685.2018.03.13.08.52.23; Tue, 13 Mar 2018 08:52:37 -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 S934880AbeCMPu7 (ORCPT + 99 others); Tue, 13 Mar 2018 11:50:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35504 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934453AbeCMPj4 (ORCPT ); Tue, 13 Mar 2018 11:39:56 -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 BEE1AFDD; Tue, 13 Mar 2018 15:39:55 +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.14 104/140] ALSA: hda/realtek - Fix dock line-out volume on Dell Precision 7520 Date: Tue, 13 Mar 2018 16:25:07 +0100 Message-Id: <20180313152505.138979979@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 @@ -5129,6 +5129,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) @@ -5321,6 +5331,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, @@ -6055,6 +6066,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[]) { @@ -6245,6 +6260,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),