From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-f177.google.com ([209.85.220.177]:49151 "EHLO mail-vc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371Ab3GQE4m (ORCPT ); Wed, 17 Jul 2013 00:56:42 -0400 MIME-Version: 1.0 In-Reply-To: <51E5C511.70202@gmail.com> References: <1370005408-10853-1-git-send-email-arun.kk@samsung.com> <1370005408-10853-7-git-send-email-arun.kk@samsung.com> <51C38F82.1040507@gmail.com> <51E5C511.70202@gmail.com> Date: Wed, 17 Jul 2013 10:26:42 +0530 Message-ID: Subject: Re: [RFC v2 06/10] exynos5-fimc-is: Adds isp subdev From: Arun Kumar K To: Sylwester Nawrocki Cc: LMML , Sylwester Nawrocki , kilyeon.im@samsung.com, shaik.ameer@samsung.com, linux-samsung-soc Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-media-owner@vger.kernel.org List-ID: Hi Sylwester, On Wed, Jul 17, 2013 at 3:41 AM, Sylwester Nawrocki wrote: > On 07/09/2013 01:42 PM, Arun Kumar K wrote: >>>> >>>> + /* Check if same as sensor width& height */ >>>> >> >>>> >> + sensor_width = p->sensor->drvdata->pixel_width; >>>> >> + sensor_height = p->sensor->drvdata->pixel_height; >>>> >> + if ((sensor_width != f->fmt.pix_mp.width) || >>>> >> + (sensor_height != f->fmt.pix_mp.height)) { >>> >>> > >>> > >>> > What's the point of this check ? >>> > >> >> Check was added to ensure ISP input width and height is >> set same as the sensor output or not. >> But yes this cannot be extended to generic (non-IS controlled) sensors. >> Will drop this check and let media controller take care. >> >>> > >>>> >>>> >> + f->fmt.pix_mp.width = sensor_width; >>>> >> + f->fmt.pix_mp.height = sensor_height; >>>> >> + } > > > I meant that you could do the assignment unconditionally, since you > always end up with sensor_width/height assigned to pix_mp.width/height. > Indeed, this should be handled by subdev ioctls, and any discrepancies > should be detected while starting streaming and reported to user space. > Ok I got it. Will modify accordingly Thanks & Regards Arun