aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-streams.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx18/cx18-streams.c')
-rw-r--r--drivers/media/video/cx18/cx18-streams.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.c b/drivers/media/video/cx18/cx18-streams.c
index 054450f65a60..f5c91261b2db 100644
--- a/drivers/media/video/cx18/cx18-streams.c
+++ b/drivers/media/video/cx18/cx18-streams.c
@@ -374,7 +374,10 @@ static void cx18_vbi_setup(struct cx18_stream *s)
374 } 374 }
375 375
376 /* setup VBI registers */ 376 /* setup VBI registers */
377 v4l2_subdev_call(cx->sd_av, video, s_fmt, &cx->vbi.in); 377 if (raw)
378 v4l2_subdev_call(cx->sd_av, vbi, s_raw_fmt, &cx->vbi.in.fmt.vbi);
379 else
380 v4l2_subdev_call(cx->sd_av, vbi, s_sliced_fmt, &cx->vbi.in.fmt.sliced);
378 381
379 /* 382 /*
380 * Send the CX18_CPU_SET_RAW_VBI_PARAM API command to setup Encoder Raw 383 * Send the CX18_CPU_SET_RAW_VBI_PARAM API command to setup Encoder Raw