Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/27656/?format=api
{ "id": 27656, "url": "http://patchwork.ozlabs.org/api/patches/27656/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20090526123412.17472.80351.stgit@terra/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20090526123412.17472.80351.stgit@terra>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20090526123412.17472.80351.stgit@terra/", "date": "2009-05-26T12:34:12", "name": "[V5,4/5] Support for AC97 on Phytec pmc030 base board.", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "5a93fd9221be7bc5d7a9d9ab4dbbedb2c0b1c7b8", "submitter": { "id": 375, "url": "http://patchwork.ozlabs.org/api/people/375/?format=api", "name": "jonsmirl@gmail.com", "email": "jonsmirl@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20090526123412.17472.80351.stgit@terra/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/27656/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/27656/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "patchwork-incoming@bilbo.ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "patchwork-incoming@ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Received": [ "from ozlabs.org (ozlabs.org [203.10.76.45])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client CN \"mx.ozlabs.org\",\n\tIssuer \"CA Cert Signing Authority\" (verified OK))\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 9040AB7067\n\tfor <patchwork-incoming@bilbo.ozlabs.org>;\n\tTue, 26 May 2009 22:42:02 +1000 (EST)", "by ozlabs.org (Postfix)\n\tid 778DBDF06A; Tue, 26 May 2009 22:36:32 +1000 (EST)", "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id 75F24DF069\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 26 May 2009 22:36:32 +1000 (EST)", "from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29])\n\tby ozlabs.org (Postfix) with ESMTP id 22C26DE0D4\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 26 May 2009 22:34:16 +1000 (EST)", "by yx-out-2324.google.com with SMTP id 8so1764145yxb.39\n\tfor <linuxppc-dev@ozlabs.org>; Tue, 26 May 2009 05:34:14 -0700 (PDT)", "by 10.90.81.11 with SMTP id e11mr7309291agb.110.1243341254644;\n\tTue, 26 May 2009 05:34:14 -0700 (PDT)", "from terra (c-76-109-159-38.hsd1.fl.comcast.net [76.109.159.38])\n\tby mx.google.com with ESMTPS id\n\t21sm16998597agd.11.2009.05.26.05.34.13\n\t(version=TLSv1/SSLv3 cipher=RC4-MD5);\n\tTue, 26 May 2009 05:34:14 -0700 (PDT)", "from localhost ([127.0.0.1] helo=[127.0.1.1])\n\tby terra with esmtp (Exim 4.69) (envelope-from <jonsmirl@gmail.com>)\n\tid 1M8vrA-0004Ze-DQ; Tue, 26 May 2009 08:34:12 -0400" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; \n\th=domainkey-signature:received:received:received:subject:to:from:date\n\t:message-id:in-reply-to:references:user-agent:mime-version\n\t:content-type:content-transfer-encoding;\n\tbh=BL7ItDcwC2xuyyp0ozJkhcN5yRgWeCS+NpZORg55Q+o=;\n\tb=T4LLlKSJpIb3NZKeMQWCHdyDP/b1NM6b2wZh866ZZX8SBkCrSydOzOaIK1j5Rrvdsu\n\tVVNIeOVES0xTQhNtqybP/uswMpIwHsHegMvoS0Fa6Fv7BQ6GcJB+EgNGQ6ofWT0S9MFX\n\tst6sLJYIM/wbTvB7roEOjgYPh1o1KEV6CRDtM=", "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\n\th=subject:to:from:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-type:content-transfer-encoding;\n\tb=oFX8ZzhKhzU6tL3Y0q4C028ZfVZrNhT1EqoId8blkkMG63LkH1uqc31sYxn1nzRcXj\n\tHteenVFsIG+jkbsbKoOdEmy829+uEmdROGEefV335l59AMHyYTX7yPaIx/Uyg/PliKct\n\toW4H1SDR3EKMtJ3GdWkpmZ2rCxcHWUKM2TD+k=", "Subject": "[PATCH V5 4/5] Support for AC97 on Phytec pmc030 base board.", "To": "grant.likely@secretlab.ca, linuxppc-dev@ozlabs.org,\n\talsa-devel@alsa-project.org, broonie@sirena.org.uk, timur@freescale.com", "From": "Jon Smirl <jonsmirl@gmail.com>", "Date": "Tue, 26 May 2009 08:34:12 -0400", "Message-ID": "<20090526123412.17472.80351.stgit@terra>", "In-Reply-To": "<20090526123235.17472.73912.stgit@terra>", "References": "<20090526123235.17472.73912.stgit@terra>", "User-Agent": "StGit/0.14.3.366.gf979", "MIME-Version": "1.0", "X-BeenThere": "linuxppc-dev@ozlabs.org", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>", "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>", "List-Post": "<mailto:linuxppc-dev@ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>", "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org" }, "content": "Support for AC97 on Phytec pmc030 base board. A wm9712 AC97 codec is used.\n\nSigned-off-by: Jon Smirl <jonsmirl@gmail.com>\n---\n sound/soc/fsl/Kconfig | 7 +++\n sound/soc/fsl/Makefile | 3 +\n sound/soc/fsl/pcm030-audio-fabric.c | 90 +++++++++++++++++++++++++++++++++++\n 3 files changed, 100 insertions(+), 0 deletions(-)\n create mode 100644 sound/soc/fsl/pcm030-audio-fabric.c", "diff": "diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig\nindex 3bce952..79579ae 100644\n--- a/sound/soc/fsl/Kconfig\n+++ b/sound/soc/fsl/Kconfig\n@@ -39,4 +39,11 @@ config SND_SOC_MPC5200_AC97\n \thelp\n \t Say Y here to support the MPC5200 PSCs in AC97 mode.\n \n+config SND_MPC52xx_SOC_PCM030\n+\ttristate \"SoC AC97 Audio support for Phytec pcm030 and WM9712\"\n+\tdepends on PPC_MPC5200_SIMPLE\n+\tselect SND_SOC_MPC5200_AC97\n+\tselect SND_SOC_WM9712\n+\thelp\n+\t Say Y if you want to add support for sound on the Phytec pcm030 baseboard.\n \ndiff --git a/sound/soc/fsl/Makefile b/sound/soc/fsl/Makefile\nindex 14631a1..66d88c8 100644\n--- a/sound/soc/fsl/Makefile\n+++ b/sound/soc/fsl/Makefile\n@@ -15,3 +15,6 @@ obj-$(CONFIG_SND_MPC52xx_DMA) += mpc5200_dma.o\n obj-$(CONFIG_SND_SOC_MPC5200_I2S) += mpc5200_psc_i2s.o\n obj-$(CONFIG_SND_SOC_MPC5200_AC97) += mpc5200_psc_ac97.o\n \n+# MPC5200 Machine Support\n+obj-$(CONFIG_SND_MPC52xx_SOC_PCM030) += pcm030-audio-fabric.o\n+\ndiff --git a/sound/soc/fsl/pcm030-audio-fabric.c b/sound/soc/fsl/pcm030-audio-fabric.c\nnew file mode 100644\nindex 0000000..8766f7a\n--- /dev/null\n+++ b/sound/soc/fsl/pcm030-audio-fabric.c\n@@ -0,0 +1,90 @@\n+/*\n+ * Phytec pcm030 driver for the PSC of the Freescale MPC52xx\n+ * configured as AC97 interface\n+ *\n+ * Copyright 2008 Jon Smirl, Digispeaker\n+ * Author: Jon Smirl <jonsmirl@gmail.com>\n+ *\n+ * This file is licensed under the terms of the GNU General Public License\n+ * version 2. This program is licensed \"as is\" without any warranty of any\n+ * kind, whether express or implied.\n+ */\n+\n+#include <linux/init.h>\n+#include <linux/module.h>\n+#include <linux/interrupt.h>\n+#include <linux/device.h>\n+#include <linux/delay.h>\n+#include <linux/of_device.h>\n+#include <linux/of_platform.h>\n+#include <linux/dma-mapping.h>\n+\n+#include <sound/core.h>\n+#include <sound/pcm.h>\n+#include <sound/pcm_params.h>\n+#include <sound/initval.h>\n+#include <sound/soc.h>\n+#include <sound/soc-of-simple.h>\n+\n+#include \"mpc5200_dma.h\"\n+#include \"mpc5200_psc_ac97.h\"\n+#include \"../codecs/wm9712.h\"\n+\n+static struct snd_soc_device device;\n+static struct snd_soc_card card;\n+\n+static struct snd_soc_dai_link pcm030_fabric_dai[] = {\n+{\n+\t.name = \"AC97\",\n+\t.stream_name = \"AC97 Analog\",\n+\t.codec_dai = &wm9712_dai[WM9712_DAI_AC97_HIFI],\n+\t.cpu_dai = &psc_ac97_dai[MPC5200_AC97_NORMAL],\n+},\n+{\n+\t.name = \"AC97\",\n+\t.stream_name = \"AC97 IEC958\",\n+\t.codec_dai = &wm9712_dai[WM9712_DAI_AC97_AUX],\n+\t.cpu_dai = &psc_ac97_dai[MPC5200_AC97_SPDIF],\n+},\n+};\n+\n+static __init int pcm030_fabric_init(void)\n+{\n+\tstruct platform_device *pdev;\n+\tint rc;\n+\n+\tif (!machine_is_compatible(\"phytec,pcm030\"))\n+\t\treturn -ENODEV;\n+\n+\tcard.platform = &mpc5200_audio_dma_platform;\n+\tcard.name = \"pcm030\";\n+\tcard.dai_link = pcm030_fabric_dai;\n+\tcard.num_links = ARRAY_SIZE(pcm030_fabric_dai);\n+\n+\tdevice.card = &card;\n+\tdevice.codec_dev = &soc_codec_dev_wm9712;\n+\n+\tpdev = platform_device_alloc(\"soc-audio\", 1);\n+\tif (!pdev) {\n+\t\tpr_err(\"pcm030_fabric_init: platform_device_alloc() failed\\n\");\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tplatform_set_drvdata(pdev, &device);\n+\tdevice.dev = &pdev->dev;\n+\n+\trc = platform_device_add(pdev);\n+\tif (rc) {\n+\t\tpr_err(\"pcm030_fabric_init: platform_device_add() failed\\n\");\n+\t\treturn -ENODEV;\n+\t}\n+\treturn 0;\n+}\n+\n+module_init(pcm030_fabric_init);\n+\n+\n+MODULE_AUTHOR(\"Jon Smirl <jonsmirl@gmail.com>\");\n+MODULE_DESCRIPTION(DRV_NAME \": mpc5200 pcm030 fabric driver\");\n+MODULE_LICENSE(\"GPL\");\n+\n", "prefixes": [ "V5", "4/5" ] }