From patchwork Wed Mar 13 09:33:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian-Hong Pan X-Patchwork-Id: 10850837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 864C81669 for ; Wed, 13 Mar 2019 09:34:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D9D4298AE for ; Wed, 13 Mar 2019 09:34:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60AF32997D; Wed, 13 Mar 2019 09:34:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2126298AE for ; Wed, 13 Mar 2019 09:34:56 +0000 (UTC) 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 B7984851; Wed, 13 Mar 2019 10:34:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B7984851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1552469694; bh=qLOSQziOCsPTGkvBcqxlNhqnkze7dKF3o8FCZxcYTAA=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=mQtIyoctryMYjZGJ61o9wM3IQmVWqdfQRAVqPOMe5ZzeTSCTNrZh/72l4lxELrnMK Yvf6UrgG1eHdJFnT2QFRkxgcCkxLMZP28Z0S42eFdHy1ZG5yjC8+Os8I72J518pNME nONCUSqwjog+riJotnM04GENRy1NqmjtgQZxwgWU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 29F70F896F3; Wed, 13 Mar 2019 10:34:04 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 28C50F89704; Wed, 13 Mar 2019 10:34:03 +0100 (CET) Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 CD7D0F807B5 for ; Wed, 13 Mar 2019 10:33:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CD7D0F807B5 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="2Di2N5GA" Received: by mail-pf1-x441.google.com with SMTP id v21so950211pfm.12 for ; Wed, 13 Mar 2019 02:33:59 -0700 (PDT) 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=yvz7KyEi8AZK4nIaVu7uWxj0DgdXUPU76VjA2dNvNC0=; b=2Di2N5GAvlb1ajm9+eY9QblKS6gu9WLOHKHHtNqQziniW7LPjW5pTIK3GU7movMImr xZ8EpxnC8S4lOoKBQKEBsf1sPbg58JBIPV0L04PIXFcftXlwIr51Kipz6iRXmdN2y8OL GDvrOtQx3IQDN0RKO9QLBcil1jIeb8th20XEjHfj2/mAD48WMX/nk3Kd/cL+9gEbTQ/i bAzycfrrUy4Stcd0lhCBdkYkdi/KpA6Np+Ca05JD/38mD2EomphPWYWEiyQG/LCrQ2r8 oQVw7aKVnK0wbosp8AueF60rWQFKZtMCcNlDZzQBKUk8UAJzjDS5HRr3n86H1EU9CqHy n7oA== 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=yvz7KyEi8AZK4nIaVu7uWxj0DgdXUPU76VjA2dNvNC0=; b=NiNih4bQR+sMqwcu6Zeob2wMbexuKqBcx8Pk1zBnxFuXplMh3zGwjeXmQLadk1xkLi EggmqVPkhtAEQ5vXJpcWCeZHkocmg4ueuhJg5Y9QjCw7QXUbEaB3+oQ9+ZWzY40O57JI 23/YUy/wAg6dE+xJjNwZG+76kV0MH7SbMgCSILGSelKlL0PGFH/1appSWKkbQFAMEKTX bjm3zfqyXQzC4rTwJW1Tk5T1nMBOpoKbcTIB8TpFxkT6LzmEpnf76mbnYKWgt4cPS87i 9Z0jkGHlfefB1dvIlLglilo/Hhpxqb/Tj5ZkfLCPttZrxwoBUd8CrnVkN2DqCDsR3FsY Bo7w== X-Gm-Message-State: APjAAAVxU+nX+d9F8mtY/XPSlQ66Ay8vbY6iFxkID4IRSFsvqDIy0rjx 3w9psX8OWNpoZN1fB0jAMA1SHw== X-Google-Smtp-Source: APXvYqwgBlV+xZAdAAtLOGo0SkwGZQY74pshQaZcqGKMfwinxfPaC4YnPMZ8YlsexyDR/C9oHPtQfQ== X-Received: by 2002:aa7:8749:: with SMTP id g9mr7551615pfo.36.1552469637300; Wed, 13 Mar 2019 02:33:57 -0700 (PDT) Received: from localhost.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.gmail.com with ESMTPSA id g67sm25095238pfg.13.2019.03.13.02.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 02:33:56 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Date: Wed, 13 Mar 2019 17:33:24 +0800 Message-Id: <20190313093324.4034-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Jian-Hong Pan , alsa-devel@alsa-project.org, Kailang Yang , linux@endlessm.com, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ALSA: hda/realtek: Enable headset MIC of Acer TravelMate X514-51T with ALC255 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" X-Virus-Scanned: ClamAV using ClamSMTP The Acer TravelMate X514-51T with ALC255 cannot detect the headset MIC until ALC255_FIXUP_ACER_HEADSET_MIC quirk applied. Although, the internal DMIC uses another module - snd_soc_skl as the driver. We still need the NID 0x1a in the quirk to enable the headset MIC. Signed-off-by: Jian-Hong Pan Signed-off-by: Kailang Yang --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c8413d44973c..8debd661e6f2 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5673,6 +5673,7 @@ enum { ALC225_FIXUP_HEADSET_JACK, ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE, ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, + ALC255_FIXUP_ACER_HEADSET_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6639,6 +6640,16 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC285_FIXUP_LENOVO_HEADPHONE_NOISE }, + [ALC255_FIXUP_ACER_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11130 }, + { 0x1a, 0x90a60140 }, /* use as internal mic */ + { } + }, + .chained = true, + .chain_id = ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6658,6 +6669,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC), SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS), SND_PCI_QUIRK(0x1028, 0x05bd, "Dell Latitude E6440", ALC292_FIXUP_DELL_E7X),