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 mBF9Bo1T006971 for ; Mon, 15 Dec 2008 04:11:50 -0500 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx3.redhat.com (8.13.8/8.13.8) with SMTP id mBF9BcCp026024 for ; Mon, 15 Dec 2008 04:11:39 -0500 Date: Mon, 15 Dec 2008 10:11:46 +0100 (CET) From: Guennadi Liakhovetski To: Magnus Damm In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: V4L-Linux Subject: Re: [PATCH] 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: On Mon, 15 Dec 2008, Magnus Damm wrote: > On Mon, Dec 15, 2008 at 5:33 PM, Guennadi Liakhovetski > wrote: > > On Mon, 15 Dec 2008, Magnus Damm wrote: > >> On Mon, Dec 15, 2008 at 5:06 PM, Guennadi Liakhovetski > >> wrote: > >> > What happens is that v4l2-ioctl.c::check_fmt() calls soc_camera_s_std(), > >> > verifies that it returns 0, and then sets current_norm, which you then use > >> > in your driver in tw9910_select_norm(). This way again we have no way to > >> > reject an unsupported tv-norm. Like, try selecting a SECAM norm:-) So, we > >> > need two patches here: first to add a set_std method to struct > >> > soc_camera_ops and call it from soc_camera_s_std(): > >> > > >> > static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id *a) > >> > { > >> > struct soc_camera_file *icf = file->private_data; > >> > struct soc_camera_device *icd = icf->icd; > >> > return icd->ops->set_std(icd, a); > >> > } > >> > > >> > and second - your driver implementing this method. Or do we have to pass > >> > set_std first to the host driver? Looks like neither i.MX31 nor PXA270 > >> > have anything to do with it, SuperH neither? > >> > >> The CEU has nothing to do with it. For our hardware this is handled by > >> the TW9910 video decoder. The CEU driver has to be switched to > >> interlace mode, but that's about it. =) > > > > Good, then passing it directly to the camera driver should be enough for > > now. > > Yeah. I guess this all means that we have to rework things a bit. So > the interlace patch needs to be updated. Which affects my cleanup > patch. Do you have any preference on how to proceed? I'd go with just > keep on adding things - this means my cleanup patch that i'm about to > send will still apply - but I'm fine rewriting and reposting as well. As you see, patches [PATCH 02/03] sh_mobile_ceu: add NV12 and NV21 support [PATCH] Add interlace support to sh_mobile_ceu_camera.c [PATCH] Add tw9910 driver need modifications, so, I would prefer to have them re-done instead of incrementally fixing them. This doesn't include of course parenthesis and ceu_write / ceu_read typing fixes to existing code - this should be a separate patch. BTW, you realise, that I'm not handling this your patch: [PATCH] videobuf-dma-contig: fix USERPTR free handling Have you got an ack for it yet? Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list