Re: [PATCH v3] Add tw9910 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Guennadi

> > Yes, that's fine. This depends on your application - whatever you use. And 
> > I would expect, if you first return -EINVAL in reply to FIELD_NONE, the 
> > application then will try either ANY or INTERLACED, and you will get a 
> > chance to select a suitable field.
> 
> really ???
> Now I'm using mplayer.
> but mplayer doesn't try ANY or INTERLACED.
(snip)
> v4l2: ioctl set format failed: Invalid argument
> v4l2: ioctl set mute failed: Invalid argument
> v4l2: 0 frames successfully processed, 0 frames dropped.
> --------------

Now, I found the reason why mplayer finish when try_fmt return -EINVAL in tw9910.

vivi.c use this functions on vivi_open
-----------
	videobuf_queue_vmalloc_init(&fh->vb_vidq, &vivi_video_qops,
			NULL, &dev->slock, fh->type, V4L2_FIELD_INTERLACED,
			sizeof(struct vivi_buffer), fh);
-----------

after that, fh->vb_vidq.field be V4L2_FIELD_INTERLACED.
and vidioc_try_fmt_vid_cap doesn't get NONE field.

but icf->vb_vidq.field of soc_camera is V4L2_FIELD_NONE.
therefore tw9910_try_fmt get NONE field.

Best regards
--
Kuninori Morimoto
 

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

[Index of Archives]     [Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Util Linux]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]
  Powered by Linux