Received: by 10.213.65.68 with SMTP id h4csp462789imn; Fri, 16 Mar 2018 08:30:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELsp585hlDTI57S4b5+uG6hdEOS1jGTG4Th7MquAa0dOrX2K5wYzRphV7awyL7CZ4QmV95bi X-Received: by 10.99.158.9 with SMTP id s9mr1805101pgd.64.1521214206993; Fri, 16 Mar 2018 08:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214206; cv=none; d=google.com; s=arc-20160816; b=cA5IVE23HyS0bLs6eDnAo3IXmLM+fGRLjMORCCOkuCMc4YY30EFlZrvfmGyQhTDGAx fcXbm9UHZvmdxLnotogCndc20f6UKsOvNzIk1HPGJgENC/qjg54ryBaqgzu4o8QMYJSh P6iIgwbrpBjMsW+n0MxBPCKpFpSC4TIwS3zy5EYjOlSqXHnvSQS3UzbefBUdobJqz73m 5gQ3SBOoC+xffMtixn+NS1mp66YamJgWmp01OmZwsGIiSv6z0JsXrvHKMDWW5quH7DBp CX/wmYfeAWDf8biXnymYI+SiCOcNdzl2AnS8DewNX0nOJaUM24T0OVMyfWvDTMAJttdT 8Ktw== 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=1O5mdM4Zwvt9DT8bLum+Uf3itBVzDPWtySkKYdnW23s=; b=H6XpLaZNZQKyGlzXsAix7CNdMNPXaU2bAo/RqfCo5OpiVtSFYxxAVObEe1tD6AdtpF ruRH4WV/GJl8ECJhMqcnSdTYE57kT2RczwjCI51YltVrm02v8X48PjNg5zgwi6toIYnz DKFuK26aQgBYiPuS3vqB6eWkJcfMSMOJBkFHITqqoZmTczTQPLzIiwbTZ686QsFmQIc5 ySmxEHlFLy8IBq5pXgeuxMeBGrWNQblvOLKcaSyRyRnqYpbsyQtqqAWHPp04LeYgwhMS +ZK1SMDhrL8Em40iRxIYNP4vEbZZKEMgQtw1QHlF5SLvGLIJtrZFDWLbc4OrflOxgPh/ TYdg== 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 u21si5684503pfl.176.2018.03.16.08.29.52; Fri, 16 Mar 2018 08:30:06 -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 S1754248AbeCPP11 (ORCPT + 99 others); Fri, 16 Mar 2018 11:27:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34186 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754098AbeCPP1Y (ORCPT ); Fri, 16 Mar 2018 11:27:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E5E3D1254; Fri, 16 Mar 2018 15:27:22 +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.4 21/63] ALSA: hda/realtek - Fix dock line-out volume on Dell Precision 7520 Date: Fri, 16 Mar 2018 16:22:53 +0100 Message-Id: <20180316152302.422372162@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@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.4-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 @@ -4722,6 +4722,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) @@ -4871,6 +4881,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, @@ -5560,6 +5571,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[]) { @@ -5617,6 +5632,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, 0x082a, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE), SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),