From patchwork Mon Apr 1 03:25:05 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: 10879049 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 C709C139A for ; Mon, 1 Apr 2019 04:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6B58287B6 for ; Mon, 1 Apr 2019 04:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 999712881E; Mon, 1 Apr 2019 04:21:48 +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 77FD1287B6 for ; Mon, 1 Apr 2019 04:21:47 +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 9C3DA1646; Mon, 1 Apr 2019 05:26:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9C3DA1646 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554089242; bh=7qXHMQee2bm9z0ubm0Ws+ixExeCEt94QZAknVp+7g8o=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Mlba93bBDkOyYPRksoGTp/jJsUaKqXvQMOaDGOEyttBr3JOx2puXyV3F3UylVBf92 O/JHljifARdXxRv3SmTV5sUirmfYadHjwowvPNLEEd8qG37J9DUE7MVgKmKKjFkOMp nQPMXb0c5sHQHSs+6tFzuwspcixxou+pqkW5mrT8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 20172F89614; Mon, 1 Apr 2019 05:26:32 +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 C51B9F8962D; Mon, 1 Apr 2019 05:26:29 +0200 (CEST) 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 705E6F80717 for ; Mon, 1 Apr 2019 05:26:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 705E6F80717 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="lTZP0Fqa" Received: by mail-pf1-x443.google.com with SMTP id y13so3802845pfm.11 for ; Sun, 31 Mar 2019 20:26:25 -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=npgKgNSdlqU8Z2V5vLurv1Xl/iA4tNfvDxH6hPU2Mv4=; b=lTZP0FqalV4SK1qnidbw9uQVQU8KDz3MDrBNZW+YSnT30QHVgDV5N9URMmIGeLpRV5 Z5IrLVKhDSEvzQ6JsuIjjnfCvjMlrUd+eXu9xjvVl22LXuhMiNMLx0YayBE9T8Rzeqci RW3Suqt7Z/sD2iMWAZ4y64kjmNp5BCsQAEWWrX2G713mZsz1Fr8zuFDjEX+bWnSz/VFl xZQjJmNdxFFfLKLElj5F+4RGdwdLIoBfrqNo/rhLuFN8cEkWT4Gt3MrTstR7FxIIUzrO XlTRZAziJIt4iVVluq//62/LG5FpUwpER7PEzY7P8ZDawgn9oZFJvPnMiQeo8tyoY1Jv fOmw== 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=npgKgNSdlqU8Z2V5vLurv1Xl/iA4tNfvDxH6hPU2Mv4=; b=iUDR7NOCjVnJUIzhjSr9z6/rOOL/rpB7xGV20oIGtZMWz0i4FatGBEmkD97mzFUFtY eJ0aF63078Mg5G1Gr71M8n4jp83/hVtO3KxIauWUhNEaaFhLoyIlV4XL+ivIN7G2Ies3 q5MEfQDDkrWN3MrETi98wnKsv+SeUa/FdeOVgSLUZyZex2X5OZIu+z1ojM1vGZwHXnyl IqNmgzBtWVp2CT9IoOLa7cSqalfVM0uQG1CKwhQavJvYSlMeaqsyYAdLMcDjFnqB70wl OOE2TXGlXnhcwB2CoT1Ffwo6MWazqNaXAESb70S1kJJmRMLuL2oSs5TmwQJULL7up2A9 cg2g== X-Gm-Message-State: APjAAAXRrbszn2LcPrnCfrlS9P+9UJHxXYFnf3w6B5LkP/VTsl3eIlMV QtDv9wt6L6SIBY8N2pi3qR5QMQ== X-Google-Smtp-Source: APXvYqxPuTtVXXqI5A+y4KPpVcKC4LKwf629McjG3avFIxJlT2DAlETxz5wU2l0jdMYLB8X8hSI48A== X-Received: by 2002:a63:29c8:: with SMTP id p191mr50763617pgp.197.1554089184009; Sun, 31 Mar 2019 20:26:24 -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 l19sm10745312pff.1.2019.03.31.20.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Mar 2019 20:26:23 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Date: Mon, 1 Apr 2019 11:25:05 +0800 Message-Id: <20190401032503.2821-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.20.1 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 Subject: [alsa-devel] [PATCH] ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233 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 B114-21 laptop cannot detect and record sound from headset MIC. This patch adds the ALC233_FIXUP_ACER_HEADSET_MIC HDA verb quirk chained with ALC233_FIXUP_ASUS_MIC_NO_PRESENCE pin quirk to fix this issue. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Reviewed-by: Kailang Yang --- 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 a3fb3d4c5730..bdb2227be4eb 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5690,6 +5690,7 @@ enum { ALC286_FIXUP_ACER_AIO_HEADSET_MIC, ALC256_FIXUP_ASUS_MIC_NO_PRESENCE, ALC299_FIXUP_PREDATOR_SPK, + ALC233_FIXUP_ACER_HEADSET_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -6713,6 +6714,15 @@ static const struct hda_fixup alc269_fixups[] = { { 0x21, 0x90170150 }, /* use as headset mic, without its own jack detect */ { } } + [ALC233_FIXUP_ACER_HEADSET_MIC] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 }, + { } + }, + .chained = true, + .chain_id = ALC233_FIXUP_ASUS_MIC_NO_PRESENCE }, }; @@ -6737,6 +6747,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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), SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), + SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233_FIXUP_ACER_HEADSET_MIC), 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),