diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-03-01 11:05:55 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-04-15 08:53:31 +0100 |
commit | 0b6e30bd37ae14ae34f7dbcc46a05e98903d0eae (patch) | |
tree | 22ed28da91e7903c1232a84fc092d40f2bc9fdd9 /drivers/media/pci | |
parent | b3b2dd37290208a0cc085e9a0bb8430f0caeb89b (diff) | |
download | linux-stable-0b6e30bd37ae14ae34f7dbcc46a05e98903d0eae.tar.gz linux-stable-0b6e30bd37ae14ae34f7dbcc46a05e98903d0eae.tar.bz2 linux-stable-0b6e30bd37ae14ae34f7dbcc46a05e98903d0eae.zip |
media: saa7146: convert to vb2
Convert this driver from the old videobuf framework to the vb2
frame.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/saa7146/mxb.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/media/pci/saa7146/mxb.c b/drivers/media/pci/saa7146/mxb.c index f518ad8c92ed..557ba89cd12d 100644 --- a/drivers/media/pci/saa7146/mxb.c +++ b/drivers/media/pci/saa7146/mxb.c @@ -587,7 +587,6 @@ static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_fre { struct saa7146_dev *dev = video_drvdata(file); struct mxb *mxb = (struct mxb *)dev->ext_priv; - struct saa7146_vv *vv = dev->vv_data; if (f->tuner) return -EINVAL; @@ -604,15 +603,6 @@ static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_fre tuner_call(mxb, tuner, g_frequency, &mxb->cur_freq); if (mxb->cur_audinput == 0) mxb_update_audmode(mxb); - - if (mxb->cur_input) - return 0; - - /* hack: changing the frequency should invalidate the vbi-counter (=> alevt) */ - spin_lock(&dev->slock); - vv->vbi_fieldcount = 0; - spin_unlock(&dev->slock); - return 0; } |