These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / media / pci / ivtv / ivtv-controls.c
index ccf548c..8a55ccb 100644 (file)
@@ -64,13 +64,15 @@ static int ivtv_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val)
 {
        struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl);
        int is_mpeg1 = val == V4L2_MPEG_VIDEO_ENCODING_MPEG_1;
-       struct v4l2_mbus_framefmt fmt;
+       struct v4l2_subdev_format format = {
+               .which = V4L2_SUBDEV_FORMAT_ACTIVE,
+       };
 
        /* fix videodecoder resolution */
-       fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
-       fmt.height = cxhdl->height;
-       fmt.code = MEDIA_BUS_FMT_FIXED;
-       v4l2_subdev_call(itv->sd_video, video, s_mbus_fmt, &fmt);
+       format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1);
+       format.format.height = cxhdl->height;
+       format.format.code = MEDIA_BUS_FMT_FIXED;
+       v4l2_subdev_call(itv->sd_video, pad, set_fmt, NULL, &format);
        return 0;
 }