mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[media] cx23885: ensure video is streaming before allowing vbi to stream
Signed-off-by: Steven Toth <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
af76e9f625
commit
24465b4485
1 changed files with 8 additions and 0 deletions
|
|
@ -1100,6 +1100,14 @@ static int vidioc_streamon(struct file *file, void *priv,
|
|||
|
||||
if (unlikely(!res_get(dev, fh, get_resource(fh))))
|
||||
return -EBUSY;
|
||||
|
||||
/* Don't start VBI streaming unless vida streaming
|
||||
* has already started.
|
||||
*/
|
||||
if ((fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) &&
|
||||
((cx_read(VID_A_DMA_CTL) & 0x11) == 0))
|
||||
return -EINVAL;
|
||||
|
||||
return videobuf_streamon(get_queue(fh));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue