From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Tue, 14 Oct 2014 12:57:53 +0000 Subject: Re: [PATCH 3/3] media: soc_camera: rcar_vin: Add NV16 horizontal scaling-up support Message-Id: <543D1DD1.2060700@cogentembedded.com> List-Id: References: <1413268013-8437-1-git-send-email-ykaneko0929@gmail.com> <1413268013-8437-4-git-send-email-ykaneko0929@gmail.com> In-Reply-To: <1413268013-8437-4-git-send-email-ykaneko0929@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yoshihiro Kaneko , linux-media@vger.kernel.org Cc: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Hello. On 10/14/2014 10:26 AM, Yoshihiro Kaneko wrote: > From: Koji Matsuoka > The scaling function had been forbidden for the capture format of > NV16 until now. With this patch, a horizontal scaling-up function > is supported to the capture format of NV16. a vertical scaling-up > by the capture format of NV16 is forbidden for the H/W specification. s/for/by/? > Signed-off-by: Koji Matsuoka > Signed-off-by: Yoshihiro Kaneko > --- > drivers/media/platform/soc_camera/rcar_vin.c | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c > index 00bc98d..bf3588f 100644 > --- a/drivers/media/platform/soc_camera/rcar_vin.c > +++ b/drivers/media/platform/soc_camera/rcar_vin.c [...] > @@ -1622,9 +1622,19 @@ static int rcar_vin_set_fmt(struct soc_camera_device *icd, > if (priv->error_flag = false) > priv->error_flag = true; > else { > - if ((pixfmt = V4L2_PIX_FMT_NV16) && (pix->width & 0x1F)) { > - dev_err(icd->parent, "Specified width error in NV16 format.\n"); > - return -EINVAL; > + if (pixfmt = V4L2_PIX_FMT_NV16) { > + if (pix->width & 0x1F) { > + dev_err(icd->parent, > + "Specified width error in NV16 format. " You should indent the string more to the right, preferrably starting it under 'icd'. > + "Please specify the multiple of 32.\n"); Do not break the string like this. scripts/checkpatch.pl has been taught to not complain about long strings. > + return -EINVAL; > + } > + if (pix->height != cam->height) { > + dev_err(icd->parent, > + "Vertical scaling-up error in NV16 format. " > + "Please specify input height size.\n"); Same here. Not breaking the lines helps to find the error messages in the code. [...] WBR, Sergei