From patchwork Tue Feb 25 07:29:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 193464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9D9CC35DF5 for ; Tue, 25 Feb 2020 07:31:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 578F5222C2 for ; Tue, 25 Feb 2020 07:31:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="mGPDXDFi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="QTiTs3ao" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 578F5222C2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=endlessm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 802741670; Tue, 25 Feb 2020 08:30:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 802741670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1582615887; bh=lrJpVntXrlb5Wnbrzsf32BCJCxvDECVLZeK7HLhKawQ=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=mGPDXDFiL1chtV8r7BAGW2mrhMSaHNW5Is32DLP9xnhL158b1tJnxYobBDaEf7YmS WRANpA2n7/95ZBjvfV6/l/9MHt700lcrxTzeD3NqhyqU9kxoDFd179tKH355r3wrbz fa9t86jipHn/S34hKP052ANSXn6gbPmNKJ0I/HuY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C8262F8013E; Tue, 25 Feb 2020 08:30:36 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1F3CEF80142; Tue, 25 Feb 2020 08:30:33 +0100 (CET) Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BF4A0F800AD for ; Tue, 25 Feb 2020 08:30:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BF4A0F800AD Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="QTiTs3ao" Received: by mail-pg1-x541.google.com with SMTP id t24so2058464pgj.7 for ; Mon, 24 Feb 2020 23:30:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E829NU76QDF3cP/NsyErXF/fNnm7bAZiWaUr7fUocZ8=; b=QTiTs3aoEEiRq3DT0rUxnmFQocgrrfwNw1ly2CM7jAB6Z81aRWuSBtnCqw+Tt8oY1Q +auweEAILHLb6ZWPUWiZErDojNz6vcZ+I5Ip45q5dna8/Of5jGzziSqbFtPZkVndOrTm DKOSyjrdGGIIGeT/HH4KFmvW8ZtjX1PFCzR1uRi4pdDc4XFut+Jtl8thk/LSyn6dWcVH yA/0wjuouCUKi33ywydJR9L3xdPEQMq+lr6ZzmW8TjrM8LJ3cR00TULafnOY27yZeXLd rhGArS8UOg+Shp7IcB3T8Zx1uEztrfbJxKDjAWkRJ5lFq6S0FwPQxcQURr6pF9GLAdIV My/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E829NU76QDF3cP/NsyErXF/fNnm7bAZiWaUr7fUocZ8=; b=m6tn26IiEyxl5bAjyL2Z68ExUKD07eoM5XJlSNGFdDJg8yp+Fb5yX1ZoOAlcuNFWge 27lUu6F4WVQa2pkIdPL6QrJ2H1ouadeFWXEII8ZibJhnZJn3u2lKUCUjuU84nPknWbv/ AInA3K1Ls+16bYs0a0Lsfb19Ze/ybwXq4mZTo5n92r+rO893dMR75g3XDqs4AXxxlokO FeYuk6jqOC7slSpLyjrl6ww6/2S0mSxyjv4i2e0BzxIJai55ieehDRBGYRlzMwKOLlx3 N/gpaStRnaMiHb5RKBjU4Ap9CqUUGNu0pzoj3RlHeGWraOIP+Y6xjd8itOBPi+6rc3GT zyCw== X-Gm-Message-State: APjAAAVlBdZiNw9UmVTZdst0q7Ace8rqmXKmHuSF5uFLLJVi8gKVxDWd d4dmCzSbTY9x4mGvfulixSTYzw== X-Google-Smtp-Source: APXvYqzXPXVTEmI4sSnMC//AihHYA7770hDbD0z2yO5l63QvCrokdmPOorLFdPHTa0VvcKMZjmxfeg== X-Received: by 2002:aa7:8e88:: with SMTP id a8mr33713851pfr.254.1582615825187; Mon, 24 Feb 2020 23:30:25 -0800 (PST) Received: from starnight.endlessm-sf.com (ec2-34-209-191-27.us-west-2.compute.amazonaws.com. [34.209.191.27]) by smtp.googlemail.com with ESMTPSA id s13sm1796960pjp.1.2020.02.24.23.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 23:30:24 -0800 (PST) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH] ALSA: hda/realtek - Enable the headset of ASUS B9450FA with ALC294 Date: Tue, 25 Feb 2020 15:29:21 +0800 Message-Id: <20200225072920.109199-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: Jian-Hong Pan , alsa-devel@alsa-project.org, Kailang Yang , linux@endlessm.com, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" A headset on the laptop like ASUS B9450FA does not work, until quirk ALC294_FIXUP_ASUS_HPE is applied. Signed-off-by: Jian-Hong Pan Singed-off-by: Kailang Yang --- sound/pci/hda/patch_realtek.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 477589e7ec1d..a47f6404aea9 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5920,7 +5920,7 @@ enum { ALC289_FIXUP_DUAL_SPK, ALC294_FIXUP_SPK2_TO_DAC1, ALC294_FIXUP_ASUS_DUAL_SPK, - + ALC294_FIXUP_ASUS_HPE, }; static const struct hda_fixup alc269_fixups[] = { @@ -7040,7 +7040,17 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC294_FIXUP_SPK2_TO_DAC1 }, - + [ALC294_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, 0x7774 }, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7204,6 +7214,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC), SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_DUAL_SPK), SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE), SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1b13, "Asus U41SV", ALC269_FIXUP_INV_DMIC),