Commit 5c57c421 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 01798455
...@@ -706,6 +706,17 @@ static int mxb_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_data ...@@ -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_g_register = vidioc_g_register;
vv_data.vid_ops.vidioc_s_register = vidioc_s_register; vv_data.vid_ops.vidioc_s_register = vidioc_s_register;
#endif #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)) { if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_VIDEO)) {
ERR("cannot register capture v4l2 device. skipping.\n"); ERR("cannot register capture v4l2 device. skipping.\n");
saa7146_vv_release(dev); saa7146_vv_release(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment