Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1002523pxb; Wed, 13 Apr 2022 18:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZWu3FuTbPUbh+Wsny0wJiQyQdP/GhJTaoYCFXxGZzJvnA7Xkw6JeRKv5ZPo65vykhYulN X-Received: by 2002:a63:b542:0:b0:399:40fd:3ac3 with SMTP id u2-20020a63b542000000b0039940fd3ac3mr241012pgo.564.1649898074207; Wed, 13 Apr 2022 18:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649898074; cv=none; d=google.com; s=arc-20160816; b=kkEEGBWp2eztOPutJiZwqjsAvSBp59ErOOtBAOjAayA2EtPaCPnqYKIf0qCkoGbMQM Bpo138LZZaB2SBQ3ev78XbR1CPMIGTG6i2q2Es9yHpBkWD47FXOmKSvFqPphNEAcT9TF 4+FN/ftB3Re2ccFxoaGOw5Am5TRAC4bNZfS/IYBkJwyQ/hlTlbejidXWvcAiIZ6yK9mI 2UI1QVuIpSH3GzS5eds5iOZNy6i5iPfX7IHUaR7zO3bW9jU3hKDmxPXLjYkTkQxHFEGK dDskfwMBrr/E5V4l+YQ1O5HyNyVne2QNlzhk3YYihsYJeuLJpz5w4LQ0ecMziI/qXiSe gWDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=biwzMecONP16OJhQH/FKNOs+wHfPK7aPZRPUNGPrEJU=; b=Ma0AGJSFXHmyuctE+tqTDJR0jtnIvCRBT1M2ebWQxPvMhjhqxmlETvhlyS9vzyX97i LfMuig4w85Nel/Tzu26dZ1IGj8mnwTB1lh0W8RPjTrgomlVJiNogJCX9NoapvRSm5I+s fTPYwKkPGjpbE/JSPY/QZxcY6LrDlLetuAI/6+vFiKDdK1GEbWa3CXH3GzU6h1NjYe2s HlcvW+pf5jUdcjbiXb1/iJkiLxoIVuR5DRlKoqXj8fP+VIJGZJ5UUK34LBDJLAPbIMZ0 EdwkW+gHVh6h7iPWFmMKXtjEdyrFiYtjnv7Wwgph7MkVH4KQ9eDfQhe/NtJCoZovOAL8 RCOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=diwup2s1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a631057000000b003990ddee901si6888426pgq.363.2022.04.13.18.00.55; Wed, 13 Apr 2022 18:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b=diwup2s1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233405AbiDMS23 (ORCPT + 99 others); Wed, 13 Apr 2022 14:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbiDMS21 (ORCPT ); Wed, 13 Apr 2022 14:28:27 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 530924D9F7 for ; Wed, 13 Apr 2022 11:26:05 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id a11so1967129qtb.12 for ; Wed, 13 Apr 2022 11:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-transfer-encoding:user-agent:mime-version; bh=biwzMecONP16OJhQH/FKNOs+wHfPK7aPZRPUNGPrEJU=; b=diwup2s1nEc9QdCOyhezJHV481K+c1mxaEwqI79kSgnAUQS+Natwz5NeIvppSXq8Q+ TpT9xw7Dy7hJw+AQY5JOTZ4TwbH/EzDKvhFPOtRvsUll8cdGP1n5LUFT9qacfCpm+TeP ZJ2rM3PaxqeR3i+ZNKpITEGWjIR/1D8BmOB9cXLr2NLEM9T+LhasNjx8CIFBkPVv/rif 5VVtmVigRaBpg5SyUpFfgsnlLdJ+VBzokTC4vU0H51quRSjArD36MsW8/HQKAUoKCELn BlVirzBTPdac3wzV95lZfxsahcZaD4TBskhKlrQOJgoeVU5fyOAUwpMtDaI46lFYl02/ HOpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=biwzMecONP16OJhQH/FKNOs+wHfPK7aPZRPUNGPrEJU=; b=xUAkxh+vVUA7N7ipMyqYK8XEdJ2we1qI7xm/9JUZydxFZJrmhX7x0fcdJs1IXvaqoc IY15V8/3gjA417oNlE93dzS5MXOOIzKCMgrEFEdfxB4bmqZ4NA67QAJvyLETQaeSMH1Q v9twlxZfjnxltN44/eiRb/n3ymSPdW7oF+213QLwM30cefnMtiwW6WUS4nOzy45jydwF 7RvxGLmbzCuEIhqg7pVVLdqYG4zQ3AcPrWESecXVyTB9oETpvdQz72Z5PtOGAUj2mZho PZczR+RIE7+Xd+gNcq07b/dT8IDI3JbUPi5C8cV8hmVvtcw6xz6Ydv0rfaaGGNLR4ID9 ABwA== X-Gm-Message-State: AOAM5331aEJykvboQYxjYQA72biPXc4qufU9OZCE61eOiJMIXcrYr/O0 47+NFKTshy2fbDoPPrRL3EL93A== X-Received: by 2002:a05:622a:1c12:b0:2ef:5061:b78e with SMTP id bq18-20020a05622a1c1200b002ef5061b78emr8368097qtb.361.1649874364491; Wed, 13 Apr 2022 11:26:04 -0700 (PDT) Received: from nicolas-tpx395.localdomain (173-246-12-168.qc.cable.ebox.net. [173.246.12.168]) by smtp.gmail.com with ESMTPSA id a7-20020a05622a064700b002e238d6db02sm30335314qtb.54.2022.04.13.11.26.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 11:26:03 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2] media: amphion: fix decoder's interlaced field From: Nicolas Dufresne To: Ming Qian , mchehab@kernel.org, shawnguo@kernel.org Cc: hverkuil-cisco@xs4all.nl, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Wed, 13 Apr 2022 14:26:02 -0400 In-Reply-To: <20220412110155.21427-1-ming.qian@nxp.com> References: <20220412110155.21427-1-ming.qian@nxp.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.0 (3.44.0-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mardi 12 avril 2022 =C3=A0 19:01 +0800, Ming Qian a =C3=A9crit=C2=A0: > For interlaced frame, the amphion vpu will store the > two fields sequential into one buffer, top-bottom order > so the field should be set to V4L2_FIELD_SEQ_TB. > fix the previous bug that set it to V4L2_FIELD_SEQ_BT wrongly. >=20 > Signed-off-by: Ming Qian Reviewed-by: Nicolas Dufresne > --- > drivers/media/platform/amphion/vdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/media/platform/amphion/vdec.c b/drivers/media/platfo= rm/amphion/vdec.c > index 09628dd0c855..0a1976852b0d 100644 > --- a/drivers/media/platform/amphion/vdec.c > +++ b/drivers/media/platform/amphion/vdec.c > @@ -804,7 +804,7 @@ static void vdec_init_fmt(struct vpu_inst *inst) > if (vdec->codec_info.progressive) > inst->cap_format.field =3D V4L2_FIELD_NONE; > else > - inst->cap_format.field =3D V4L2_FIELD_SEQ_BT; > + inst->cap_format.field =3D V4L2_FIELD_SEQ_TB; > if (vdec->codec_info.color_primaries =3D=3D V4L2_COLORSPACE_DEFAULT) > vdec->codec_info.color_primaries =3D V4L2_COLORSPACE_REC709; > if (vdec->codec_info.transfer_chars =3D=3D V4L2_XFER_FUNC_DEFAULT)