Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp818576ybl; Wed, 11 Dec 2019 08:00:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzGkjf3chS+uoK8SUOLPzKL1qklU9PSm3SSYSRKMdMGki9PibsIYEIVyZbhqBRbR/vWHbhL X-Received: by 2002:a05:6808:102:: with SMTP id b2mr3370278oie.127.1576080019300; Wed, 11 Dec 2019 08:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080019; cv=none; d=google.com; s=arc-20160816; b=Lpu7I42D/LypXyKjCscJH2Znp2RMldYB0A0F6Tw2Va40fsDGW2vr00zvzL6qODf7TO m5vezRdETvEqXfOPB9rJWI++9aH+xDIW/ti3mpjKEAvhl9FyiMvYAxBoZmBFA/MP3pV2 D4jETUPZ0zlcrzKRW+jQLXDRQUfkkidZIdenZ2SeCwJtJ4xhlLZlpiTj+ZtHlNPCBKf1 p5HBP4u9zU1vDXfs9JfsBjyB1sm/iFn7kCBYm00/e6m6L1weAmhmV6JtfIL64GKWaY0i OZ/OdoD5m1aaCslDmIYv2ir6Uxzi8YauAhWkQGjU+qf/sC4BXKFgcgIyJNwaJdB+pDsY sKdw== 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=EhaZs0z6YSqOrHnMy8HCYkxzo1UK9IjIEdoW1NczNk8=; b=OsvTqywbTzXg2kcLjim/UaaDPQt35YIzYjUuhD1ab9IAAMr8Agth8bt/pb4CmKRrK1 Xt/s+eVbVmwjFcAqb2e1D8RZkFo1p2SGIkoo8aiIZv0v7VtX2n0bAnnNl/Ms8lcwTbo3 ROjn973SjPgByMgmp4mUodCMsER+XhPKMts9o7J7l99n7106wveA/Bb1g2gLS5HUq3fk DGEVovbWwNsz37l65YaIHqoroJJZwCSxJ9xS+i4PytriJY3b3wqzPyEzZ5EJx32mLI4K 3ZYgkA0kea7IAaBcn6hZWlpabzPb6kLU/g1xF8lAgvtmodl8wtvTpf5E4g93a3RbVofM k8Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=puVEvX59; 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 s126si464675oib.84.2019.12.11.08.00.06; Wed, 11 Dec 2019 08:00:19 -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=puVEvX59; 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 S1731876AbfLKP6F (ORCPT + 99 others); Wed, 11 Dec 2019 10:58:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:40358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730228AbfLKPOo (ORCPT ); Wed, 11 Dec 2019 10:14:44 -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 CF1AB2465B; Wed, 11 Dec 2019 15:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077284; bh=5vasK019GoYFAssaBjF6GMIXctndzkCH92v1y8ly95Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=puVEvX59nY/XjNU0YTtfqfqcgGi3by8yr14aVUu5DWwO4EWJ0mIUeR3UYzHMwvr8p ++fmPSRGHSs6eh4zJZ5Hk58InCavCEHdEusZmWROJX6rT6Y6yNPc9CcYK52IyyKGSI uLLuXiD+2Ylm6Ql6HyoBrCOw+gxUvBnCeVka2zVI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian-Hong Pan , Takashi Iwai Subject: [PATCH 5.3 049/105] ALSA: hda/realtek - Enable internal speaker of ASUS UX431FLC Date: Wed, 11 Dec 2019 16:05:38 +0100 Message-Id: <20191211150241.483987926@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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: Jian-Hong Pan commit 436e25505f3458cc92c7f3c985e9cbc198a98209 upstream. Laptops like ASUS UX431FLC and UX431FL can share the same audio quirks. But UX431FLC needs one more step to enable the internal speaker: Pull the GPIO from CODEC to initialize the AMP. Fixes: 60083f9e94b2 ("ALSA: hda/realtek - Enable internal speaker & headset mic of ASUS UX431FL") Signed-off-by: Jian-Hong Pan Cc: Link: https://lore.kernel.org/r/20191125093405.5702-1-jian-hong@endlessm.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5878,6 +5878,7 @@ enum { ALC299_FIXUP_PREDATOR_SPK, ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC, ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, + ALC294_FIXUP_ASUS_INTSPK_GPIO, }; static const struct hda_fixup alc269_fixups[] = { @@ -6953,6 +6954,13 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE }, + [ALC294_FIXUP_ASUS_INTSPK_GPIO] = { + .type = HDA_FIXUP_FUNC, + /* The GPIO must be pulled to initialize the AMP */ + .v.func = alc_fixup_gpio4, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7112,7 +7120,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A), SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC), - SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_INTSPK_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_INTSPK_GPIO), SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC),