Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3203044pxb; Mon, 9 Nov 2020 05:31:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlNVvgTVjVv3ny0eCMJxK98w3I7HbgZRYzgbo1izMi5FI0a4Lk+uE33Eyq2nboShyL7vEC X-Received: by 2002:a17:907:1112:: with SMTP id qu18mr14744022ejb.507.1604928660169; Mon, 09 Nov 2020 05:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928660; cv=none; d=google.com; s=arc-20160816; b=xFLSp+3px0u5C8YWTrXJbwEMo0yV2i4LRgrETlCKKh4j0LCVg25hfPTwWUt5vNwgPb Ik3uZcv16/Py+HxenRXwbNQvC81t94g3LE4B0oEgktySIcUbpj00OsryyDBQH1nuixGM GK0feOFDKAIuIHpXnc/4sbFMMGZbNuNEGc2944La1+jef8JSMi4smX7kXzCNAPAAah8A Tjra+czmg9gYYjpwGl02sK+gItn1xF/BcfeMI1FIiQjPhpIEmYpZ2iXggCqlRAUiCcQq +s6ulEzydIiatAK7Fm6c8T6YekA6lWvoQSe7cu2AIiUx3wSrRVGdcSMt9qf6sT3nK22z 6Itg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vUQ5/3fWvYD5pNEA7d8kbFl/ffdHUCJman/feTE8gt8=; b=yfHQoL1o1kPtpdJaVmsk0rxUlAFERL9slTpDY91jRn556tDQ2wuVIZI4Q4YML6HMaf yjrOD4Zktwm0PwR0552lpDLangHw8nxGlW0bxa9G07BjfU2GTwILuGZnFot7PSzA8sn8 mH1A1ePpsHc6WsWrn8sSUhe/OBoH6WoFpxMAPQRzUN9DbZr0w9Dq9YqhBSjtPoOxVw83 FhNOynn3s7LzU2TvNboHYTj6Vtg3cHF4w6xxGVHFhQpasr5u8m1sxYo38uP0vIfVvWyr WTW3QsdnNmlzP7HT2GqF5zS3Lpzg2EY3o1Y9irwCCZmzx/RMt21m56Rq0Q2i7iAR2QRW p3MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vry8VNxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 61si7205551edc.400.2020.11.09.05.30.37; Mon, 09 Nov 2020 05:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vry8VNxy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731898AbgKIN3V (ORCPT + 99 others); Mon, 9 Nov 2020 08:29:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:38018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730765AbgKINMZ (ORCPT ); Mon, 9 Nov 2020 08:12:25 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 87D6E20867; Mon, 9 Nov 2020 13:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604927545; bh=3KOHxWfqwNpvSqa3CAuGCSzWZgEIjpan4KRo38BIB2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vry8VNxy3PFKwSuVVM6rB6CXKW15UQqgQmQcJSpUsR2nCs447VcMw5907M/7nVJNJ OIZBCfbsFjPqi0XyZgi+AS8Y+Y0MVrvwz/9p6G6nvnX2lD7sflo7EmQqCSpRZ5034O schuZlv5HpW1e3BUVb0dkMxxSxiwwYIQNdjCneAw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 5.4 24/85] ALSA: hda/realtek - Enable headphone for ASUS TM420 Date: Mon, 9 Nov 2020 13:55:21 +0100 Message-Id: <20201109125023.736816821@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125022.614792961@linuxfoundation.org> References: <20201109125022.614792961@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kailang Yang commit ef9ce66fab959c66d270bbee7ca79b92ee957893 upstream. ASUS TM420 had depop circuit for headphone. It need to turn on by COEF bit. [ fixed the missing enum definition by tiwai ] Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/3d6177d7023b4783bf2793861c577ada@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6282,6 +6282,7 @@ enum { ALC255_FIXUP_XIAOMI_HEADSET_MIC, ALC274_FIXUP_HP_MIC, ALC274_FIXUP_HP_HEADSET_MIC, + ALC256_FIXUP_ASUS_HPE, }; static const struct hda_fixup alc269_fixups[] = { @@ -7675,6 +7676,17 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC274_FIXUP_HP_MIC }, + [ALC256_FIXUP_ASUS_HPE] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + /* Set EAPD high */ + { 0x20, AC_VERB_SET_COEF_INDEX, 0x0f }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x7778 }, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7858,6 +7870,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1043, 0x1bbd, "ASUS Z550MA", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x1043, 0x1ccd, "ASUS X555UB", ALC256_FIXUP_ASUS_MIC), + SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE), SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502), SND_PCI_QUIRK(0x1043, 0x1f11, "ASUS Zephyrus G14", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS),