From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]:4466 "EHLO smtp-vbr10.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747AbaG0WXc (ORCPT ); Sun, 27 Jul 2014 18:23:32 -0400 Message-ID: <53D57BC3.9060205@xs4all.nl> Date: Mon, 28 Jul 2014 00:22:59 +0200 From: Hans Verkuil MIME-Version: 1.0 To: Nicolas Dufresne CC: Nicolas Dufresne , Philipp Zabel , Linux Media Mailing List , Mauro Carvalho Chehab , Kamil Debski , Sascha Hauer Subject: Re: [PATCH 2/3] [media] coda: fix coda_g_selection References: <69ab-53d52e80-1-565f8200@126846484> <53D54338.9090707@xs4all.nl> <1406496776.2628.1.camel@mpb-nicolas> In-Reply-To: <1406496776.2628.1.camel@mpb-nicolas> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-media-owner@vger.kernel.org List-ID: On 07/27/2014 11:32 PM, Nicolas Dufresne wrote: > Le dimanche 27 juillet 2014 à 20:21 +0200, Hans Verkuil a écrit : >> If cropcap returns -EINVAL then that means that the current input or >> output does >> not support cropping (for input) or composing (for output). In that case the >> pixel aspect ratio is undefined and you have no way to get hold of that information, >> which is a bug in the V4L2 API. >> >> In the case of an m2m device you can safely assume that whatever the pixel aspect >> is of the image you give to the m2m device, it will still be the same pixel >> aspect when you get it back. In fact, I would say that if an m2m device returns >> cropcap information, then the pixel aspect ratio information is most likely not >> applicable to the device and will typically be 1:1. >> >> Pixel aspect ratio is only relevant if the video comes in or goes out to a physical >> interface (sensor, video receiver/transmitter). > > So far "not applicable" has been interpreted as not implemented / > ENOTTY. Can't CODA just do that and we can close this subject ? Yes, that might be the best solution. Just call v4l2_disable_ioctl for CROPCAP and G/S_CROP, since none of them apply to the coda driver. Regards, Hans