linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
To: linux-media@vger.kernel.org
Cc: Ezequiel Garcia <ezequiel@collabora.com>,
	Nicolas Dufresne <nicolas@ndufresne.ca>,
	Tomasz Figa <tfiga@chromium.org>,
	Alexandre Courbot <acourbot@chromium.org>,
	Hans Verkuil <hverkuil-cisco@xs4all.nl>
Subject: [PATCH 10/15] media/test-drivers: rename MPEG to CODEC
Date: Sat, 13 Mar 2021 15:43:18 +0100	[thread overview]
Message-ID: <20210313144323.143600-11-hverkuil-cisco@xs4all.nl> (raw)
In-Reply-To: <20210313144323.143600-1-hverkuil-cisco@xs4all.nl>

Historically all codec-related data structures and defines used the
MPEG prefix. This is confusing. Rename MPEG to CODEC to make it clear
that the MPEG prefix isn't MPEG specific.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
 drivers/media/test-drivers/vicodec/vicodec-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/test-drivers/vicodec/vicodec-core.c b/drivers/media/test-drivers/vicodec/vicodec-core.c
index 33f1c893c1b6..b198e2d6f3d1 100644
--- a/drivers/media/test-drivers/vicodec/vicodec-core.c
+++ b/drivers/media/test-drivers/vicodec/vicodec-core.c
@@ -1785,7 +1785,7 @@ static int vicodec_s_ctrl(struct v4l2_ctrl *ctrl)
 	const struct v4l2_ctrl_fwht_params *params;
 
 	switch (ctrl->id) {
-	case V4L2_CID_MPEG_VIDEO_GOP_SIZE:
+	case V4L2_CID_CODEC_VIDEO_GOP_SIZE:
 		ctx->state.gop_size = ctrl->val;
 		return 0;
 	case V4L2_CID_FWHT_I_FRAME_QP:
@@ -1846,7 +1846,7 @@ static int vicodec_open(struct file *file)
 	ctx->dev = dev;
 	hdl = &ctx->hdl;
 	v4l2_ctrl_handler_init(hdl, 5);
-	v4l2_ctrl_new_std(hdl, &vicodec_ctrl_ops, V4L2_CID_MPEG_VIDEO_GOP_SIZE,
+	v4l2_ctrl_new_std(hdl, &vicodec_ctrl_ops, V4L2_CID_CODEC_VIDEO_GOP_SIZE,
 			  1, 16, 1, 10);
 	v4l2_ctrl_new_std(hdl, &vicodec_ctrl_ops, V4L2_CID_FWHT_I_FRAME_QP,
 			  1, 31, 1, 20);
-- 
2.30.1


  parent reply	other threads:[~2021-03-13 14:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13 14:43 [PATCH 00/15] v4l2-controls.h: rename _MPEG_ to _CODEC_ Hans Verkuil
2021-03-13 14:43 ` [PATCH 01/15] ext-ctrls-codec.rst: fix typos Hans Verkuil
2021-03-13 14:43 ` [PATCH 02/15] v4l2-controls.h: rename _MPEG_ to _CODEC_ Hans Verkuil
2021-03-13 14:43 ` [PATCH 03/15] Documentation/*/media: rename MPEG to CODEC Hans Verkuil
2021-03-13 14:43 ` [PATCH 04/15] media/common: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 05/15] media/i2c: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 06/15] media/v4l2-core: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 07/15] media/pci: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 08/15] media/usb: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 09/15] media/platform: " Hans Verkuil
2021-03-13 14:43 ` Hans Verkuil [this message]
2021-03-13 14:43 ` [PATCH 11/15] staging/media: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 12/15] include/media: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 13/15] videodev2.h: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 14/15] staging/vc04_services: " Hans Verkuil
2021-03-13 14:43 ` [PATCH 15/15] v4l2-controls.h: place all MPEG aliases under #ifndef __KERNEL__ Hans Verkuil
2021-03-14  8:23   ` [PATCH 16/15] ext-ctrls-codec.rst: update note at start of codec section Hans Verkuil

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=20210313144323.143600-11-hverkuil-cisco@xs4all.nl \
    --to=hverkuil-cisco@xs4all.nl \
    --cc=acourbot@chromium.org \
    --cc=ezequiel@collabora.com \
    --cc=linux-media@vger.kernel.org \
    --cc=nicolas@ndufresne.ca \
    --cc=tfiga@chromium.org \
    /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;
as well as URLs for NNTP newsgroup(s).