Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mBH0T3V9023898 for ; Tue, 16 Dec 2008 19:29:03 -0500 Received: from mail04.idc.renesas.com (mail.renesas.com [202.234.163.13]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id mBH0SnP6031775 for ; Tue, 16 Dec 2008 19:28:50 -0500 Date: Wed, 17 Dec 2008 09:28:40 +0900 From: morimoto.kuninori@renesas.com In-reply-to: To: morimoto.kuninori@renesas.com Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII References: Cc: V4L-Linux , Guennadi Liakhovetski Subject: Re: [PATCH v3] Add tw9910 driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: video4linux-list-bounces@redhat.com Errors-To: video4linux-list-bounces@redhat.com List-ID: 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@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list