Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: mxb: allow tuner/input/audio ioctls for vbi

The vbi stream comes from the same video input as the video
stream. So all the related ioctls to that are just as valid
for the vbi stream.

Add these.

This fixes a V4L2 compliance issue.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
5c57c421 01798455

+11
+11
drivers/media/pci/saa7146/mxb.c
··· 706 706 vv_data.vid_ops.vidioc_g_register = vidioc_g_register; 707 707 vv_data.vid_ops.vidioc_s_register = vidioc_s_register; 708 708 #endif 709 + vv_data.vbi_ops.vidioc_enum_input = vidioc_enum_input; 710 + vv_data.vbi_ops.vidioc_g_input = vidioc_g_input; 711 + vv_data.vbi_ops.vidioc_s_input = vidioc_s_input; 712 + vv_data.vbi_ops.vidioc_querystd = vidioc_querystd; 713 + vv_data.vbi_ops.vidioc_g_tuner = vidioc_g_tuner; 714 + vv_data.vbi_ops.vidioc_s_tuner = vidioc_s_tuner; 715 + vv_data.vbi_ops.vidioc_g_frequency = vidioc_g_frequency; 716 + vv_data.vbi_ops.vidioc_s_frequency = vidioc_s_frequency; 717 + vv_data.vbi_ops.vidioc_enumaudio = vidioc_enumaudio; 718 + vv_data.vbi_ops.vidioc_g_audio = vidioc_g_audio; 719 + vv_data.vbi_ops.vidioc_s_audio = vidioc_s_audio; 709 720 if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_VIDEO)) { 710 721 ERR("cannot register capture v4l2 device. skipping.\n"); 711 722 saa7146_vv_release(dev);