[media] sliced vbi: subdevs shouldn't clear the full v4l2_sliced_vbi_format struct
Various subdevs cleared the full v4l2_sliced_vbi_format struct, when only the service_set/lines fields should have been cleared. Due to this the io_size field was wrongly cleared to 0, causing a v4l2-compliance error. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
34a6b7d093
commit
30634e8e41
@@ -625,7 +625,7 @@ static int saa7127_g_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_f
|
||||
{
|
||||
struct saa7127_state *state = to_state(sd);
|
||||
|
||||
memset(fmt, 0, sizeof(*fmt));
|
||||
memset(fmt->service_lines, 0, sizeof(fmt->service_lines));
|
||||
if (state->vps_enable)
|
||||
fmt->service_lines[0][16] = V4L2_SLICED_VPS;
|
||||
if (state->wss_enable)
|
||||
|
Reference in New Issue
Block a user