From patchwork Tue Feb 28 20:17:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 9596691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 21DF560429 for ; Tue, 28 Feb 2017 20:17:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13D2E283E8 for ; Tue, 28 Feb 2017 20:17:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 087572842B; Tue, 28 Feb 2017 20:17:30 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 154B2283E8 for ; Tue, 28 Feb 2017 20:17:28 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id EEF18266D22; Tue, 28 Feb 2017 21:17:26 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E4A88266D22; Tue, 28 Feb 2017 21:17:25 +0100 (CET) Received: from mail-ua0-f179.google.com (mail-ua0-f179.google.com [209.85.217.179]) by alsa0.perex.cz (Postfix) with ESMTP id ACB1C266718 for ; Tue, 28 Feb 2017 21:17:23 +0100 (CET) Received: by mail-ua0-f179.google.com with SMTP id 72so26648743uaf.3 for ; Tue, 28 Feb 2017 12:17:23 -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; bh=rDigj86aT23vGDkmpMi0hVHjMqFp2rG1PnZz42xeeKg=; b=sJVdCaa029qR4yNFaTf4yU67v5E8n9seAuAm0gJcH+W9pPely7nBEFC34UwONIYVr9 tB47AMiYdMFhizOyGN3aokJOU5LUwlPnnuKYvPu0JT0Cv4AIP8pgXyw2vzYa9TG60+8q tD61i50J25LgEcTSZwrily3ahiMKNROWCSglZ10hBd8Ty763a5Y7LVvCJZmA8nEGU/Qa MgOFv68TsmjaU6arGHyNdQ177NsBRwNaEw8/6AOA9XPWK6yHCrsU8QRT2OQUr4lM/lWa eGo8tX8hErIunpO/BRX/h53V0JpzpXgQPbSuup8qXXWBNBXun6QCHcVYLKYrV4gNEv9h B9yQ== 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; bh=rDigj86aT23vGDkmpMi0hVHjMqFp2rG1PnZz42xeeKg=; b=VAk1nX/uSUF4NdrB1f5zOMKR9iC2mFfWUqy0ax6cbt/XV2WBB/xwIwpsaEpTVdpxoO rmIPTACRonxbGqZ4ntha6glkvug9PinkbBznciTH0on4Eohd4ps6/rpVLnrSfsIIfX8O 820K1L5KNXbLmtanvwtwECZCcnCE2GC+U3N/ghIHcD4OfeQ16x7scy7Es/E8JrVaeHWF +imrfQGVOWEd0LkxCprnXf4RUi29Ntq0FVjOxZucxSM1GkQewpDV6OMSkw/gtChCBzX/ CDtZkWCClZnYnTjJAIzCHLZXZHbITBXSxSiqeloZYxA689sHjBGjr5gFY7cVUQk+l1GV Sl2w== X-Gm-Message-State: AMke39njsN9QGGGsLP+BqC0up765pa798TCVTZSyXfGVGlJ2qwHh+m5FJQ8cInBU7CL+sGjM X-Received: by 10.176.75.144 with SMTP id v16mr2107047uaf.128.1488313041989; Tue, 28 Feb 2017 12:17:21 -0800 (PST) Received: from nuc.gallo.pinto ([186.77.198.234]) by smtp.gmail.com with ESMTPSA id a91sm651289uaa.2.2017.02.28.12.17.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 12:17:21 -0800 (PST) From: Daniel Drake To: perex@perex.cz, tiwai@suse.com Date: Tue, 28 Feb 2017 14:17:11 -0600 Message-Id: <20170228201715.7862-1-drake@endlessm.com> X-Mailer: git-send-email 2.9.3 Cc: linux@endlessm.com, alsa-devel@alsa-project.org, chiu@endlessm.com Subject: [alsa-devel] [PATCH 1/5] ALSA: hda/realtek - Add support for Acer Aspire E5-475 headset mic X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chris Chiu The Acer laptop Aspire E5-475 with ALC255 can't detect the headset microphone until we modify a pin definition. Signed-off-by: Chris Chiu Signed-off-by: Daniel Drake --- sound/pci/hda/patch_realtek.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e2da176..2b1f74f9 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4833,6 +4833,7 @@ enum { ALC290_FIXUP_SUBWOOFER_HSJACK, ALC269_FIXUP_THINKPAD_ACPI, ALC269_FIXUP_DMIC_THINKPAD_ACPI, + ALC255_FIXUP_ACER_MIC_NO_PRESENCE, ALC255_FIXUP_DELL1_MIC_NO_PRESENCE, ALC255_FIXUP_DELL2_MIC_NO_PRESENCE, ALC255_FIXUP_HEADSET_MODE, @@ -5287,6 +5288,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_THINKPAD_ACPI, }, + [ALC255_FIXUP_ACER_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC255_FIXUP_HEADSET_MODE + }, [ALC255_FIXUP_DELL1_MIC_NO_PRESENCE] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -5852,6 +5862,10 @@ static const struct hda_model_fixup alc269_fixup_models[] = { {0x21, 0x03211020} static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { + SND_HDA_PIN_QUIRK(0x10ec0255, 0x1025, "Acer", ALC255_FIXUP_ACER_MIC_NO_PRESENCE, + {0x12, 0x90a601c0}, + {0x14, 0x90171120}, + {0x21, 0x02211030}), SND_HDA_PIN_QUIRK(0x10ec0225, 0x1028, "Dell", ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, ALC225_STANDARD_PINS, {0x12, 0xb7a60130},