Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1636849ybv; Fri, 21 Feb 2020 00:45:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwOJw7W73vvP8aZvmB7iR8x+Zw0Ubiq0Esv4lNXpS+0ZtNovnyqo1RatBAvMYMFqrP7aLUC X-Received: by 2002:a05:6830:4c7:: with SMTP id s7mr26795187otd.359.1582274723764; Fri, 21 Feb 2020 00:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274723; cv=none; d=google.com; s=arc-20160816; b=onsE8MMUoYTkmTi3f7ZclB5Hcr7nLSKgAUSLo1EKo9svPQIdxKkAUSmiymiG+1Sjz3 d1esOskqKiKPSk+4pjPjSN72z1u+j8zmUIqx1afTDEqPsX1idojr+vGVTNyTdKgkqPre 6gtSU4LGIJpX0pIYvHWoZRaG4j2B5AP9L1jg+ScGdw+5uJZLcRxN7C5Vw/Q+cmf7dlTG GqCA5N8ldoL+4nxDI902dqem8P7auti8Oury4CppeASTI4hdqR7YHSoE6m2E39zY43EH l1IT+ke164NXgIxu0i9FzNuFCOiaY0LNEhaYZ4EEJDoCNgofVUhMkVbn/12c00TyYwDg g0Bg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VhlRgtFYO3oKnew76bYZQwSzuyw2n+59SWlhEinwCmE=; b=adLheylE13qGCwx+c9oyzVEK1nRAIj3YDdrfvzAlS3d9rTpOpbtgbdeOn+zpnVOE9n Xm7ReWgHkLq/By0BmtumL5Bor63bEoeGJXL/TcGmEXbxjc0ssmGwqURAmD0l4TP/SEYE SxH6CDa3UUfAC3bot81KpQi6Z9A39esWS29ksznshVddj8s3t48RdMRlKIMaFyv45aLT oVMaT41jq66W3H7Oqlyi71hCN16pzznKHJudaV34O7emOmMhFpVbb2ylDh+rg44ZSrzT r8rSrIkpHzW7Cm+1Pq1d1xe0i1F21mbjQdI8kVZJb3iDPNK8eO47DqDqKqa0ASvRIh68 q3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DvSoukyz; 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 q6si1146459oth.26.2020.02.21.00.45.11; Fri, 21 Feb 2020 00:45:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=DvSoukyz; 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 S1731521AbgBUIof (ORCPT + 99 others); Fri, 21 Feb 2020 03:44:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:50044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729870AbgBUHwQ (ORCPT ); Fri, 21 Feb 2020 02:52:16 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D03820578; Fri, 21 Feb 2020 07:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271535; bh=3ODXTUeZ35UJmyvQ2p0iB2Y0ndy83nSr1LYsnmFOKuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DvSoukyzBNMmKu0juXEbS64Cz7HHrf0Tpp0cQO95KVLmbWPBCYhcnIKnDjR/WVt54 SqosxEv7xWJOnZDt8qnNSFHoya6iJQHAJTVjY0YX98XOU4PNli0JuD7WuYXVYr+C++ BfNGJPYAQu91lLrs0w9XgO6z11v0zE7AuGaC2q6w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Sasha Levin Subject: [PATCH 5.5 204/399] ALSA: hda/realtek - Apply mic mute LED quirk for Dell E7xx laptops, too Date: Fri, 21 Feb 2020 08:38:49 +0100 Message-Id: <20200221072422.690520749@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit 5fab5829674c279839a7408ab30c71c6dfe726b9 ] Dell E7xx laptops have also mic mute LED that is driven by the dell-laptop platform driver. Bind it with the capture control as already done for other models. A caveat is that the fixup hook for the mic mute LED has to be applied at last, otherwise it results in the invalid override of the callback. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=205529 Link: https://lore.kernel.org/r/20200105081119.21396-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 128d81b4140b3..c6b1581c6ffaa 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5852,6 +5852,7 @@ enum { ALC288_FIXUP_DELL1_MIC_NO_PRESENCE, ALC288_FIXUP_DELL_XPS_13, ALC288_FIXUP_DISABLE_AAMIX, + ALC292_FIXUP_DELL_E7X_AAMIX, ALC292_FIXUP_DELL_E7X, ALC292_FIXUP_DISABLE_AAMIX, ALC293_FIXUP_DISABLE_AAMIX_MULTIJACK, @@ -6547,12 +6548,19 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC293_FIXUP_DELL1_MIC_NO_PRESENCE }, - [ALC292_FIXUP_DELL_E7X] = { + [ALC292_FIXUP_DELL_E7X_AAMIX] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_dell_xps13, .chained = true, .chain_id = ALC292_FIXUP_DISABLE_AAMIX }, + [ALC292_FIXUP_DELL_E7X] = { + .type = HDA_FIXUP_FUNC, + .v.func = snd_hda_gen_fixup_micmute_led, + /* micmute fixup must be applied at last */ + .chained_before = true, + .chain_id = ALC292_FIXUP_DELL_E7X_AAMIX, + }, [ALC298_FIXUP_ALIENWARE_MIC_NO_PRESENCE] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { -- 2.20.1