get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229277,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229277/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260428-asoc-fsl-xcvr-event-generation-v1-1-f21cf0812c4f@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.1/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/"
    },
    "msgid": "<20260428-asoc-fsl-xcvr-event-generation-v1-1-f21cf0812c4f@gmail.com>",
    "date": "2026-04-28T03:07:08",
    "name": "ASoC: fsl_xcvr: Fix event generation for cached controls",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6e9aa706b97014afb89ac6dccfd736b2bc0865f4",
    "submitter": {
        "id": 93004,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/93004/?format=api",
        "name": "Cássio Gabriel",
        "email": "cassiogabrielcontato@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260428-asoc-fsl-xcvr-event-generation-v1-1-f21cf0812c4f@gmail.com/mbox/",
    "series": [
        {
            "id": 501752,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501752/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501752",
            "date": "2026-04-28T03:07:08",
            "name": "ASoC: fsl_xcvr: Fix event generation for cached controls",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501752/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229277/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229277/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-20204-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cWxElCeO;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20204-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::112b\"",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cWxElCeO;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::112b; helo=mail-yw1-x112b.google.com;\n envelope-from=cassiogabrielcontato@gmail.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4QN32smGz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 13:07:31 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g4QMx55dPz2yr0;\n\tTue, 28 Apr 2026 13:07:25 +1000 (AEST)",
            "from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com\n [IPv6:2607:f8b0:4864:20::112b])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g4QMv6NBLz2yVZ\n\tfor <linuxppc-dev@lists.ozlabs.org>; Tue, 28 Apr 2026 13:07:22 +1000 (AEST)",
            "by mail-yw1-x112b.google.com with SMTP id\n 00721157ae682-79a60975dc5so116227527b3.0\n        for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 27 Apr 2026 20:07:22 -0700 (PDT)",
            "from [192.168.1.18] (177-4-161-87.user3p.v-tal.net.br.\n [177.4.161.87])\n        by smtp.gmail.com with ESMTPSA id\n 00721157ae682-7bcf05e622esm8834257b3.17.2026.04.27.20.07.15\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 27 Apr 2026 20:07:19 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777345645;\n\tcv=none;\n b=W/CnIQSJmRX11yEiHScHV0z92uUrmrkSOmPhZy2OoA/KuNG91DpS3Db13ng48F0FHhXXPGu/nWOGy61EmlFrTP2c/rpH7IreczzkG4B/lYE+tfmpiTYJH/I9gpTTeip8blmAxbXDAXU8V8Nk0P2xTX1Z4iQSQuf9eih6QwFGW7vOdjnvAJ105NK59+xjK4tFwyQe4VJlcxrHMC8izG4Zo6cOqz6UHuvVax5NZwM7pmA+CUem4Zbb63Xqj7dyyNWakebxsOlBaf0q0wdDVniblUPx+FzaHlIgdSGFiFj4ttTJPrYwg076bG8njsMsb8u3HJDB7b+TtyGRkVbmSLZDaA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777345645; c=relaxed/relaxed;\n\tbh=xy+tm9bENqCqZp9SYs+pOo5djm/sVYYFvKa2wEp3fzY=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc;\n b=hlCwxYy1oDIkdUzOg9zNsQ1UyLatI28Z3ApJJtR1bj64QAxq6faxWiaFF9hvyIjNfjOPBJnrYlTVvVkHCpnKr59xgNOw76/AzvhtqC20PqqgRargw0ZRzj03MOBP5no8kLE8O4wmp0n7DSVq6GOtfVVOfmcQHK7b4w8twgxEWNtyGU4+/DyQGLx/++icWSoSrnLyt3xK2Gqmsrz0PzKhpfDAmt80uGnvfJTxI1aeLVfhysb5kCtu3sYDnjPB/lzw3IBtcO2aFHXft14BgUVOWTWV/urGNnwrBeHzAj011qvA/JRQPhdprbhOMKal9x+iMhI9rHh2Nb1P6ZynbA1Sug==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=cWxElCeO; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::112b; helo=mail-yw1-x112b.google.com;\n envelope-from=cassiogabrielcontato@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777345640; x=1777950440;\n darn=lists.ozlabs.org;\n        h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n         :date:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=xy+tm9bENqCqZp9SYs+pOo5djm/sVYYFvKa2wEp3fzY=;\n        b=cWxElCeOZlWlg9V7Bo8Ogu6ABYI/uvbWiexf75UPAswBojONAxj8uEFXcu2nr2iVPe\n         NmYOY5fllGvOXfq7KRUzHWL2rw+XuReZa8iUmTwUTzkLD3L9rhhS2w/WnFPTOtiI4Jnu\n         6Mgq+7dhA5xqulHT7dlwEBgqxURPCpSiLVyMNlIkYe2biZZNrwEAzA622hjhNPzYqTFF\n         6/rkr1a9f2ZnSv89zOPsESqEvGgoYBZZQXsIu7MIxeAqE2jC0O3DwNZoVnZuFDf/WtRX\n         qAFNg1VpuhHfnlTHJRXBnS3UPgm/4Gu68OY6xAIXF71PiWCdJDTDomGHOA4fMBfVnoNk\n         8xTQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777345640; x=1777950440;\n        h=cc:to:message-id:content-transfer-encoding:mime-version:subject\n         :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=xy+tm9bENqCqZp9SYs+pOo5djm/sVYYFvKa2wEp3fzY=;\n        b=s6IKO2DzuRDEYNgipzWEzx4UjO3/9SUA5D/SmOkYeq2Q0VVMjw3xpPmK1GAGN9kLuC\n         ciive5bIvZm8dc4VjC1oWTdpQqkVhB/BU+YQoZGM/Bu2HKqHWtUl9gwX3rFdok+KefuY\n         Gp8epDFCIXHYPvcY8v0iqsCKRwVazJP/YPdLFYhezRJzCVioRH5hsfnY0P0NjfKQ4UVj\n         0VxgANt2tkaIc727KWIVJtlL9mayi7hTkLTJpuHJFU0V2rqpuAtB6kyuJLSottNCsbi/\n         hLdoOJF5CTZw0UydcM+UzdfYw7e6mNPeylvCjEEsykdKVDPovMritXPHG4wJX8+GMe9c\n         rPCA==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ8Odqrw74LBCX+P2TIeFM6n984AsfEoR3BVL5SSb/foLDvttbtkc4V7SgRcsvVXHbjjOLzNNLm+nf2KwKY=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YyF0SqijBLtMZ0lwjl3YAU+UXCy8U7eDuxOvvVnlFMMDvdVVpcw\n\t49+nqf7FRMA7yKgtChrATgjKbrRVqul9eUPFF8xYByT8PRIRACQG2Spyn0P7WJ9d",
        "X-Gm-Gg": "AeBDievYkRw3rL/EvIvMexMEqV0MrDy3eKjFW73NjDMja/+UF3hp6128XISsy+SUt6L\n\tIrrnEsfpeKTRzj3WNzCHO+qWHHBQMSrfsUmWOVT+j2Kifxkkhate8S5jTpu7rbAlsJDbCb+4xqP\n\tMUe8qAfzVxYOuUZeWjD6q1IIGQNMPF5TqQJ6T168sEFBUzOvOQT4bYliYd3SOQXaTLA3Idi3/fB\n\tf+FsBWoadjZyfOf4rpmOPLTZtfNQ3Mj30+N+TXC/X76dT/nSzqtKBedZRSTpEMXtuIM8vDIVIcr\n\tkFCJvNTkAscWt5OHUN3dc1AXFp7VS8pFyGKjNjdM89Nee5a3eqFcYQRNmEroJZKFIN9YbSlAoA2\n\tabz5K8uCsLdXaIOiQALmZyhRcHuxM542Gk3TcjWDJG5EaGFuFZVHeF1TrZkseqto5WueCHFC1L6\n\ttvYxo8+3NiNg3dqiAiOzhP43xHfO8tr0EMu69V55lgk2HyZqywdwO2/Ec8eHBNWq6Byk1qnOFtH\n\tvZynbf68j/P",
        "X-Received": "by 2002:a05:690c:c24d:b0:7ba:eefe:9fa1 with SMTP id\n 00721157ae682-7bcf52207camr11515787b3.6.1777345639900;\n        Mon, 27 Apr 2026 20:07:19 -0700 (PDT)",
        "From": "=?utf-8?q?C=C3=A1ssio_Gabriel?= <cassiogabrielcontato@gmail.com>",
        "Date": "Tue, 28 Apr 2026 00:07:08 -0300",
        "Subject": "[PATCH] ASoC: fsl_xcvr: Fix event generation for cached controls",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "8bit",
        "Message-Id": "\n <20260428-asoc-fsl-xcvr-event-generation-v1-1-f21cf0812c4f@gmail.com>",
        "X-B4-Tracking": "v=1; b=H4sIAAAAAAAC/yXNwQrCMBCE4Vcpe3ahRmvVVxEPcTupEUllN4ZC6\n bsb9fgd5p+FDBphdG4WUpRocUoV201DcvdpBMehmlzrDu3e9extEg725FmKMgpS5hEJ6nOdsgt\n dL93uNMAdqUZeihDn38Hl+re9bw9I/lZpXT8IVeqlggAAAA==",
        "X-Change-ID": "20260427-asoc-fsl-xcvr-event-generation-2f57c539de28",
        "To": "Shengjiu Wang <shengjiu.wang@gmail.com>, Xiubo Li <Xiubo.Lee@gmail.com>,\n Fabio Estevam <festevam@gmail.com>, Nicolin Chen <nicoleotsuka@gmail.com>,\n Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>,\n Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,\n Viorel Suman <viorel.suman@nxp.com>",
        "Cc": "linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n  linux-kernel@vger.kernel.org,\n =?utf-8?q?C=C3=A1ssio_Gabriel?= <cassiogabrielcontato@gmail.com>",
        "X-Mailer": "b4 0.15.2",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2246;\n i=cassiogabrielcontato@gmail.com; h=from:subject:message-id;\n bh=M/DH4mZdkREffdwKLGoyCTZnaJGwxzLtvZ0z5kxN6cI=;\n b=owGbwMvMwCV2IdZeKur/u2bG02pJDJkfVJKXHzPrqixb3+9XfsVgqkItf7+RfpXZtTP9Deq/S\n jZfifPrKGVhEONikBVTZFmdtMhyT9eDq/VxKzxg5rAygQxh4OIUgIm8tGdk2Lwz0nZ2ey1L96Iz\n u3XPnJoS4KWwbMpO/92bpKpvuPkHSjH8d2rKLBb46RjkuLldvGmG3OGflg65Mp08TbM53vQbC1c\n yAQA=",
        "X-Developer-Key": "i=cassiogabrielcontato@gmail.com; a=openpgp;\n fpr=AB62A239BC8AE0D57F5EA848D05D3F1A5AFFEE83",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "ALSA controls should return 1 from a put callback when the control\nvalue changes. fsl_xcvr_capds_put() and fsl_xcvr_tx_cs_put() both\nupdate cached control data but always return 0, so ALSA suppresses\nchange notifications for the Capabilities Data Structure and playback\nIEC958 channel status controls.\n\nCompare the old and new cached values before copying the new data,\nand return whether the control value changed.\n\nFixes: 28564486866f (\"ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver\")\nSigned-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>\n---\n sound/soc/fsl/fsl_xcvr.c | 17 +++++++++++++----\n 1 file changed, 13 insertions(+), 4 deletions(-)\n\n\n---\nbase-commit: 98421d94a1a6dcc3e8582eb62bedeccecda93339\nchange-id: 20260427-asoc-fsl-xcvr-event-generation-2f57c539de28\n\nBest regards,\n--  \nCássio Gabriel <cassiogabrielcontato@gmail.com>",
    "diff": "diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c\nindex ee16cf681488..6677d3bf36ec 100644\n--- a/sound/soc/fsl/fsl_xcvr.c\n+++ b/sound/soc/fsl/fsl_xcvr.c\n@@ -228,10 +228,14 @@ static int fsl_xcvr_capds_put(struct snd_kcontrol *kcontrol,\n {\n \tstruct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);\n \tstruct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);\n+\tint changed;\n \n-\tmemcpy(xcvr->cap_ds, ucontrol->value.bytes.data, FSL_XCVR_CAPDS_SIZE);\n+\tchanged = memcmp(xcvr->cap_ds, ucontrol->value.bytes.data,\n+\t\t\t sizeof(xcvr->cap_ds)) != 0;\n+\tmemcpy(xcvr->cap_ds, ucontrol->value.bytes.data,\n+\t       sizeof(xcvr->cap_ds));\n \n-\treturn 0;\n+\treturn changed;\n }\n \n static struct snd_kcontrol_new fsl_xcvr_earc_capds_kctl = {\n@@ -1040,10 +1044,15 @@ static int fsl_xcvr_tx_cs_put(struct snd_kcontrol *kcontrol,\n {\n \tstruct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);\n \tstruct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);\n+\tint changed;\n \n-\tmemcpy(xcvr->tx_iec958.status, ucontrol->value.iec958.status, 24);\n+\tchanged = memcmp(xcvr->tx_iec958.status,\n+\t\t\t ucontrol->value.iec958.status,\n+\t\t\t sizeof(xcvr->tx_iec958.status)) != 0;\n+\tmemcpy(xcvr->tx_iec958.status, ucontrol->value.iec958.status,\n+\t       sizeof(xcvr->tx_iec958.status));\n \n-\treturn 0;\n+\treturn changed;\n }\n \n static struct snd_kcontrol_new fsl_xcvr_rx_ctls[] = {\n",
    "prefixes": []
}