From patchwork Mon Jul 6 07:18:25 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: 11645103 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 D085E13B4 for ; Mon, 6 Jul 2020 07:20:54 +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 C9AA12073E for ; Mon, 6 Jul 2020 07:20:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="tG6DIiTB"; 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="sgSnX4Bv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9AA12073E 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 BF1FF165E; Mon, 6 Jul 2020 09:20:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BF1FF165E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594020051; bh=tOS9If+1eRAGyimEUKeqKbvl2683gPElWGQrze0dIBU=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tG6DIiTBLWyq8rPlFNtfE45ruE7sMDrGKV0LIuw8FBWk01pEcDQua3F720H3uXs9a FRm5BB4QQD2dFWc63zdwZnXTkEJ1ORqxB2gv3lZ5V3nZlYqDj9OXu4lZ0LymbLozfw ubGjYH7UEU5B2B1iORMdX8YNe8MPGyn1tJmFqLCU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EE5B8F80150; Mon, 6 Jul 2020 09:20:03 +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 52269F8015A; Mon, 6 Jul 2020 09:20:01 +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-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (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 1B75AF8011F for ; Mon, 6 Jul 2020 09:19:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1B75AF8011F 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="sgSnX4Bv" Received: by mail-pf1-x443.google.com with SMTP id m9so6345144pfh.0 for ; Mon, 06 Jul 2020 00:19:54 -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=O74Nuai4i0SLX5VBGfHYZHCvuzscSOHQ2q6kAb3CK+Q=; b=sgSnX4BvnCsHbxM0A5WWFsmuE95MfmeQXIjkXZbR2BNWgcCW1NKpULF4OKiZwMPf2F SkM7pF7DPNg+vYebyjW8hcfK/wLQvoRq8NDdij03laNTuA/b0770dCQrB9Sal4EyYLgV YdRhA0c/egElceVCWwUTJI5re6E2kthSlvIAaEIOWCRjD5G3YPHELvH7WFlivgQbJswP ErLpEU4nnu0sZg68ioKM3Tf4RdO6DAaaO/ybGyTahRQZI8lmCpEZMAPlDoGRoAhNz4cU XxOWXJg9ydKvmgsX0zaiUnu2Rv45vfUmfHcFhxxqgAfYImQ2TqZ6sLU0FvU5ESorX9D/ +XAw== 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=O74Nuai4i0SLX5VBGfHYZHCvuzscSOHQ2q6kAb3CK+Q=; b=D4zYDA2LCuekTt1DBvHaiZrzU8jaq6ASTYLcjwSa2SDgERmXg2mOWAfbM1qJHr4gPT pmOJoSzC1jHl9x0RxTgx29IOlrDxu2q9FJz1d8HmtdA1V3/urlgRL0Ec478L64Ob3YSf v1BSPu//L4m2DUMnAZBWJ6xI/OSNskjB/j16VhUPvZEdlsGq3eKbJo6IAQv316yZg/Nx 0d8QwUHFPRENzpyiCHHN8++nc4B2K36A9EoTC6lX00k4gDQhWbrFsWAN6rZ8ECEUbRTL ICV9DSe35TPq1vs8WS4IVSLhumnkdCRqCPFnvLtjBmsJgbsZAgT4L/suDyKt1YhB9k0A nn1g== X-Gm-Message-State: AOAM530+ohIwRH4LhAbMgTYgDeNIIfwMi8NEV3oRob9+XdtMXZgeieWD btLApCDOtMbAEuByqnvEFBdrtA== X-Google-Smtp-Source: ABdhPJy97C5d00A/1zRlOr0gcTDJG1/xcPA2z9ugXTaAcrfTaHjW/vgXKJw1+14TyG8kSOVZet0P2Q== X-Received: by 2002:aa7:848b:: with SMTP id u11mr28920909pfn.72.1594019991291; Mon, 06 Jul 2020 00:19:51 -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 f18sm17825210pgv.84.2020.07.06.00.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 00:19:50 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH v3 1/3] ALSA: hda/realtek - Enable audio jacks of Acer vCopperbox with ALC269VC Date: Mon, 6 Jul 2020 15:18:25 +0800 Message-Id: <20200706071826.39726-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: 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 --- v3: Change the chained ID to ALC269_FIXUP_HEADSET_MIC according to Realtek's suggestion 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..13c32655df44 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_MIC + }, }; 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 Mon Jul 6 07:18:27 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: 11645105 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 438AA13B6 for ; Mon, 6 Jul 2020 07:21:46 +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 CDAA32073E for ; Mon, 6 Jul 2020 07:21:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="MMDMhjPS"; 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="NvMGc8wK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CDAA32073E 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 4D184167D; Mon, 6 Jul 2020 09:20:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4D184167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594020104; bh=45xGo23B+9/5TEYSlKxplczLnW44qwvpWqBTYRmzR1E=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=MMDMhjPSoF1QxQNF9b1p2vjuVGtTQirUg5sDkfRZuLYWXKGtmZO0sAHtMx6yC6d3g m2W3fi0420rmCXP3ubtxkvlylIwTuwEGtusLYEFwu4uA0MlcbMjlKjYFIsGcuGqtB5 9FBKp/2YUwyySFipcftzJBveP/f4houumoruxTAg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9AA1AF8015D; Mon, 6 Jul 2020 09:20:19 +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 7669FF80161; Mon, 6 Jul 2020 09:20:17 +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 A10C6F8015C for ; Mon, 6 Jul 2020 09:20:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A10C6F8015C 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="NvMGc8wK" Received: by mail-pl1-x642.google.com with SMTP id x8so14094661plm.10 for ; Mon, 06 Jul 2020 00:20:13 -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=ZMrBCO2HX9SmHfGaTdHWGGANRpDUMASbUUrpS3Y30hY=; b=NvMGc8wKt9H4eVx9J5luQg51fZ8GewllQNYQDmxsgeH32r/45gfk7BhVwBserNn0LX ooMJLGG6IHCNW9ocWirNTotEpAHRGxAI72whR2vr+UqsyzG5yJYvWbLoJ3naFLb6LEtq DIzu8zmkyDBcD2q2OAJAwapFsFIcDt+xBEV48pT0T5JMaKn3iHpFKH2iwTaBbiFOp8Bs kikGGcnMNMKnNNyWtcXiciCRUv1C+AS1CMA4aTAQnyNxFfzNBqHEN9IBtu7ymXAF+xiE UbM1Je/GkYAtqVF1cfbDRAxUMj7gKFcuY+eSDTT4anJIJ6yrj38b/HZnt1Xhv40PBwWb B9rw== 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=ZMrBCO2HX9SmHfGaTdHWGGANRpDUMASbUUrpS3Y30hY=; b=D5MYrfNNz7vKn4Kl2TnCe3cOCkP7hnhUD+emt+FhdpGFdpxWxjVMf17xvmdoZovARl 7ABKlUg1jpXV6L+0mmDOXg5/T3I/K9rDHiLVJac5r6rTvEj2YBCfo7tw3GivCQNxoNsT VH0RPJgQPczNtRQqPSA3K0/Dnpj+a1EM+VFCdGQLPE0YTkkhA2Tz8Qg+kr1KU1RCYwO9 tXc3OASMRQ1cd88/jCDthnCi9Gm3yPKtxDPh+bn2outZcrrr+40kn6lHbhYeSxA8npHb iBNBU5IG6e4vR7Kqkrk/fwjqYv1x3UnQo9BxArQJrBkBvEzV+8gwtQfDLE6fHbPH/CoX csOg== X-Gm-Message-State: AOAM533EqtFt9vol70qFW+R4AYQ7WTz/g/unFCmEl06aUdLiUMnkd3Tx bb1GlZ9qHHFBXFQZudBgGZbtfQ== X-Google-Smtp-Source: ABdhPJw+/4Nv1TzCrD3P91WHTQvkYg0j+ZGrFxxPtwmEmoIKGoIdqkWElWszB0kHPXghpPovSLs7eg== X-Received: by 2002:a17:902:c142:: with SMTP id 2mr41559017plj.222.1594020011818; Mon, 06 Jul 2020 00:20:11 -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 f18sm17825210pgv.84.2020.07.06.00.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 00:20:11 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH v3 2/3] ALSA: hda/realtek: Enable headset mic of Acer C20-820 with ALC269VC Date: Mon, 6 Jul 2020 15:18:27 +0800 Message-Id: <20200706071826.39726-2-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: 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 --- v3: Change the chained ID to ALC269_FIXUP_HEADSET_MIC according to Realtek's suggestion v2: Change the chained ID to ALC269_FIXUP_HEADSET_MODE according to Realtek's suggestion 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 13c32655df44..be18b304e731 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_MIC }, + [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_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 Mon Jul 6 07:18:29 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: 11645107 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 8A29E13B6 for ; Mon, 6 Jul 2020 07:22:34 +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 1D4EA2073E for ; Mon, 6 Jul 2020 07:22:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="gA7EHde1"; 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="usBlw4O/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D4EA2073E 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 8B97B1682; Mon, 6 Jul 2020 09:21:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8B97B1682 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594020152; bh=NosedA3sgCV5A/Ijuk9EWnT0CVr++nmdgtSajFJE0Pc=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gA7EHde1jP+2VJqH8WhUXZvlf4odt8XKOgATovy08kHAFLZoBynRLJaXKgp2YA6OT 4qo30XGFqigwcye1PqOTZHGT1ZZ4lOl5MFyZJTo7ajk3Blebu1xG9C8qsk6dDuNCeb rBvMpsXpeXE5t6iqUCgGwxSMVGdMM8cO+q/t15O4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8F91DF802A0; Mon, 6 Jul 2020 09:20:38 +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 47D00F802A9; Mon, 6 Jul 2020 09:20:37 +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-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (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 4A1FAF801D8 for ; Mon, 6 Jul 2020 09:20:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4A1FAF801D8 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="usBlw4O/" Received: by mail-pl1-x643.google.com with SMTP id w17so528713ply.11 for ; Mon, 06 Jul 2020 00:20:33 -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=CUjOCBzJzHZGlbM/LYArmMgBHJ4SZ/ZCIHU1HiTNVeA=; b=usBlw4O/gmejQLVUZZlYw0kQnxq4GauNQ154hpOYplmmBgH+QjlS6wW1MCyNmQAEYc VgIJ87k6wMU/LRBRAiPVrG4Mq+eHOV5bpnplpssw97Ebcp8en/Vmbzk3IC+S2xaCmchd B4fQWSGeccoxsuff7VOEcOm12+xTR2jIVQF31iL2uzpq1Sn4eRM+aQJHRdRJubxStA2G oZRZv2nSflASVFIImduypO2rx/VrGLrAmRaCDI6lzcKtygmbCIf7mLkrAZqGZzeij04k +JcoaAS3owh3T1TlnQCny5X2RRceUQX482FBGjugBrBkGFi+6+57Fl8wq8K0XCNAAdtv IK0g== 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=CUjOCBzJzHZGlbM/LYArmMgBHJ4SZ/ZCIHU1HiTNVeA=; b=IpoIvoV2q7jX5ufCE5/OLEaUT8BEYQ5pJC9/t5lZ4gu3o2adcTEibtR8gpPqPJ1iRf JMfvTNxCJaVh3sbhENBHSiVEUAWmOrRkV6Rd+r+rF2h5Y0OvTn9Hv4mJts7rLvAHe0XK clAK8ZIxDrelp4Qx+AdCoQL7L3TXgeQ38AtJK6395aH4w3/ZZOtbZplx6gu/OQqpuY2l 9cVWCc5wBem7vT91JfG128GEDQjnVuLssgDSe1oraol8+DN1WsiloCM+RqrOfcnCG7Mi PF4BGTUzRPzRnUkgawo9idr4gdkNHWMyqopbBb4PoSF7OWAJQVv75RYyh6qQX33HZ3bu V8Xw== X-Gm-Message-State: AOAM533GF/vh8s9yeOVqyAo64Af1tEdV43og+z5l78ocEoybFkAlFugC 1tp7OOGAKhXF8m4mjE+cTAfUVQ== X-Google-Smtp-Source: ABdhPJyGDFe4YRXz9gpczWaXXbPvo1uMz8oukjySBx3ZILFkG2vsakTo2pzJAur0RmMp3klhqK2s5A== X-Received: by 2002:a17:902:728c:: with SMTP id d12mr40859452pll.155.1594020031088; Mon, 06 Jul 2020 00:20:31 -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 f18sm17825210pgv.84.2020.07.06.00.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 00:20:30 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Subject: [PATCH v3 3/3] ALSA: hda/realtek: Enable headset mic of Acer Veriton N4660G with ALC269VC Date: Mon, 6 Jul 2020 15:18:29 +0800 Message-Id: <20200706071826.39726-3-jian-hong@endlessm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: 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 --- v3: Change the chained ID to ALC269_FIXUP_HEADSET_MIC according to Realtek's suggestion 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 be18b304e731..c2e6a6b7ea5b 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_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_MIC + }, }; 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),