From patchwork Fri Jul 3 07:05:11 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: 11641009 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AA8092A for ; Fri, 3 Jul 2020 07:06:58 +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 0211D208FE for ; Fri, 3 Jul 2020 07:06:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="NbBUeoZa"; 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="WK9lutSV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0211D208FE 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 A58A516AB; Fri, 3 Jul 2020 09:06:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A58A516AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1593760014; bh=guwZ3uTVWKwB76ayS4xqkdxbf3lCvN2ndCZaptvz7x0=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=NbBUeoZaqWCcAIUHBIt+1ukpemnJ9C8B289w5txPtjeZ3eRMbEs2xAolujTek06l8 RERu1CplVy7GZrdkypbqxmxi3w4ThH/mvQ5JqdLmnDxYDYg+uADTUorf59nQITDDZe X40VsEPZ351goUewshFxcbS691Hj1+1Hxy/2PCsA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0A9A8F8020C; Fri, 3 Jul 2020 09:06:07 +0200 (CEST) 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 B11ABF80217; Fri, 3 Jul 2020 09:06:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 1911CF800E2 for ; Fri, 3 Jul 2020 09:05:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1911CF800E2 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="WK9lutSV" Received: by mail-pg1-x542.google.com with SMTP id o13so11719395pgf.0 for ; Fri, 03 Jul 2020 00:05:58 -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=1tVzWaBcXcAIcSS8sXY9snxZzqYH+2Rl4YL7e8hJOjM=; b=WK9lutSV8aohCLhH2O7vvNVP18AgWz88xGPef6Tk1YAI+DQ2HqXCXRy4bqeyBAiReO S9SBfaT+E/rsH5+uawtdGO+5wNZwnR8NHv5wpZ+Sz61fmvOGelKdc+SnGEXTn5ZOFskc 5ynnceAafFB6tto143ZnsyfGU550y+q8VzxbYpMifE2ptXE5b0H0McCc66XbJ4cfFIQc U3Xf0MM8mBczuJwupscYlUSaBf5RI3Lv6VgpslVT7Yw635ZTijRx8rAFsEqUeQk1sZbd WkKCHGpiyLofO3iBBtn5liXFUyqT6ZAD7ZxIlfDqNYxUJkoJcayn6mrfix/UH4wzfqjz 7Zmw== 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=1tVzWaBcXcAIcSS8sXY9snxZzqYH+2Rl4YL7e8hJOjM=; b=b4rdi4io4U+3TI0ouW2a6ojz+Al+J4A6+2GBKSX2wUpx4vAPIxY7+X7CKKWArD9eMO CJG7jdFszP8lgSbTmF9kgikciF5H4osTkLHTZqjM/uYNqjcmgKL+ujP52egKOA5T1BnL PIlZ6FtAynMyNJ/9zRNNJOemTTx2xo5zyCHvY5STf7ZRMSho6802DoFhMz7HWtVR8nGZ abWba26J+sm4HQKDbimKGTFxbTFKyO3PYDqa4k3TJ1OWSJZ6eLNHXzc+uLnbKp+UKo6m wqAtLC/C5S9R+J+lgFyDOOPwt7j66NdMdNS3DyZRjEa8nJva4N9Wlnej+4PxIB1XkRmd oJZw== X-Gm-Message-State: AOAM533tVUPRwGyEog3BabPpNG0KupDdCJtS1mO6jJOAk8dzRCYATCVx 92x9ZSaIedPHOqaIjKhN7lVYGw== X-Google-Smtp-Source: ABdhPJxGi/BdYlejGmgrE/rcM8LCpXTxUzO9vwzvnCwG+dyaUMn01oiAAfHbABHUSHjkCn8XHOLXjw== X-Received: by 2002:a05:6a00:4f:: with SMTP id i15mr638018pfk.93.1593759955267; Fri, 03 Jul 2020 00:05:55 -0700 (PDT) Received: from starnight.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.googlemail.com with ESMTPSA id p1sm3529764pja.2.2020.07.03.00.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 00:05:54 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH 1/3] ALSA: hda/realtek - Enable audio jacks of Acer vCopperbox with ALC269VC Date: Fri, 3 Jul 2020 15:05:11 +0800 Message-Id: <20200703070512.174394-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Kailang Yang , Chris Chiu , linux-kernel@vger.kernel.org, Jian-Hong Pan , linux@endlessm.com 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" The Acer desktop vCopperbox with ALC269VC cannot detect the MIC of headset, the line out and internal speaker until ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS quirk applied. Signed-off-by: Jian-Hong Pan Signed-off-by: Chris Chiu --- sound/pci/hda/patch_realtek.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 737ef82a75fd..dfb4bca07d3f 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6149,6 +6149,7 @@ enum { ALC236_FIXUP_HP_MUTE_LED, ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, + ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS, }; static const struct hda_fixup alc269_fixups[] = { @@ -7327,6 +7328,17 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE }, + [ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x90100120 }, /* use as internal speaker */ + { 0x18, 0x02a111f0 }, /* use as headset mic, without its own jack detect */ + { 0x1a, 0x01011020 }, /* use as line out */ + { }, + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7346,6 +7358,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1025, 0x1099, "Acer Aspire E5-523G", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_FIXUP_PREDATOR_SPK), + SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS), SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), From patchwork Fri Jul 3 07:05:14 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: 11641011 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B9F513B6 for ; Fri, 3 Jul 2020 07:07:49 +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 0CC49208FE for ; Fri, 3 Jul 2020 07:07:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="d6/Oqj90"; 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="ozgXHUcV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CC49208FE 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 7E6F916BF; Fri, 3 Jul 2020 09:07:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7E6F916BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1593760067; bh=qFAIffioVFFTeBF5oxOgV6xmZs51zYLLd0z2OkAbnNE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=d6/Oqj90CbJIC4buCbeUDBdW7sR47xUCe0XiZixyJHRGhz+/VMPKwpZwi3QEuG3x3 kslCsPbChDkpW5McHZGrUy0xP9ix6+5djBtKj1VrE5s4QmvKHCUS523o+ZTbhl7BvF 3Idx7aaoxVmCP5/+BOAItDAG6zwGhjuMX2Ooacu8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6A3D9F80229; Fri, 3 Jul 2020 09:06:48 +0200 (CEST) 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 32C27F8025F; Fri, 3 Jul 2020 09:06:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 0CA7CF800E0 for ; Fri, 3 Jul 2020 09:06:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0CA7CF800E0 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="ozgXHUcV" Received: by mail-pl1-x642.google.com with SMTP id d10so276625pll.3 for ; Fri, 03 Jul 2020 00:06:40 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=bDYPa69LmDFvO+Xx7QJScqxnVDczXS9vz2dN5XkQbOo=; b=ozgXHUcVDIllwsoVOCKyOzFhQmAoGtBeS7xRsINeTILHLSCMAJRkJ1Els+cxXSztnt 5F1xa1XAEYqYPvjFs3nTDNtanerAMu+YdgLLJZdhmh3gjNBdzutgYABmdAZHlJx1UqCQ 3DDaIyW86f7LQkbChMriANqcer9oWb4I8BSfisxcdlAomR6IfoQ2OM/F1R1pDZ3RVVgB b4F7Lm7nFhwceAVhzSkS5v1KhtXfgmwVHLM+3t3pgx7pOGwfqGcHD6bsck4YsAB6dmMu jb8SiOve0laFHMCP+nYidOHbj5bNrLi6KtjsXLf1SaQNhSTitdy8CC6HeDkzA4R/Mvfq rM4g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=bDYPa69LmDFvO+Xx7QJScqxnVDczXS9vz2dN5XkQbOo=; b=WxEK9TsRmvTNIQiP7Wp1kO4fDiIB0D/AYTCeBPYcYUzRTOfNfNzWlmlnet+yNoFJPm KQe7LTBizuGWELvHp/8lnJn3F7ol2S507gDt+TfesFUlSfR98aqNgnhkk2olyqwCUm8g a55FIGElMsi7JaotzKkDvFZgRLtTmUtqQlk4NiGFSO/0GL3aCCDXVqvNAZAfkX7ssWGo +BH5yuPGLegXtyH5B3bjnUGOmpFYg45GihGd1YxV7nxiLNRu9E2UZ7oRdw6QqPKIda4U MFFD66UME5YBUU/FcSEWk68MYbGDi61EZPsPcOWA1hlw32ESi2KU7tMiCseQMDrXuVnO PHuQ== X-Gm-Message-State: AOAM533I4JzGOgwyiw0zTsMD4pjfAIgRaPMm4KW74pcU2I3HZSBpNPfT 8YEniZQrqY64I8HkpyHDSGl0mQ== X-Google-Smtp-Source: ABdhPJx4PsoUIB7GYssnL1xk6WAhTBYOnCuss0AkP3hpv9zos6Fft/tE+LbljWFRS1+vvFazagSO9w== X-Received: by 2002:a17:90b:30d0:: with SMTP id hi16mr38329964pjb.65.1593759997356; Fri, 03 Jul 2020 00:06:37 -0700 (PDT) Received: from starnight.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.googlemail.com with ESMTPSA id p1sm3529764pja.2.2020.07.03.00.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 00:06:36 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH 2/3] ALSA: hda/realtek: Enable headset mic of Acer C20-820 with ALC269VC Date: Fri, 3 Jul 2020 15:05:14 +0800 Message-Id: <20200703070512.174394-2-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200703070512.174394-1-jian-hong@endlessm.com> References: <20200703070512.174394-1-jian-hong@endlessm.com> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Kailang Yang , linux-kernel@vger.kernel.org, Daniel Drake , Jian-Hong Pan , linux@endlessm.com 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" The Acer Aspire C20-820 AIO's audio (1025:1065) with ALC269VC can't detect the headset microphone until ALC269VC_FIXUP_ACER_HEADSET_MIC quirk maps the NID 0x18 as the headset mic pin. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index dfb4bca07d3f..3255da8b3849 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6150,6 +6150,7 @@ enum { ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS, + ALC269VC_FIXUP_ACER_HEADSET_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -7339,6 +7340,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE }, + [ALC269VC_FIXUP_ACER_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x02a11030 }, /* use as headset mic */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7354,6 +7364,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1025, 0x0775, "Acer Aspire E1-572", ALC271_FIXUP_HP_GATE_MIC_JACK_E1_572), SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS), SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1025, 0x1065, "Acer Aspire C20-820", ALC269VC_FIXUP_ACER_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK), SND_PCI_QUIRK(0x1025, 0x1099, "Acer Aspire E5-523G", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), From patchwork Fri Jul 3 07:05:16 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: 11641013 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8FC392A for ; Fri, 3 Jul 2020 07:08:37 +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 37FC9208FE for ; Fri, 3 Jul 2020 07:08:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Kz79EjA7"; 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="CVuXoOBO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37FC9208FE 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 9E42516D9; Fri, 3 Jul 2020 09:07:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9E42516D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1593760115; bh=dTWZF9dLeKMEnAnKepyXOfmDwfcDNzqH2XK5xFHAcI8=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Kz79EjA7n8MlYtqDyPUXNZngCFtQ+cav5Gd80gmCH0Oh3yO3/JrdF80q9V9mgJLTW B3g8ixyTfr7NW5FucH9VMR/+WKQTtVUq8spS4t8OmLCoIpKgpox/ZerlAKecQ92N+2 K1yHsRMUDXG9YEFd8mFsycjBZW217FNqbxC7JFZE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 78A94F8028A; Fri, 3 Jul 2020 09:07:02 +0200 (CEST) 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 969CAF8028F; Fri, 3 Jul 2020 09:07:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 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 AAF7CF80269 for ; Fri, 3 Jul 2020 09:06:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AAF7CF80269 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="CVuXoOBO" Received: by mail-pf1-x441.google.com with SMTP id m9so3356979pfh.0 for ; Fri, 03 Jul 2020 00:06:57 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=qZjFkIVJTz9thTx+GrzMJX0wDRAys5DOTPVI0ovJ+iM=; b=CVuXoOBOVKnzWQ1+4EX86/AeV4yV7/24FrDAkOtOKsSTcP0e7nrxWMsW1cJBLHTzYo rvsZzOPMI26z2LP9nY6Zc/yPLYWQfU+0ad7x1RIpMJFnb1qU+wVhkVjGevC3VXaNNG5l qeGf8+s4geDIaq2rt0pV8OShhDUD3XXJb+3abQAwXTox4ZVpdBVYnpvBXupyz5KT1D8W zSzBDD7ifHAaf1Fv2IenQn/AWWai64JG3swoTUSJvJumxHb9AIHTLJUI3QQ72wCqpaHq Lsi2m6PP4hFocDXVx+6UYgB+yXRFOJus2vBlbySvd0rEw+SHLnT11yGzbSt6kde+kmFc DUYQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=qZjFkIVJTz9thTx+GrzMJX0wDRAys5DOTPVI0ovJ+iM=; b=hx7NQEdrW4bVbiErguqpw/r6mvv8ZWTF/FWUw9EmZBeKGmKI4BNIxJ7Eq1X7pSlEye T0T7rKSUNQyeAyLarvOgT9xVrd8GmEmqSCfUyat8Sml3t35KjsGYIm5uI5e/WZyG/MxX 810Fkdd/8ZyOHHNWGIdbbWzS/tI3PuzRkFF9gXnjqqXdfLWu/vL6NofCt79uIJCx0HDe Cw3kB9T5YbWD2DyUV6bUb3rM/FGPeaA+h1AXtHtpOGBiZ3ytC3aLvFe654J7IpSTfS4o clcxbEGlQvFT5eHiEZ6DfvtTyZQc5EnfCgjWxJGV7Pl0bXo7nOD81ht7plZfHTTboPAR s+BA== X-Gm-Message-State: AOAM531D7MFY7ZF/ZLi3gpREJHEWnKjQGFNFLI8LIxWJdwIh5TPLW72B USW+cuSv3vyn5rQ4xrxMT3PH4A== X-Google-Smtp-Source: ABdhPJyy3l4qFH7FwIRz0AG+TcbmJt6Z71Eiyguflbvc+p56xo8H509bviHjQYsZvaxm9C/QxUEdBA== X-Received: by 2002:a63:135b:: with SMTP id 27mr19533356pgt.37.1593760014502; Fri, 03 Jul 2020 00:06:54 -0700 (PDT) Received: from starnight.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.googlemail.com with ESMTPSA id p1sm3529764pja.2.2020.07.03.00.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 00:06:54 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH 3/3] ALSA: hda/realtek: Enable headset mic of Acer Veriton N4660G with ALC269VC Date: Fri, 3 Jul 2020 15:05:16 +0800 Message-Id: <20200703070512.174394-3-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200703070512.174394-1-jian-hong@endlessm.com> References: <20200703070512.174394-1-jian-hong@endlessm.com> 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" The Acer Veriton N4660G desktop's audio (1025:1248) with ALC269VC cannot detect the headset microphone until ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE quirk maps the NID 0x18 as the headset mic pin. Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3255da8b3849..02054a2a742f 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6151,6 +6151,7 @@ enum { ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS, ALC269VC_FIXUP_ACER_HEADSET_MIC, + ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE, }; static const struct hda_fixup alc269_fixups[] = { @@ -7349,6 +7350,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC }, + [ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x01a11130 }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7370,6 +7380,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_FIXUP_PREDATOR_SPK), SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS), + SND_PCI_QUIRK(0x1025, 0x1248, "Acer Veriton N4660G", ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),