From patchwork Wed Aug 24 07:14:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anisse Astier X-Patchwork-Id: 9296935 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 410FD607F0 for ; Wed, 24 Aug 2016 07:14:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E8C928D6E for ; Wed, 24 Aug 2016 07:14:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 214B428E36; Wed, 24 Aug 2016 07:14:41 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,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 C03C928D6E for ; Wed, 24 Aug 2016 07:14:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3AED42664BD; Wed, 24 Aug 2016 09:14:38 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3DD9D266208; Wed, 24 Aug 2016 09:14:30 +0200 (CEST) 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 7BDC9266208; Wed, 24 Aug 2016 09:14:28 +0200 (CEST) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by alsa0.perex.cz (Postfix) with ESMTP id DF4802661BF for ; Wed, 24 Aug 2016 09:14:22 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id o80so1295245wme.0 for ; Wed, 24 Aug 2016 00:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=astier-eu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=6bRJgrUgxasBP3qbUB8gY6S6VcSbjJ6ZqwGcs8v9TZs=; b=Nas7++oHO8Ea5a8gXOnWhwxyUty4WstOpcqAvJhOiOZQ2FXsD+ePByVcgf/OI7WEHS 0Eg1WVYLEZ4zV2ynTpDqAeCrgTO3vXhNCWd7wzPaFWcsMs95htmCaGVsGPNwPZWEUgUh lIm8RtRpIv2fzTe+7S4AeHaEG/QgBcDyxf6w644BWQ3GG4+/h1aArTpA3QNONBmKFtVv UuanRFaX/2npDgDxVqYa+rOSaeJVvH7cqIQhoZNXSSMUBbhRWZlZr5OkmhAU+QOxb1eF C6WP9sEL/E2zvFJJJrpzv3m2ZdElpfoPtw4jOb6YUz8SgZFHp6ZoVfaLdyWfYO6WTFRz 9HWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6bRJgrUgxasBP3qbUB8gY6S6VcSbjJ6ZqwGcs8v9TZs=; b=TdicGzsmek1CocmRrHs7vN7OC2MLeswZ5zvz9A9JeTFaCaUfMq6jEn0Y1SegFcLNti iqCEna0MKfAUp52gbKIYb3Yzj3Dl5d9bkKjAjN8cBoxrzQ2dBjv/7XKOa4BQ/P8xUAh2 uzX4QDpZiVPI2mT2ljYMutjOFqwFOcAV6n4SM2r7nZIPF7G9dOe6bdz+TRFVgEAMZRL5 WLIhbo+HfNnYDZLoOZszbvb0VLv0MFZ+gf+YlEpkKJzxpaUztihxL4kHkESlyqT8bi21 KwBzx9amf/jj/dqyB24Fhic/IT5H9+/Ey0CUdRvKLiSxSD11Dac18sOd2tQvGNPQEhRW /02w== X-Gm-Message-State: AEkoousCdukj+Wx+CML7y05YWASiGRQeBvqIwLdV92fT6qfDU9QhH2t1kPZSZLKoUkDDGg== X-Received: by 10.194.172.165 with SMTP id bd5mr1210474wjc.33.1472022862557; Wed, 24 Aug 2016 00:14:22 -0700 (PDT) Received: from jaya.substantiel.local ([92.103.140.194]) by smtp.gmail.com with ESMTPSA id v203sm8918716wmv.2.2016.08.24.00.14.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Aug 2016 00:14:21 -0700 (PDT) From: Anisse Astier To: alsa-devel@alsa-project.org, Takashi Iwai , Jaroslav Kysela Date: Wed, 24 Aug 2016 09:14:13 +0200 Message-Id: <1472022853-12371-1-git-send-email-anisse@astier.eu> X-Mailer: git-send-email 2.5.5 Cc: Anisse Astier , Daniel Drake Subject: [alsa-devel] [PATCH] ALSA: hda/realtek - fix headset mic detection for MSI MS-B120 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 MSI Cubi MS-B120 needs the same fixup as the Gigabyte BXBT-2807 for its mic to work. They both use a single 3-way jack for both mic and headset with an ALC283 codec, with the same pins used. Cc: Daniel Drake Signed-off-by: Anisse Astier --- sound/pci/hda/patch_realtek.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 574b1b4..7100f05 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4828,7 +4828,7 @@ enum { ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, ALC292_FIXUP_TPT440_DOCK, ALC292_FIXUP_TPT440, - ALC283_FIXUP_BXBT2807_MIC, + ALC283_FIXUP_HEADSET_MIC, ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED, ALC282_FIXUP_ASPIRE_V5_PINS, ALC280_FIXUP_HP_GPIO4, @@ -5321,7 +5321,7 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC292_FIXUP_TPT440_DOCK, }, - [ALC283_FIXUP_BXBT2807_MIC] = { + [ALC283_FIXUP_HEADSET_MIC] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { { 0x19, 0x04a110f0 }, @@ -5651,7 +5651,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x10cf, 0x1757, "Lifebook E752", ALC269_FIXUP_LIFEBOOK_HP_PIN), SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC), SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC), - SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC), + SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x1462, 0xb120, "MSI Cubi MS-B120", ALC283_FIXUP_HEADSET_MIC), SND_PCI_QUIRK(0x17aa, 0x20f2, "Thinkpad SL410/510", ALC269_FIXUP_SKU_IGNORE), SND_PCI_QUIRK(0x17aa, 0x215e, "Thinkpad L512", ALC269_FIXUP_SKU_IGNORE), SND_PCI_QUIRK(0x17aa, 0x21b8, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE),