From patchwork Fri Oct 2 23:27:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 51485 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n92NR37S015312 for ; Fri, 2 Oct 2009 23:27:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753255AbZJBX06 (ORCPT ); Fri, 2 Oct 2009 19:26:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753001AbZJBX06 (ORCPT ); Fri, 2 Oct 2009 19:26:58 -0400 Received: from mail.gmx.net ([213.165.64.20]:50154 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752780AbZJBX05 (ORCPT ); Fri, 2 Oct 2009 19:26:57 -0400 Received: (qmail invoked by alias); 02 Oct 2009 23:26:59 -0000 Received: from p57BD1B05.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.27.5] by mail.gmx.net (mp006) with SMTP; 03 Oct 2009 01:26:59 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX18dRYBBPocdUUs0g4fdeQWWas1dGAhzgRwil3YV+1 w6K1FLCY2cdU1i Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1MtrWi-0003Ag-2z; Sat, 03 Oct 2009 01:27:04 +0200 Date: Sat, 3 Oct 2009 01:27:04 +0200 (CEST) From: Guennadi Liakhovetski To: Antonio Ospite cc: Linux Media Mailing List , Robert Jarzmik Subject: Re: pxa_camera + mt9m1111: Failed to configure for format 50323234 In-Reply-To: <20091002213530.104a5009.ospite@studenti.unina.it> Message-ID: References: <20091002213530.104a5009.ospite@studenti.unina.it> MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index 6952e96..aa831d5 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c @@ -1432,7 +1432,9 @@ static int pxa_camera_set_fmt(struct soc_camera_device *icd, icd->sense = &sense; cam_f.fmt.pix.pixelformat = cam_fmt->fourcc; - ret = v4l2_subdev_call(sd, video, s_fmt, f); + ret = v4l2_subdev_call(sd, video, s_fmt, &cam_f); + cam_f.fmt.pix.pixelformat = pix->pixelformat; + *pix = cam_f.fmt.pix; icd->sense = NULL;