Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp848490ybh; Wed, 11 Mar 2020 12:03:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/r0NlsRjC0Q1OZEvLARUEEA1I20O5OZQaZZTYgqo9Kt644HeZn8YOxLrdTgy4BX32/UfF X-Received: by 2002:aca:4183:: with SMTP id o125mr88757oia.125.1583953431346; Wed, 11 Mar 2020 12:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583953431; cv=none; d=google.com; s=arc-20160816; b=qfGCxqPUFZJwMQWCHIv7dXETg1c3SDqmsDrcMOKMy6iZzIM7ZeK0CjUoogzi0oYAIO 9Z3kIwCcGaCD/Lk17Ew6jgIbwiVVBxJmJLMWKHdtRU3qmjqD8TzMErjeVuwpilvaRVCo LeERWIzxyk5yQ+1/aa/AsTrC0tkqID1Ru86GOu+bQSnFsFQwe5pUdzhkNgzl+8mhdjKK Ewr7C6SIUKX4UPnz9NqGq0BhTMehAXw4Au4JR+lpLFVMFSqalFMJvz65BeP/fp6/AOJs gR7m2Il24llgwwCFTsm69W89NNfYAMpRneE44+BcJqXETkMyi5pktQqdfWbzcrHncLJY lo1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=MTiJde+9kSCTitREFWxesGV2s2RPxjWBmZrUfbb1Krw=; b=dQL7ZOQJQdim0jmt3cGiy7s+WH51UoHQItPaRH1N+AJjgB+fLUi4pRXZGx/HPMluID hm45htJtmlWVLpAi8nQ8IFH0n8TxSgW4G570IFuoT7Atoq3A/5elwBHdvdJiQqkCp5hD DBY24JQHZb3efvnzVMqIsDT3UvC2i37p/k7uxX1sKycIS/apAate8kZ8TOpf4bvZX27M Hxf4nCsangpfvsMWRouDPPKZgWfXHJqADrtBs+hMz+J8GOJmrRmJE94YfvN2JNDXS1FZ yncnVA4v4+wISlIFyg0WJ3Znf3cXjezzK3+4TpHOF77OKhCeXPL4kjJD/GL8qPsTWxyY 1QXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si547778oou.32.2020.03.11.12.03.38; Wed, 11 Mar 2020 12:03:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730915AbgCKTBy (ORCPT + 99 others); Wed, 11 Mar 2020 15:01:54 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33740 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730799AbgCKTBy (ORCPT ); Wed, 11 Mar 2020 15:01:54 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 8F772292194 Message-ID: <02c89cb555c10ae61a365a2f54eb72bc4aee3c78.camel@collabora.com> Subject: Re: [PATCH 6/6] hantro: Refactor for V4L2 API spec compliancy From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , Nicolas Dufresne , kernel@collabora.com, Jonas Karlman , Heiko Stuebner , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Nicolas Dufresne Date: Wed, 11 Mar 2020 16:01:44 -0300 In-Reply-To: <20200311174300.19407-7-ezequiel@collabora.com> References: <20200311174300.19407-1-ezequiel@collabora.com> <20200311174300.19407-7-ezequiel@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-11 at 14:43 -0300, Ezequiel Garcia wrote: > Refactor how S_FMT and TRY_FMT are handled, and also make sure > internal initial format and format reset are done properly. > > The latter is achieved by making sure the same hantro_{set,try}_fmt > helpers are called on all paths that set the format (which is > part of the driver state). > > This commit removes the following v4l2-compliance warnings: > > test VIDIOC_G_FMT: OK > fail: v4l2-test-formats.cpp(711): Video Capture Multiplanar: TRY_FMT(G_FMT) != G_FMT > test VIDIOC_TRY_FMT: FAIL > fail: v4l2-test-formats.cpp(1116): Video Capture Multiplanar: S_FMT(G_FMT) != G_FMT > test VIDIOC_S_FMT: FAIL > > Reported-by: Nicolas Dufresne > Signed-off-by: Ezequiel Garcia > --- [..] > @@ -227,12 +232,12 @@ static int vidioc_g_fmt_cap_mplane(struct file *file, void *priv, > return 0; > } > > -static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f, > - bool capture) > +static int hantro_try_fmt(const struct hantro_ctx *ctx, Oops, it seems there's a warning due to ctx being const-qualified. That should be fixed of course. Regards, Ezequiel