Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/2222207/?format=api
{ "id": 2222207, "url": "http://patchwork.ozlabs.org/api/1.1/covers/2222207/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/cover/20260410200530.171323-1-piyushpatle228@gmail.com/", "project": { "id": 21, "url": "http://patchwork.ozlabs.org/api/1.1/projects/21/?format=api", "name": "Linux Tegra Development", "link_name": "linux-tegra", "list_id": "linux-tegra.vger.kernel.org", "list_email": "linux-tegra@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260410200530.171323-1-piyushpatle228@gmail.com>", "date": "2026-04-10T20:05:21", "name": "[v3,0/2] ASoC: tegra210: simplify ADX/AMX byte map get/put logic", "submitter": { "id": 92665, "url": "http://patchwork.ozlabs.org/api/1.1/people/92665/?format=api", "name": "Piyush Patle", "email": "piyushpatle228@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/cover/20260410200530.171323-1-piyushpatle228@gmail.com/mbox/", "series": [ { "id": 499502, "url": "http://patchwork.ozlabs.org/api/1.1/series/499502/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=499502", "date": "2026-04-10T20:05:21", "name": "ASoC: tegra210: simplify ADX/AMX byte map get/put logic", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/499502/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2222207/comments/", "headers": { "Return-Path": "\n <linux-tegra+bounces-13696-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-tegra@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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=UdcdsVAd;\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-tegra+bounces-13696-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"UdcdsVAd\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.173", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsnvW376Yz1yGb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 06:09:27 +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 4B0AE304EA93\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 20:05:42 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 2CCF8391E4D;\n\tFri, 10 Apr 2026 20:05:42 +0000 (UTC)", "from mail-pl1-f173.google.com (mail-pl1-f173.google.com\n [209.85.214.173])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 872913845DF\n\tfor <linux-tegra@vger.kernel.org>; Fri, 10 Apr 2026 20:05:40 +0000 (UTC)", "by mail-pl1-f173.google.com with SMTP id\n d9443c01a7336-2b2429f98d0so16419555ad.2\n for <linux-tegra@vger.kernel.org>;\n Fri, 10 Apr 2026 13:05:40 -0700 (PDT)", "from lord-daniel-VivoBook-ASUSLaptop-K3502ZA-S3502ZA..\n ([2405:201:31:d01f:a107:5c92:b303:910a])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b2d4dabc08sm39569975ad.5.2026.04.10.13.05.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 13:05:39 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775851541; cv=none;\n b=gi2mUwEn4KEPP2lzhlf++2N6pTHi3HlL4yajbogYJ8+xYCNNzUZ/jJgFeC1ENIY3NvGtzm0VbcJujFMuaxukUq7vAH3xYxbNFlmUUDLu4RT8jtVfvAh+sjT55VFGvMS2S7AlvgN4t+5LY7PL4I44LINJQy3/lKXEsMdgsIW3nnc=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775851541; c=relaxed/simple;\n\tbh=jYBaZSk47h49/UqT8e3PRQ67bwmqVz7cqB9iYdCKRk0=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=KKUUD1xm9RDo5AtelA1atCfajR7hgR7+Alb8dTugt6U/JebhbtNC87BGE2pSzOxm37AAvgGbh9RHBI1sINOe3kxVzbRkFLHD+2AYXPvka8fFvEGobu3fgPY/I5IoF80LeO3YMmOBZkhQzoEx/qQezTsjflwuCe7CIHlqwDgccf8=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=UdcdsVAd; arc=none smtp.client-ip=209.85.214.173", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775851540; x=1776456340;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=wy1C3mjVH82pIZr4ZclKeuxKDX447EFpvhR4x2iEAno=;\n b=UdcdsVAd9LXtH6sXNs0AR91bj5d0EqTSFCw0cd5NfuDCY7ss2NWzYH1PGhIoL2fcN/\n aMmWNArWp3dTR0NcBy6RsE5MyObHLDXrizJW7L2OIWwwuSKyTdLN48MhGk9bRJrjlVC0\n 9Dsf8cPtvknvCXSAN8yE3M1fjQqj+Mk/9eUCXrfKDnovPVDLMDnTgt0qt7EGq2MhPAdV\n 9Ne4nqdxhVgwxID4wNYy/9cRpGxg2l0yvSLVr4ZdJt8PNF/anLVxmUcc7gdmXaIf0GRu\n ZAM642dibiw7+M/Vd2kThHriw2FoKEK65K1ccyenCMosLEGzwYKmh2ceC7IO2uPgB4Gu\n T0UA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775851540; x=1776456340;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=wy1C3mjVH82pIZr4ZclKeuxKDX447EFpvhR4x2iEAno=;\n b=Zp35FDVFo5a6SrGl2/MHpmQsse2Dzx+g6Osx8pJI4Pkn1we4lOfsliRdkvYsnu0z3d\n hs26MbbZSuqOdJ+gdKpga1Xg1nZGCeOSasM6Rj0rGnqcGinrSWTJFcfc3522f4P1aRJH\n ps/CwTQL1ZM+tsYI/kT5h09StY4HZFiOycXYPR4skKUIGdRXrH1cNDACjp7KcVf0OJpJ\n nyONKzOnG7nUNfE7/ePsOCwb2UNK6aD2gYKMkk0sQyW3wvKepWt51wxLLAc5oXAnGTF6\n jxCcxZVg8eFtK8iosmN8AqqerwhcWwB8qC/QTh0M28XBH13zkEsozX7FHEpy2N489T37\n rnWA==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXqJuMuJvbVfZ+gqS7at4+uEnRVgikg82Y4cHjOyuaAMXJ/0IG+4OH7PXgTr7vDhrL7RFIATxC9FnbyWA==@vger.kernel.org", "X-Gm-Message-State": "AOJu0YybXqiUaTrGyT46Itw3MLMHay8uXwB/MXqOj+DrM5SqYI+jZbbI\n\twA9FAye7pGo91xQjUaKNAzJhioyMIPrpKheYS3nBAWFV78A57pDJTW+ts4ATWQGoC1I=", "X-Gm-Gg": "AeBDievwLVpSuJDTp3/Q8ZURN67KTitMZ97a6DQ9vZcRzAgotEaVbWSy6t4T8UdcS43\n\tuAGABFbFhlR8pM37+xggTpz6EhoENsmVR9onSc8kncE6EuBqfzVPloozWVMgP2nyYXBtMC3CnZX\n\tUPMSSbb3m6z8K+HBTJUZ1j+RCPwmVBls0sOMJL2/sqmKgASbyGx7SWmJ5QKXfpf3WybOB7xWB9F\n\tHBGkwYnX3BlPt3aLDhZU+P7aYlXeXYN2JOn7Nv2J2yIykT8Y0/vWYsCLxCVcxWmWUfsCtAM/Ks7\n\tgRCCIbPvV/76vhFxBcFHn73SLTmv8TVg7rdNtheubc3LXV38biDJjye2qzchE1qBHHMdUXLEzHx\n\t21s+2u9mcxe1hkiEnfWYFLVE+m1tCzrHIc/HUp0qu6LTBLKVkmDF7ndeIo+R1RoObNCXeByJlow\n\tk9XRTmzcuIvwJG15iHy9LM+zwXcMC3bjECKSBb+SVSUKhIgF5UyF/GiibezU2oIdztdAF++44na\n\t+EtSx3SkHdHsd7RIisWI0G34Bq+8N7gkptuH+Dj", "X-Received": "by 2002:a17:903:1207:b0:2b2:49a7:a5bd with SMTP id\n d9443c01a7336-2b2d591d9dcmr47814325ad.1.1775851539751;\n Fri, 10 Apr 2026 13:05:39 -0700 (PDT)", "From": "Piyush Patle <piyushpatle228@gmail.com>", "To": "Mark Brown <broonie@kernel.org>", "Cc": "Liam Girdwood <lgirdwood@gmail.com>,\n\tJaroslav Kysela <perex@perex.cz>,\n\tTakashi Iwai <tiwai@suse.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tJonathan Hunter <jonathanh@nvidia.com>,\n\tSheetal <sheetal@nvidia.com>,\n\tKuninori Morimoto <kuninori.morimoto.gx@renesas.com>,\n\tlinux-sound@vger.kernel.org,\n\tlinux-tegra@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH v3 0/2] ASoC: tegra210: simplify ADX/AMX byte map get/put\n logic", "Date": "Sat, 11 Apr 2026 01:35:21 +0530", "Message-ID": "<20260410200530.171323-1-piyushpatle228@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "Precedence": "bulk", "X-Mailing-List": "linux-tegra@vger.kernel.org", "List-Id": "<linux-tegra.vger.kernel.org>", "List-Subscribe": "<mailto:linux-tegra+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-tegra+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "The Tegra210 ADX and AMX drivers both keep their \"Byte Map N\" ALSA\ncontrol state as a byte-packed u32 map[] array along with a separate\nbyte_mask[] bitmap. This is because the control range exposed to\nuserspace is [0, 256], where 256 is the \"disabled\" sentinel and\ndoes not fit in a byte, so the two arrays have to be cross-checked\non every get()/put().\n\nThis series stores each slot as a u16 holding the user-visible\nvalue directly, turning get_byte_map() into a direct return and\nput_byte_map() into a compare-and-store. The hardware-facing packed\nRAM word and the IN_BYTE_EN / OUT_BYTE_EN enable masks are computed\non the fly inside each write_map_ram() callback, which is the only\nplace that needs to know the hardware layout. The byte_mask[] field\nis kept in the driver struct but allocated dynamically in probe()\nusing devm_kcalloc() with soc_data->byte_mask_size, and zeroed +\nrecomputed on each write_map_ram() call.\n\nThere is no userspace-visible ABI change. Control declarations,\nranges, initial values and handling of out-of-range writes is\npreserved by treating values outside [0, 255] as disabled (256),\nmatching previous behavior. As a side effect each patch also fixes\na latent bug in put_byte_map() where an enabled-to-enabled value\nchange was not persisted.\n\nThe packed RAM word construction is also updated to ensure the shift\noperates on a u32 value, avoiding potential undefined behavior due\nto signed integer promotion.\n\nAddresses TODO comments left in tegra210_{adx,amx}_get_byte_map().\n\nChanges since v2:\n - Move byte_mask allocation back to probe() with devm_kcalloc()\n using soc_data->byte_mask_size; revert write_map_ram() to void\n and runtime_resume() to returning 0. Suggested by Jon Hunter.\n - Fix bits_per_mask: use BITS_PER_TYPE(*byte_mask) instead of the\n incorrect BITS_PER_TYPE(*map) * BITS_PER_BYTE. Reported by\n Mark Brown.\n - Drop <linux/slab.h> include (no longer needed without kfree).\n\nChanges since v1:\n - Use dynamic sizing via soc_data->byte_mask_size instead of\n chip-specific constants. Suggested by Sheetal.\n - Replace magic numbers with TEGRA_{ADX,AMX}_SLOTS_PER_WORD\n and use BITS_PER_BYTE / BITS_PER_TYPE(). Suggested by Sheetal.\n - Add <linux/bits.h> include.\n\nPatch 1/2: ASoC: tegra210_adx: simplify byte map get/put logic\nPatch 2/2: ASoC: tegra210_amx: simplify byte map get/put logic\n\nPiyush Patle (2):\n ASoC: tegra210_adx: simplify byte map get/put logic\n ASoC: tegra210_amx: simplify byte map get/put logic\n\n sound/soc/tegra/tegra210_adx.c | 85 ++++++++++++++++++----------------\n sound/soc/tegra/tegra210_adx.h | 5 +-\n sound/soc/tegra/tegra210_amx.c | 82 ++++++++++++++++----------------\n sound/soc/tegra/tegra210_amx.h | 5 +-\n 4 files changed, 96 insertions(+), 81 deletions(-)" }