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 mBF8uEFD031146 for ; Mon, 15 Dec 2008 03:56:14 -0500 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id mBF8teFA017308 for ; Mon, 15 Dec 2008 03:55:53 -0500 Received: by wf-out-1314.google.com with SMTP id 25so2277727wfc.6 for ; Mon, 15 Dec 2008 00:55:39 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 17:55:39 +0900 From: "Magnus Damm" To: "Guennadi Liakhovetski" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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, 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. Cheers, / magnus -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list