From patchwork Tue Oct 28 21:15:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bossard X-Patchwork-Id: 5184881 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DDBB0C11AC for ; Wed, 29 Oct 2014 07:39:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D790D201FA for ; Wed, 29 Oct 2014 07:39:00 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3208720121 for ; Wed, 29 Oct 2014 07:38:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 464F1265099; Wed, 29 Oct 2014 08:38:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 38FD32604B8; Wed, 29 Oct 2014 08:37:32 +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 E13B62614F4; Tue, 28 Oct 2014 22:36:40 +0100 (CET) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by alsa0.perex.cz (Postfix) with ESMTP id 546CB261AA5; Tue, 28 Oct 2014 22:15:13 +0100 (CET) Received: by mail-wg0-f47.google.com with SMTP id a1so474734wgh.34 for ; Tue, 28 Oct 2014 14:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WFPtDnPWwic7NE3qirrTAIynrl9ZOc5RsTwc1oYgKgk=; b=uuRaR2TCAxjIpfoOkR333kyc7tVjn/MEdsq0vHlfFYTjlCblV4p/51ZBik3s0dFTFc aM2O34KeO8Cxjji3hQRXc2aGu8eFDkIUO6t/utMSoEYdxnYeeGeRTQ8czkREVuDjv2aV 1xtLdWtCRk3oZpC77pY0Occbp5/9Y/V1ZuOPSrpUvU8FsPgHRhkKOxOzdsaVJBR26oPA dx8Ihyxvpahon8kEt4BOwwb0NWmx8luJO1meoB9749JHFi5twEqfFwNFf1TPEK8AoQFr Fladvwu0Zq+s2QDf1frrBdzub38XlVSPqqKQ756rCCnuBhUnJO5niN3L9LBewARMUzBI k19g== X-Received: by 10.181.8.72 with SMTP id di8mr31337128wid.1.1414530912936; Tue, 28 Oct 2014 14:15:12 -0700 (PDT) Received: from localhost.localdomain ([31.24.13.74]) by mx.google.com with ESMTPSA id p3sm3073781wjf.49.2014.10.28.14.15.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Oct 2014 14:15:12 -0700 (PDT) From: Lukas Bossard To: patch@alsa-project.org Date: Tue, 28 Oct 2014 22:15:02 +0100 Message-Id: <1414530902-5030-1-git-send-email-mr.bobukas@gmail.com> X-Mailer: git-send-email 2.1.0 X-Mailman-Approved-At: Wed, 29 Oct 2014 08:37:29 +0100 Cc: alsa-devel@alsa-project.org, Lukas Bossard Subject: [alsa-devel] [PATCH - hda 1/1] Add ultra dock support for Thinkpad X240. 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 Adding ultra doch support for Lenovo Thinkpad X240 (17aa:2214). In the same process also rename ALC292_FIXUP_TPT440_DOCK to a more generic ALC292_FIXUP_LENOVO_ULTRA_DOCK Signed-off-by: Lukas Bossard diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 34b7bdb..693f083 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4212,7 +4212,7 @@ enum { ALC255_FIXUP_HEADSET_MODE, ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC, ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, - ALC292_FIXUP_TPT440_DOCK, + ALC292_FIXUP_LENOVO_ULTRA_DOCK, ALC283_FIXUP_BXBT2807_MIC, ALC255_FIXUP_DELL_WMI_MIC_MUTE_LED, ALC282_FIXUP_ASPIRE_V5_PINS, @@ -4640,7 +4640,7 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE }, - [ALC292_FIXUP_TPT440_DOCK] = { + [ALC292_FIXUP_LENOVO_ULTRA_DOCK] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { { 0x16, 0x21211010 }, /* dock headphone */ @@ -4799,16 +4799,17 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x21fb, "Thinkpad T430s", ALC269_FIXUP_LENOVO_DOCK), SND_PCI_QUIRK(0x17aa, 0x2203, "Thinkpad X230 Tablet", ALC269_FIXUP_LENOVO_DOCK), SND_PCI_QUIRK(0x17aa, 0x2208, "Thinkpad T431s", ALC269_FIXUP_LENOVO_DOCK), - SND_PCI_QUIRK(0x17aa, 0x220c, "Thinkpad T440s", ALC292_FIXUP_TPT440_DOCK), - SND_PCI_QUIRK(0x17aa, 0x220e, "Thinkpad T440p", ALC292_FIXUP_TPT440_DOCK), - SND_PCI_QUIRK(0x17aa, 0x2210, "Thinkpad T540p", ALC292_FIXUP_TPT440_DOCK), - SND_PCI_QUIRK(0x17aa, 0x2212, "Thinkpad T440", ALC292_FIXUP_TPT440_DOCK), + SND_PCI_QUIRK(0x17aa, 0x2214, "Thinkpad X240", ALC292_FIXUP_LENOVO_ULTRA_DOCK), + SND_PCI_QUIRK(0x17aa, 0x2212, "Thinkpad T440", ALC292_FIXUP_LENOVO_ULTRA_DOCK), + SND_PCI_QUIRK(0x17aa, 0x220c, "Thinkpad T440s", ALC292_FIXUP_LENOVO_ULTRA_DOCK), + SND_PCI_QUIRK(0x17aa, 0x220e, "Thinkpad T440p", ALC292_FIXUP_LENOVO_ULTRA_DOCK), + SND_PCI_QUIRK(0x17aa, 0x2210, "Thinkpad T540p", ALC292_FIXUP_LENOVO_ULTRA_DOCK), SND_PCI_QUIRK(0x17aa, 0x2214, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x2215, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x3978, "IdeaPad Y410P", ALC269_FIXUP_NO_SHUTUP), SND_PCI_QUIRK(0x17aa, 0x5013, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x501a, "Thinkpad", ALC283_FIXUP_INT_MIC), - SND_PCI_QUIRK(0x17aa, 0x501e, "Thinkpad L440", ALC292_FIXUP_TPT440_DOCK), + SND_PCI_QUIRK(0x17aa, 0x501e, "Thinkpad L440", ALC292_FIXUP_LENOVO_ULTRA_DOCK), SND_PCI_QUIRK(0x17aa, 0x5026, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x5109, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_PCM_44K), @@ -4887,7 +4888,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = { {.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"}, {.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"}, {.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"}, - {.id = ALC292_FIXUP_TPT440_DOCK, .name = "tpt440-dock"}, + {.id = ALC292_FIXUP_LENOVO_ULTRA_DOCK, .name = "lenovo-ultra-dock"}, {} };