From patchwork Fri Jan 20 17:58:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Stevens X-Patchwork-Id: 9531879 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 0A9236042D for ; Mon, 23 Jan 2017 08:01:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF38E27CF3 for ; Mon, 23 Jan 2017 08:01:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E32CC27F10; Mon, 23 Jan 2017 08:01:50 +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.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham 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 DDD4227CF3 for ; Mon, 23 Jan 2017 08:01:49 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 30ED9266971; Mon, 23 Jan 2017 09:01:48 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4FDFC266950; Mon, 23 Jan 2017 08:59:29 +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 EA6CB2675FC; Fri, 20 Jan 2017 19:04:18 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by alsa0.perex.cz (Postfix) with ESMTP id 4B7E5267407 for ; Fri, 20 Jan 2017 19:04:14 +0100 (CET) Received: from mintppc.lan ([86.156.215.177]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.179]) with ESMTPA (Nemesis) id 0LvkMO-1cTdWk1WMm-017YMx for ; Fri, 20 Jan 2017 19:04:14 +0100 From: Darren Stevens To: alsa-devel@alsa-project.org Date: Fri, 20 Jan 2017 17:58:01 +0000 (GMT) Message-ID: <497610a85f.700084ba@auth.smtp.1and1.co.uk> User-Agent: YAM/2.9p1 (AmigaOS4; PPC; rv:20140418r7798) MIME-Version: 1.0 X-Provags-ID: V03:K0:Tz1r0+l6gHP1IlP/2nlCqvwhrcYM34I0mzyD/1eFuuMXKu5e+5O TkfsF/Xk6V5DMTQWjqjKM1OAwbP41UpYTsa0rOPP8TiMO3j9b+KFgr2n31LNo98LuTzAzyS Z0eStp/TBWJQxPqJFfY0zzLC29jBVnS29cVeMwezcGcugxbaz2MPz6HnnWCNM32QFachcMu EwxOr2Pt492hoAwXQtvcA== X-UI-Out-Filterresults: notjunk:1; V01:K0:xbBQdEuMCjw=:Qk/Qd6TIhFPMRxOyVDIoxN cj92MD+LP/NZIfcigumnVU4vAEGCocd6gA7jpdvpEovSK8h4YGMoGNhtfTC71QWkwhuMn/Pkp LoDBcepNw7/beMeyMc8c0zwBuou7UM0mZYHxKOvqalKWg0zUxg37WgKmfRJetoAXNQVnfweLT XPhktBi/Y5OugdIzoe2qCByMN/1+p4PN0p37zcXkwNAnkoiov7snU/+P2OcXoaoZjGIgaJFbu RUvH8mKGh3oxKMfUbHC23MXDQe+ImwoK1m3trXbgji6xnzAaGqca3OlNb0ZltII0jmIpxdlAC U3SWmpYaD++uppoKosiCitLKJwX4DNVlGvMUKLTADPnWLSTlj4jhHjcyfmJv2tCu9wj4SLpEa QWnsVmUSyxWQPRKfQSl5cN38mXmgpeAV2aiyTtL8GHMiLYd+QzXUHy5JXaIOiYgfdJch97jSP iVeUWOy5umnbzKEm4QIqCxh7XILun2yBHfvgWBNNTZHHCoMx+JYzUWYQt71jM9h1p5yf2Apvj +/lNnQCSwc4w622cTli/pDVHZU/sQsF3EW4Qs3qzejkoeTg1ZjY77U8N9urSVl4PkCJKb7KdN ayN/kGnYf/ci/GsqWzE4UErbuBmV5wzUbVII80UK1h4PtcXGtPSyy6qO5Kqk1D1A2ADKEpEuH ioHabeJyry4CsJjKKzPKBlIWoApTjBVxcV0uAbHHcwJN3vULmlnttcRSAic+a/el3pi/SbWui K+xY3fVZdW1+ibkc X-Mailman-Approved-At: Mon, 23 Jan 2017 08:25:15 +0100 Subject: [alsa-devel] [PATCH] ALSA: hda/patch_sigmatel: Add AmigaOne X1000 pin configs 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The AmigaOne X1000 has a Sigmatel STAC92HD700 attached to the HD Audio on an ATI SB600. Add the required settings to enable sound. Signed-off-by: Darren Stevens --- const struct hda_fixup *fix, int action) @@ -3883,6 +3901,10 @@ static void stac927x_fixup_volknob(struct hda_codec *codec, .type = HDA_FIXUP_PINS, .v.pins = d965_5st_no_fp_pin_configs, }, + [STAC_NEMO_DEFAULT] = { + .type = HDA_FIXUP_PINS, + .v.pins = nemo_pin_configs, + }, [STAC_DELL_3ST] = { .type = HDA_FIXUP_PINS, .v.pins = dell_3st_pin_configs, @@ -3939,6 +3961,7 @@ static void stac927x_fixup_volknob(struct hda_codec *codec, { .id = STAC_D965_5ST_NO_FP, .name = "5stack-no-fp" }, { .id = STAC_DELL_3ST, .name = "dell-3stack" }, { .id = STAC_DELL_BIOS, .name = "dell-bios" }, + { .id = STAC_NEMO_DEFAULT, .name = "nemo-default" }, { .id = STAC_DELL_BIOS_AMIC, .name = "dell-bios-amic" }, { .id = STAC_927X_VOLKNOB, .name = "volknob" }, {} @@ -3977,6 +4000,8 @@ static void stac927x_fixup_volknob(struct hda_codec *codec, "Intel D965", STAC_D965_5ST), SND_PCI_QUIRK_MASK(PCI_VENDOR_ID_INTEL, 0xff00, 0x2500, "Intel D965", STAC_D965_5ST), + /* Nemo */ + SND_PCI_QUIRK(0x1888, 0x1000, "AmigaOne X1000", STAC_NEMO_DEFAULT), /* volume-knob fixes */ SND_PCI_QUIRK_VENDOR(0x10cf, "FSC", STAC_927X_VOLKNOB), {} /* terminator */ @@ -5036,6 +5061,7 @@ static int patch_stac9872(struct hda_codec *codec) HDA_CODEC_ENTRY(0x83847683, "STAC9221D A2", patch_stac922x), HDA_CODEC_ENTRY(0x83847618, "STAC9227", patch_stac927x), HDA_CODEC_ENTRY(0x83847619, "STAC9227", patch_stac927x), + HDA_CODEC_ENTRY(0x83847638, "STAC92HD700", patch_stac927x), HDA_CODEC_ENTRY(0x83847616, "STAC9228", patch_stac927x), HDA_CODEC_ENTRY(0x83847617, "STAC9228", patch_stac927x), HDA_CODEC_ENTRY(0x83847614, "STAC9229", patch_stac927x), diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 37b70f8..51947a6 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -166,6 +166,7 @@ enum { STAC_D965_VERBS, STAC_DELL_3ST, STAC_DELL_BIOS, + STAC_NEMO_DEFAULT, STAC_DELL_BIOS_AMIC, STAC_DELL_BIOS_SPDIF, STAC_927X_DELL_DMIC, @@ -1360,6 +1361,23 @@ static int stac_create_spdif_mux_ctls(struct hda_codec *codec) {} }; +static const struct hda_pintbl nemo_pin_configs[] = { + { 0x0a, 0x02214020 }, + { 0x0b, 0x02A19080 }, + { 0x0c, 0x0181304E }, + { 0x0d, 0x01014010 }, + { 0x0e, 0x01A19040 }, + { 0x0f, 0x01011012 }, + { 0x10, 0x01016011 }, + { 0x11, 0x01012014 }, + { 0x12, 0x103301F0 }, + { 0x13, 0x00000000 }, + { 0x14, 0x00000000 }, + { 0x21, 0x01442170 }, + { 0x22, 0x00000000 }, + { 0x23, 0x00000000 }, + {} +}; static void stac9200_fixup_panasonic(struct hda_codec *codec,