get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2230095/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2230095,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230095/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429074356.118420-13-herve.codina@bootlin.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260429074356.118420-13-herve.codina@bootlin.com>",
    "date": "2026-04-29T07:43:48",
    "name": "[v2,12/17] ASoC: simple-amplifier: gpio-audio-amp: Add support for bypass gpio",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "94e5e53c6d923de7b44f28525e71aadb660d0e23",
    "submitter": {
        "id": 81983,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/81983/?format=api",
        "name": "Herve Codina",
        "email": "herve.codina@bootlin.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260429074356.118420-13-herve.codina@bootlin.com/mbox/",
    "series": [
        {
            "id": 502009,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502009/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=502009",
            "date": "2026-04-29T07:43:41",
            "name": "ASoC: Add support for GPIOs driven amplifiers",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502009/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230095/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230095/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-35769-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-gpio@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=wf5qZ9pC;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35769-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=\"wf5qZ9pC\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=185.171.202.116",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bootlin.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g58d253Tcz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:51:18 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 70AE230FE567\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 07:45:49 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 34B783B893B;\n\tWed, 29 Apr 2026 07:44:45 +0000 (UTC)",
            "from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 500003AB299\n\tfor <linux-gpio@vger.kernel.org>; Wed, 29 Apr 2026 07:44:43 +0000 (UTC)",
            "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-04.galae.net (Postfix) with ESMTPS id 30F16C5CD50;\n\tWed, 29 Apr 2026 07:45:26 +0000 (UTC)",
            "from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id 2F2E4601DF;\n\tWed, 29 Apr 2026 07:44:42 +0000 (UTC)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id C0B561072826C;\n\tWed, 29 Apr 2026 09:44:38 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777448685; cv=none;\n b=qNhkL7XGHfflGfN+EVE8hwFI+nvhX7veVVs9G3Cnhs/WNxxUmn0E4iDn+MKCEWeen/LGhwQm1D7mbzgAz3HTvkdDqO1tbr3ORVjFTwWt06I8wq/jADxsZNOCGF9b1U8VbiqkSV5Y1lg8/IQ3L6iL+tOvpLkJXCkf8bk4h8tRabM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777448685; c=relaxed/simple;\n\tbh=VUvxQjxqrGJ95aqwSTD02nv/W6p6NukiI/tlT9PyKbo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=eInkt3wjyoDzKgMTmCfO3Ia1DxDOgpNKXYPWcF8qxj7xzPq+lnQbO8PJprr5/hgu2po0II+Ipu+qQ0isCHXWD0xCxS5RtDzJvW7AKKUwo+Y0SA2SV1IpgZVkUdp8DmBDhGD3eRODj9qLcE0YKa4lj3VKioGFZw15tv+8eqTK8rw=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n spf=pass smtp.mailfrom=bootlin.com;\n dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=wf5qZ9pC; arc=none smtp.client-ip=185.171.202.116",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1777448681; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=wV/IA5SaUiFJcnHQD1RBlfYGOPSCgkC9o3PWpTHKxJ0=;\n\tb=wf5qZ9pCbJ38pZseUphuRMMR9ZhDO4lBBZxGjajsrdXiY2aErET8Tvb+v5W8vH3JE68dkV\n\t5bWNx6vG+/Qz23V4tWxRP4704TqnNPqOnpAQRhF4fI8/O4CcA9jdkmgAe1vjPzmUI7aSNo\n\tKVKF9vP0foP6krwFDf2g/x+hCuIksKRBPneMjPPWRSUFRBl6FfZOPpvEq9bz2e8ndcQN21\n\tMzkAyqUP2MpeBlyzIepbYe7rmydAM0qLx1jCx622JH/8zB7Ka9Q33XysxZJgbWNJlg8E4/\n\tAzFe3zA96w13kln1F6Hn1yWINGPuFQAQk5so6xBylDQZNFk3C8KPEi3aVn+uZg==",
        "From": "Herve Codina <herve.codina@bootlin.com>",
        "To": "Herve Codina <herve.codina@bootlin.com>,\n\tBartosz Golaszewski <brgl@kernel.org>,\n\tLinus Walleij <linusw@kernel.org>,\n\tLiam Girdwood <lgirdwood@gmail.com>,\n\tMark Brown <broonie@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tSaravana Kannan <saravanak@kernel.org>,\n\tJaroslav Kysela <perex@perex.cz>,\n\tTakashi Iwai <tiwai@suse.com>",
        "Cc": "linux-sound@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tChristophe Leroy <christophe.leroy@csgroup.eu>,\n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>",
        "Subject": "[PATCH v2 12/17] ASoC: simple-amplifier: gpio-audio-amp: Add support\n for bypass gpio",
        "Date": "Wed, 29 Apr 2026 09:43:48 +0200",
        "Message-ID": "<20260429074356.118420-13-herve.codina@bootlin.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260429074356.118420-1-herve.codina@bootlin.com>",
        "References": "<20260429074356.118420-1-herve.codina@bootlin.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-gpio@vger.kernel.org",
        "List-Id": "<linux-gpio.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3"
    },
    "content": "A gpio can be used to control the amplifier bypass feature.\n\nAdd support for this bypass gpio in the same way as it has been done for\nthe mute gpio.\n\nSigned-off-by: Herve Codina <herve.codina@bootlin.com>\n---\n sound/soc/codecs/simple-amplifier.c | 21 +++++++++++++++++++--\n 1 file changed, 19 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c\nindex 61d1cbb0661d..1c845272509c 100644\n--- a/sound/soc/codecs/simple-amplifier.c\n+++ b/sound/soc/codecs/simple-amplifier.c\n@@ -24,6 +24,7 @@ struct simple_amp_data {\n #define SIMPLE_AUDIO_SUPPORT_PGA\t\tBIT(0)\n #define SIMPLE_AUDIO_SUPPORT_POWER_SUPPLIES\tBIT(1)\n #define SIMPLE_AUDIO_SUPPORT_MUTE\t\tBIT(2)\n+#define SIMPLE_AUDIO_SUPPORT_BYPASS\t\tBIT(3)\n \n \tconst struct snd_soc_dapm_widget *dapm_widgets;\n \tunsigned int num_dapm_widgets;\n@@ -35,6 +36,7 @@ struct simple_amp {\n \tconst struct simple_amp_data *data;\n \tstruct gpio_desc *gpiod_enable;\n \tstruct simple_amp_single mute;\n+\tstruct simple_amp_single bypass;\n };\n \n static int simple_amp_power_event(struct snd_soc_dapm_widget *w,\n@@ -303,6 +305,12 @@ static int simple_amp_component_probe(struct snd_soc_component *component)\n \t\t\treturn ret;\n \t}\n \n+\tif (simple_amp->bypass.gpio) {\n+\t\tret = simple_amp_single_add_kcontrol(component, &simple_amp->bypass);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n \treturn 0;\n }\n \n@@ -352,8 +360,15 @@ static int simple_amp_probe(struct platform_device *pdev)\n \t\t\treturn ret;\n \t}\n \n+\tif (simple_amp->data->supports & SIMPLE_AUDIO_SUPPORT_BYPASS) {\n+\t\tret = simple_amp_parse_single_gpio(dev, &simple_amp->bypass, \"bypass\");\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n \t/* Set controls name */\n \tsimple_amp->mute.control_name = \"Switch\";\n+\tsimple_amp->bypass.control_name = \"Bypass Switch\";\n \n \treturn devm_snd_soc_register_component(dev,\n \t\t\t\t\t       &simple_amp_component_driver,\n@@ -370,7 +385,8 @@ static const struct simple_amp_data simple_audio_amplifier_data = {\n static const struct simple_amp_data simple_audio_mono_pga_data = {\n \t.supports\t\t= SIMPLE_AUDIO_SUPPORT_PGA |\n \t\t\t\t  SIMPLE_AUDIO_SUPPORT_POWER_SUPPLIES |\n-\t\t\t\t  SIMPLE_AUDIO_SUPPORT_MUTE,\n+\t\t\t\t  SIMPLE_AUDIO_SUPPORT_MUTE |\n+\t\t\t\t  SIMPLE_AUDIO_SUPPORT_BYPASS,\n \t.dapm_widgets\t\t= simple_amp_mono_pga_dapm_widgets,\n \t.num_dapm_widgets\t= ARRAY_SIZE(simple_amp_mono_pga_dapm_widgets),\n \t.dapm_routes\t\t= simple_amp_mono_pga_dapm_routes,\n@@ -380,7 +396,8 @@ static const struct simple_amp_data simple_audio_mono_pga_data = {\n static const struct simple_amp_data simple_audio_stereo_pga_data = {\n \t.supports\t\t= SIMPLE_AUDIO_SUPPORT_PGA |\n \t\t\t\t  SIMPLE_AUDIO_SUPPORT_POWER_SUPPLIES |\n-\t\t\t\t  SIMPLE_AUDIO_SUPPORT_MUTE,\n+\t\t\t\t  SIMPLE_AUDIO_SUPPORT_MUTE |\n+\t\t\t\t  SIMPLE_AUDIO_SUPPORT_BYPASS,\n \t.dapm_widgets\t\t= simple_amp_stereo_pga_dapm_widgets,\n \t.num_dapm_widgets\t= ARRAY_SIZE(simple_amp_stereo_pga_dapm_widgets),\n \t.dapm_routes\t\t= simple_amp_stereo_pga_dapm_routes,\n",
    "prefixes": [
        "v2",
        "12/17"
    ]
}