aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2014-11-10 12:28:30 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-14 14:53:21 -0500
commit43ba464182cd7f9e8089e3d76af8ef265ff287dd (patch)
tree699954d2a7eb571d6dd4b2d5ebcf19377b9ed2fc /drivers
parentf5fe58fd76a0d8e0dc4b0e1d4d43c40baf800961 (diff)
[media] pci: Make use of MEDIA_BUS_FMT definitions
In order to have subsytem agnostic media bus format definitions we've moved media bus definition to include/uapi/linux/media-bus-format.h and prefixed values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT. Replace all references to the old definitions in pci drivers. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/pci/cx18/cx18-av-core.c2
-rw-r--r--drivers/media/pci/cx18/cx18-controls.c2
-rw-r--r--drivers/media/pci/cx18/cx18-ioctl.c2
-rw-r--r--drivers/media/pci/cx23885/cx23885-video.c2
-rw-r--r--drivers/media/pci/ivtv/ivtv-controls.c2
-rw-r--r--drivers/media/pci/ivtv/ivtv-ioctl.c2
-rw-r--r--drivers/media/pci/saa7134/saa7134-empress.c4
7 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/pci/cx18/cx18-av-core.c b/drivers/media/pci/cx18/cx18-av-core.c
index 45be26cdb653..5a55630d09db 100644
--- a/drivers/media/pci/cx18/cx18-av-core.c
+++ b/drivers/media/pci/cx18/cx18-av-core.c
@@ -952,7 +952,7 @@ static int cx18_av_s_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt
952 int HSC, VSC, Vsrc, Hsrc, filter, Vlines; 952 int HSC, VSC, Vsrc, Hsrc, filter, Vlines;
953 int is_50Hz = !(state->std & V4L2_STD_525_60); 953 int is_50Hz = !(state->std & V4L2_STD_525_60);
954 954
955 if (fmt->code != V4L2_MBUS_FMT_FIXED) 955 if (fmt->code != MEDIA_BUS_FMT_FIXED)
956 return -EINVAL; 956 return -EINVAL;
957 957
958 fmt->field = V4L2_FIELD_INTERLACED; 958 fmt->field = V4L2_FIELD_INTERLACED;
diff --git a/drivers/media/pci/cx18/cx18-controls.c b/drivers/media/pci/cx18/cx18-controls.c
index 282a3d29fdaa..4aeb7c6b8ce1 100644
--- a/drivers/media/pci/cx18/cx18-controls.c
+++ b/drivers/media/pci/cx18/cx18-controls.c
@@ -98,7 +98,7 @@ static int cx18_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val)
98 /* fix videodecoder resolution */ 98 /* fix videodecoder resolution */
99 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1); 99 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
100 fmt.height = cxhdl->height; 100 fmt.height = cxhdl->height;
101 fmt.code = V4L2_MBUS_FMT_FIXED; 101 fmt.code = MEDIA_BUS_FMT_FIXED;
102 v4l2_subdev_call(cx->sd_av, video, s_mbus_fmt, &fmt); 102 v4l2_subdev_call(cx->sd_av, video, s_mbus_fmt, &fmt);
103 return 0; 103 return 0;
104} 104}
diff --git a/drivers/media/pci/cx18/cx18-ioctl.c b/drivers/media/pci/cx18/cx18-ioctl.c
index 6f2b59042b73..71963db3d92b 100644
--- a/drivers/media/pci/cx18/cx18-ioctl.c
+++ b/drivers/media/pci/cx18/cx18-ioctl.c
@@ -294,7 +294,7 @@ static int cx18_s_fmt_vid_cap(struct file *file, void *fh,
294 294
295 mbus_fmt.width = cx->cxhdl.width = w; 295 mbus_fmt.width = cx->cxhdl.width = w;
296 mbus_fmt.height = cx->cxhdl.height = h; 296 mbus_fmt.height = cx->cxhdl.height = h;
297 mbus_fmt.code = V4L2_MBUS_FMT_FIXED; 297 mbus_fmt.code = MEDIA_BUS_FMT_FIXED;
298 v4l2_subdev_call(cx->sd_av, video, s_mbus_fmt, &mbus_fmt); 298 v4l2_subdev_call(cx->sd_av, video, s_mbus_fmt, &mbus_fmt);
299 return cx18_g_fmt_vid_cap(file, fh, fmt); 299 return cx18_g_fmt_vid_cap(file, fh, fmt);
300} 300}
diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c
index 682a4f95df6b..091f5dbe65a8 100644
--- a/drivers/media/pci/cx23885/cx23885-video.c
+++ b/drivers/media/pci/cx23885/cx23885-video.c
@@ -608,7 +608,7 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
608 dev->field = f->fmt.pix.field; 608 dev->field = f->fmt.pix.field;
609 dprintk(2, "%s() width=%d height=%d field=%d\n", __func__, 609 dprintk(2, "%s() width=%d height=%d field=%d\n", __func__,
610 dev->width, dev->height, dev->field); 610 dev->width, dev->height, dev->field);
611 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, V4L2_MBUS_FMT_FIXED); 611 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
612 call_all(dev, video, s_mbus_fmt, &mbus_fmt); 612 call_all(dev, video, s_mbus_fmt, &mbus_fmt);
613 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt); 613 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt);
614 /* s_mbus_fmt overwrites f->fmt.pix.field, restore it */ 614 /* s_mbus_fmt overwrites f->fmt.pix.field, restore it */
diff --git a/drivers/media/pci/ivtv/ivtv-controls.c b/drivers/media/pci/ivtv/ivtv-controls.c
index 2b0ab26e11e8..ccf548c255f1 100644
--- a/drivers/media/pci/ivtv/ivtv-controls.c
+++ b/drivers/media/pci/ivtv/ivtv-controls.c
@@ -69,7 +69,7 @@ static int ivtv_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val)
69 /* fix videodecoder resolution */ 69 /* fix videodecoder resolution */
70 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1); 70 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
71 fmt.height = cxhdl->height; 71 fmt.height = cxhdl->height;
72 fmt.code = V4L2_MBUS_FMT_FIXED; 72 fmt.code = MEDIA_BUS_FMT_FIXED;
73 v4l2_subdev_call(itv->sd_video, video, s_mbus_fmt, &fmt); 73 v4l2_subdev_call(itv->sd_video, video, s_mbus_fmt, &fmt);
74 return 0; 74 return 0;
75} 75}
diff --git a/drivers/media/pci/ivtv/ivtv-ioctl.c b/drivers/media/pci/ivtv/ivtv-ioctl.c
index 3e0cb77d5930..4d8ee18c3feb 100644
--- a/drivers/media/pci/ivtv/ivtv-ioctl.c
+++ b/drivers/media/pci/ivtv/ivtv-ioctl.c
@@ -595,7 +595,7 @@ static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f
595 fmt->fmt.pix.width /= 2; 595 fmt->fmt.pix.width /= 2;
596 mbus_fmt.width = fmt->fmt.pix.width; 596 mbus_fmt.width = fmt->fmt.pix.width;
597 mbus_fmt.height = h; 597 mbus_fmt.height = h;
598 mbus_fmt.code = V4L2_MBUS_FMT_FIXED; 598 mbus_fmt.code = MEDIA_BUS_FMT_FIXED;
599 v4l2_subdev_call(itv->sd_video, video, s_mbus_fmt, &mbus_fmt); 599 v4l2_subdev_call(itv->sd_video, video, s_mbus_fmt, &mbus_fmt);
600 return ivtv_g_fmt_vid_cap(file, fh, fmt); 600 return ivtv_g_fmt_vid_cap(file, fh, fmt);
601} 601}
diff --git a/drivers/media/pci/saa7134/saa7134-empress.c b/drivers/media/pci/saa7134/saa7134-empress.c
index e4ea85fd1b23..8b3bb78b503b 100644
--- a/drivers/media/pci/saa7134/saa7134-empress.c
+++ b/drivers/media/pci/saa7134/saa7134-empress.c
@@ -140,7 +140,7 @@ static int empress_s_fmt_vid_cap(struct file *file, void *priv,
140 struct saa7134_dev *dev = video_drvdata(file); 140 struct saa7134_dev *dev = video_drvdata(file);
141 struct v4l2_mbus_framefmt mbus_fmt; 141 struct v4l2_mbus_framefmt mbus_fmt;
142 142
143 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, V4L2_MBUS_FMT_FIXED); 143 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
144 saa_call_all(dev, video, s_mbus_fmt, &mbus_fmt); 144 saa_call_all(dev, video, s_mbus_fmt, &mbus_fmt);
145 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt); 145 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt);
146 146
@@ -157,7 +157,7 @@ static int empress_try_fmt_vid_cap(struct file *file, void *priv,
157 struct saa7134_dev *dev = video_drvdata(file); 157 struct saa7134_dev *dev = video_drvdata(file);
158 struct v4l2_mbus_framefmt mbus_fmt; 158 struct v4l2_mbus_framefmt mbus_fmt;
159 159
160 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, V4L2_MBUS_FMT_FIXED); 160 v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
161 saa_call_all(dev, video, try_mbus_fmt, &mbus_fmt); 161 saa_call_all(dev, video, try_mbus_fmt, &mbus_fmt);
162 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt); 162 v4l2_fill_pix_format(&f->fmt.pix, &mbus_fmt);
163 163