Commit 99cd47bc authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] v4l2-ioctl: add priority handling support



Drivers that use v4l2_fh can now use the core framework support of g/s_priority.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent dfddb244
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -224,7 +224,8 @@ static int radio_si4713_s_frequency(struct file *file, void *p,
							s_frequency, vf);
}

static long radio_si4713_default(struct file *file, void *p, int cmd, void *arg)
static long radio_si4713_default(struct file *file, void *p,
				bool valid_prio, int cmd, void *arg)
{
	return v4l2_device_call_until_err(get_v4l2_dev(file), 0, core,
							ioctl, cmd, arg);
+2 −1
Original line number Diff line number Diff line
@@ -395,7 +395,8 @@ static int sync(struct camera_data *cam, int frame_nr)
 *
 *****************************************************************************/

static long cpia2_default(struct file *file, void *fh, int cmd, void *arg)
static long cpia2_default(struct file *file, void *fh, bool valid_prio,
			  int cmd, void *arg)
{
	struct camera_data *cam = video_drvdata(file);
	__u32 gpio_val;
+2 −1
Original line number Diff line number Diff line
@@ -1057,7 +1057,8 @@ static int cx18_log_status(struct file *file, void *fh)
	return 0;
}

static long cx18_default(struct file *file, void *fh, int cmd, void *arg)
static long cx18_default(struct file *file, void *fh, bool valid_prio,
							int cmd, void *arg)
{
	struct cx18 *cx = ((struct cx18_open_id *)fh)->cx;

+1 −1
Original line number Diff line number Diff line
@@ -1719,7 +1719,7 @@ unlock_out:


static long vpfe_param_handler(struct file *file, void *priv,
		int cmd, void *param)
		bool valid_prio, int cmd, void *param)
{
	struct vpfe_device *vpfe_dev = video_drvdata(file);
	int ret = 0;
+2 −1
Original line number Diff line number Diff line
@@ -1795,7 +1795,8 @@ static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg)
	return 0;
}

static long ivtv_default(struct file *file, void *fh, int cmd, void *arg)
static long ivtv_default(struct file *file, void *fh, bool valid_prio,
			 int cmd, void *arg)
{
	struct ivtv *itv = ((struct ivtv_open_id *)fh)->itv;

Loading