From: Deepa Guthyappa Madivalara <deepa.madivalara@oss.qualcomm.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org,
Deepa Guthyappa Madivalara <deepa.madivalara@oss.qualcomm.com>,
kernel test robot <lkp@intel.com>
Subject: [PATCH v12 6/6] media: vivid: add VIVID_CID_S8_4D_ARRAY control
Date: Thu, 03 Dec 2026 15:16:14 -0800 [thread overview]
Message-ID: <20261203-enc_roi_enable-v12-6-ce5c12d9a6ec@oss.qualcomm.com> (raw)
In-Reply-To: <20261203-enc_roi_enable-v12-0-ce5c12d9a6ec@oss.qualcomm.com>
Add VIVID_CID_S8_4D_ARRAY to the vivid driver to test
four-dimensional arrays of type V4L2_CTRL_TYPE_S8.
Signed-off-by: Deepa Guthyappa Madivalara <deepa.madivalara@oss.qualcomm.com>
---
drivers/media/test-drivers/vivid/vivid-ctrls.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/media/test-drivers/vivid/vivid-ctrls.c b/drivers/media/test-drivers/vivid/vivid-ctrls.c
index a8a134b36720eb56683fa6b3175032a090db1a2d..60ceb4e1804c24cff93afac9a59ec180e539093e 100644
--- a/drivers/media/test-drivers/vivid/vivid-ctrls.c
+++ b/drivers/media/test-drivers/vivid/vivid-ctrls.c
@@ -38,6 +38,7 @@
#define VIVID_CID_S32_ARRAY (VIVID_CID_CUSTOM_BASE + 15)
#define VIVID_CID_S64_ARRAY (VIVID_CID_CUSTOM_BASE + 16)
#define VIVID_CID_RECT (VIVID_CID_CUSTOM_BASE + 17)
+#define VIVID_CID_S8_4D_ARRAY (VIVID_CID_CUSTOM_BASE + 18)
#define VIVID_CID_VIVID_BASE (0x00f00000 | 0xf000)
#define VIVID_CID_VIVID_CLASS (0x00f00000 | 1)
@@ -272,6 +273,18 @@ static const struct v4l2_ctrl_config vivid_ctrl_s64_array = {
.dims = { 5 },
};
+static const struct v4l2_ctrl_config vivid_ctrl_s8_4d_array = {
+ .ops = &vivid_user_gen_ctrl_ops,
+ .id = VIVID_CID_S8_4D_ARRAY,
+ .name = "S8 2x3x4x5 Array",
+ .type = V4L2_CTRL_TYPE_S8,
+ .def = 0,
+ .min = -128,
+ .max = 127,
+ .step = 1,
+ .dims = { 2, 3, 4, 5 },
+};
+
static const char * const vivid_ctrl_menu_strings[] = {
"Menu Item 0 (Skipped)",
"Menu Item 1",
@@ -1740,6 +1753,7 @@ int vivid_create_controls(struct vivid_dev *dev, bool show_ccs_cap,
dev->pixel_array = v4l2_ctrl_new_custom(hdl_user_gen, &vivid_ctrl_u8_pixel_array, NULL);
v4l2_ctrl_new_custom(hdl_user_gen, &vivid_ctrl_s32_array, NULL);
v4l2_ctrl_new_custom(hdl_user_gen, &vivid_ctrl_s64_array, NULL);
+ v4l2_ctrl_new_custom(hdl_user_gen, &vivid_ctrl_s8_4d_array, NULL);
if (dev->has_vid_cap) {
/* Image Processing Controls */
--
2.34.1
prev parent reply other threads:[~2026-12-03 23:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 23:16 [PATCH v12 0/6] Implement Region of Interest(ROI) support Deepa Guthyappa Madivalara
2026-12-03 23:16 ` [PATCH v12 1/6] media: v4l2-core: add new control type V4L2_CTRL_TYPE_S8 Deepa Guthyappa Madivalara
2026-12-03 23:16 ` [PATCH v12 2/6] media: uapi: Introduce new control for video encoder ROI Deepa Guthyappa Madivalara
2026-12-03 23:16 ` [PATCH v12 3/6] media: iris: Add ROI delta QP control support for HFI Gen2 encoders Deepa Guthyappa Madivalara
2026-12-03 23:16 ` [PATCH v12 4/6] media: iris: Add HFI metadata buffer delivery support for " Deepa Guthyappa Madivalara
2026-12-03 23:16 ` [PATCH v12 5/6] media: iris: Add BUF_ROIMB_DELTAQP metadata buffer for ROI delta QP Deepa Guthyappa Madivalara
2026-12-03 23:16 ` Deepa Guthyappa Madivalara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203-enc_roi_enable-v12-6-ce5c12d9a6ec@oss.qualcomm.com \
--to=deepa.madivalara@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=hverkuil@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mchehab@kernel.org \
--cc=vikash.garodia@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®