From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76907C38A2D for ; Tue, 25 Oct 2022 15:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231986AbiJYPQZ (ORCPT ); Tue, 25 Oct 2022 11:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbiJYPQX (ORCPT ); Tue, 25 Oct 2022 11:16:23 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26299AC33; Tue, 25 Oct 2022 08:16:21 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id z14so8124287wrn.7; Tue, 25 Oct 2022 08:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r6+tPR/kzu6yF7DNjbTLOGctUOsV7x2e9sXfAZuE0k4=; b=K/0n8sGD13R9NapDToBhBYXraQ2lv2zWdofXSCF4F7BjIa6/wKU3fG1eRxjlEYsiXD c0YVX3StPEiX4/sDk8pF3BaoYxnxE5Vg9oaC/nl/oBwgbsZ9G/MHJVhgjkli8c9Lhp4n 6x0BxFVlSjNYR76+vjd8I13nj/0cnPKK2k/kheJm9JmQhW0XsHpUsVv59PlUHo9WeZtt 1puXpbkugYO9+ew8skdfhTD830InDexc/trs5T3qjef/5mdty2ideJ22l4a3lJwPTSqy HXSPlN7zpHx8QjtdKG8rXkzIhq3paMF8+XYbZQzMg3Jpv1D0phBioMJx6tAE3oMEfCRV BI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r6+tPR/kzu6yF7DNjbTLOGctUOsV7x2e9sXfAZuE0k4=; b=vsiVYYBEGKojDt6nL+tN1lJCc6IuOV+y+iK6StxLy4Bnbh9wm32X10hGiNdhE3idfZ UG3R+fVFDNbmf5N5IFnJQbTzsXhlFoNV7HmfDm7J66OhLwLYlQpLrh9mLsuGWF+WISSg /GGvVNiaQatRWOK7NcbIur24CymnS7XRP5Q9hlhBC+Z9tZfZxRW7Lk5jzl9oogHyntbR /l9ysMbomliX8Fp5BdW9cXibjTr7Wt9XizHq9i38e6AxGJePmZEGp1CFTJXqgAB/kk2l A/lkFFlUrwsY7CkU8z7yA7hTuSMbpHh5mA9G1K+p3EHAlMQ62Urh5jcA2PuIizSiiTmp 1mIg== X-Gm-Message-State: ACrzQf1rV9YGkEBbGHwywBa3uguwkma6kEBCv7GB7n5fHeYC5QhB5FBT EEQ9urIvgx293nTmtMpvlZf0THWj1HWosQ== X-Google-Smtp-Source: AMsMyM6L8Y9mJA8bh1cRNm85m47Dxo8RyLw6mQrzRo0S0OGLSTb5Y6EY/LQsZhz+jpc7NS+0GIN/Ww== X-Received: by 2002:a05:6000:1862:b0:230:fc9a:813b with SMTP id d2-20020a056000186200b00230fc9a813bmr25408691wri.552.1666710928334; Tue, 25 Oct 2022 08:15:28 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id j37-20020a05600c1c2500b003b4c979e6bcsm12181227wms.10.2022.10.25.08.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 08:15:27 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Paul Kocialkowski Cc: mripard@kernel.org, mchehab@kernel.org, gregkh@linuxfoundation.org, wens@csie.org, samuel@sholland.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/11] media: cedrus: prefer untiled capture format Date: Tue, 25 Oct 2022 17:15:26 +0200 Message-ID: <4749341.GXAFRqVoOG@jernej-laptop> In-Reply-To: References: <20221024201515.34129-1-jernej.skrabec@gmail.com> <20221024201515.34129-9-jernej.skrabec@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Dne torek, 25. oktober 2022 ob 17:05:16 CEST je Paul Kocialkowski napisal(a): > Hi Jernej, > > On Mon 24 Oct 22, 22:15, Jernej Skrabec wrote: > > While all generations of display engine on Allwinner SoCs support > > untiled format, only first generation supports tiled format. Let's > > move untiled format up, so it can be picked before tiled one. If > > Cedrus variant doesn't support untiled format, tiled will still be > > picked as default format. > > Makes sense to me. Of course the order shouldn't matter to smart-enough > userspace but it doesn't hurt to serve the most generic case first. Per Documentation/userspace-api/media/v4l/dev-stateless-decoder.rst driver should select most appropriate format for current platform by default. Setting capture format is optional by aforementioned document. Best regards, Jernej > > Acked-by: Paul Kocialkowski > > Cheers, > > Paul > > > Signed-off-by: Jernej Skrabec > > --- > > > > drivers/staging/media/sunxi/cedrus/cedrus_video.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > b/drivers/staging/media/sunxi/cedrus/cedrus_video.c index > > 3591bf9d7d9c..f9f723ea3f79 100644 > > --- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > +++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > @@ -56,13 +56,13 @@ static struct cedrus_format cedrus_formats[] = { > > > > .capabilities = CEDRUS_CAPABILITY_VP8_DEC, > > > > }, > > { > > > > - .pixelformat = V4L2_PIX_FMT_NV12_32L32, > > + .pixelformat = V4L2_PIX_FMT_NV12, > > > > .directions = CEDRUS_DECODE_DST, > > > > + .capabilities = CEDRUS_CAPABILITY_UNTILED, > > > > }, > > { > > > > - .pixelformat = V4L2_PIX_FMT_NV12, > > + .pixelformat = V4L2_PIX_FMT_NV12_32L32, > > > > .directions = CEDRUS_DECODE_DST, > > > > - .capabilities = CEDRUS_CAPABILITY_UNTILED, > > > > }, > > > > };