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>
This commit is contained in:
Hans Verkuil 2023-03-02 11:42:57 +00:00 committed by Mauro Carvalho Chehab
parent 017984559d
commit 5c57c421a8

View File

@ -706,6 +706,17 @@ static int mxb_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_data
vv_data.vid_ops.vidioc_g_register = vidioc_g_register;
vv_data.vid_ops.vidioc_s_register = vidioc_s_register;
#endif
vv_data.vbi_ops.vidioc_enum_input = vidioc_enum_input;
vv_data.vbi_ops.vidioc_g_input = vidioc_g_input;
vv_data.vbi_ops.vidioc_s_input = vidioc_s_input;
vv_data.vbi_ops.vidioc_querystd = vidioc_querystd;
vv_data.vbi_ops.vidioc_g_tuner = vidioc_g_tuner;
vv_data.vbi_ops.vidioc_s_tuner = vidioc_s_tuner;
vv_data.vbi_ops.vidioc_g_frequency = vidioc_g_frequency;
vv_data.vbi_ops.vidioc_s_frequency = vidioc_s_frequency;
vv_data.vbi_ops.vidioc_enumaudio = vidioc_enumaudio;
vv_data.vbi_ops.vidioc_g_audio = vidioc_g_audio;
vv_data.vbi_ops.vidioc_s_audio = vidioc_s_audio;
if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_VIDEO)) {
ERR("cannot register capture v4l2 device. skipping.\n");
saa7146_vv_release(dev);