From patchwork Wed Nov 2 18:08:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 13028765 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD496C433FE for ; Wed, 2 Nov 2022 18:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t86HudBBxJWyZ8Mmd7SvAAWQgS15/Q/HRse6wq4K4IE=; b=jJ0znZib99kMZN pc/jtirCoDR4qs7zLvbBe8SQ0KERH0CdedFYGbP9m/zmUZkwhoZmZkcbrFqsZLLCHy9MF6rXOWbT8 0gN89QV8OmW1exyLcHhIUEr4fRUAt+MquP9a6Aw5cmFhrTA5tfG2WCwLYSvwlXJ+sPKIMQPHz8dAQ BLBbGE/oi9jxBVPce8w2QEePUIy5xj6C/dwncBAbZ988zcoF0sRidHC3Vozf/XTJ0SzGcfev0quX+ N2i9SNLDz8xPjOoYLQDx4qXzTIoLPj3AsVC4sIR7v+s1BW9g3jy0vqkeFCXvx3hg2oJVo1CJCUJwp DSyQQ/0jO0OWF9b97F/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIJK-00Cunb-Ty; Wed, 02 Nov 2022 18:18:00 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqIA8-00ColR-P9 for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 18:08:30 +0000 Received: by mail-ej1-x62a.google.com with SMTP id q9so47563662ejd.0 for ; Wed, 02 Nov 2022 11:08:27 -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=VdOwqqxxYEZRd9acvNPnTYoR6lmdOOAyvQmf0ex2vO8=; b=HCjeFIP8UyzZhiT1DfZSmx9y0DaO9+xtJgKkH2ojsI4ewcVjk9DRYxTLcrOZeDekjq A43BnfqCo1CclbOe4QwMVAKshpXEaatIwlFqjhgabD4haNE/C0CBWd8g0A7DpXG6P/cF UZT1mEUmWiz6OmECxCcTOXMCEkjUENtYt5l4bEUMDjwImhhUDz98GLoTmJfDw68/v1Qb vqSXiP8YzopVl/1a21kUMvX19dpsoexISLnBjyvAVAmxn7KAARKrsbDHP77G+ax14U4W 3qbeIvDWgaa7o2UWu6OIMk4H4i2iG1bdZw0m2Vmc7HK0RPrVYDktYw9UTo72OGVM17Zn tIpw== 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=VdOwqqxxYEZRd9acvNPnTYoR6lmdOOAyvQmf0ex2vO8=; b=1431LG8sQ4Bo/N+aZ8BojuQdDYnhkltJKt8eDhOi7PeKhtrb+Mxa9io+04geWcsF23 pPmME+l02IecfrGRv7rYu3Ab8mcrZ9HWT4oyzGrEsbFtcX04RQFjlK4LZxgmgKZsGtDq FKvHE+Pebcdk3LaKxUtPoNPIuwFJJ9sGc2aONzPQPu5AnnGouZd6qZHarONmEwZw5MBB Dcn5po3AkWz3/seK0rFiNz8ef/pXrfIiqjfADwkc9hp+aMLidYPs3fCna1K4NcaRRQxF Abd3twBXt2JXrlG1bcmme0e0b3eQYC9EqSlFYalVrYi+LhWcucplsyEJeJnDPz3RbpD9 5amQ== X-Gm-Message-State: ACrzQf36exsY6XdCLFpWfwidPmsHc/sLSQsRL6Cgnyi2d7I/j1iCCocA /7IpTV136Lnw7Hl4Kws6w1w= X-Google-Smtp-Source: AMsMyM5ESq06l/CLF/S76CA9K2WIH6qaugl08P/TEhcqmBK3ysB98KByBVKRNooXPHlpgNsVAjagNw== X-Received: by 2002:a17:906:5dae:b0:78e:302f:4218 with SMTP id n14-20020a1709065dae00b0078e302f4218mr26430520ejv.22.1667412506572; Wed, 02 Nov 2022 11:08:26 -0700 (PDT) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id gy8-20020a170906f24800b007317f017e64sm5677460ejb.134.2022.11.02.11.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:08:26 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, paul.kocialkowski@bootlin.com Cc: 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, Jernej Skrabec Subject: [PATCH v2 08/11] media: cedrus: prefer untiled capture format Date: Wed, 2 Nov 2022 19:08:07 +0100 Message-Id: <20221102180810.267252-9-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221102180810.267252-1-jernej.skrabec@gmail.com> References: <20221102180810.267252-1-jernej.skrabec@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_110828_855924_A85C12F8 X-CRM114-Status: GOOD ( 13.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Acked-by: Paul Kocialkowski Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus_video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c b/drivers/staging/media/sunxi/cedrus/cedrus_video.c index f6305ffe2c4f..dec5d3ae4871 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c @@ -55,15 +55,15 @@ static struct cedrus_format cedrus_formats[] = { .directions = CEDRUS_DECODE_SRC, .capabilities = CEDRUS_CAPABILITY_VP8_DEC, }, - { - .pixelformat = V4L2_PIX_FMT_NV12_32L32, - .directions = CEDRUS_DECODE_DST, - }, { .pixelformat = V4L2_PIX_FMT_NV12, .directions = CEDRUS_DECODE_DST, .capabilities = CEDRUS_CAPABILITY_UNTILED, }, + { + .pixelformat = V4L2_PIX_FMT_NV12_32L32, + .directions = CEDRUS_DECODE_DST, + }, }; #define CEDRUS_FORMATS_COUNT ARRAY_SIZE(cedrus_formats)