Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1373680pxb; Sat, 29 Jan 2022 04:21:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvDw2SLL+BxTMBdwW6H1i7JAbnc/EkPR7OiqfI3kLgXc+AIgxdTNFd1seNxosrpxUfSFJN X-Received: by 2002:a17:907:168a:: with SMTP id hc10mr10223450ejc.283.1643458865320; Sat, 29 Jan 2022 04:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643458865; cv=none; d=google.com; s=arc-20160816; b=VCELMduw8+87kh/QavbGYl1/C5ZgoV+spdCX+6ZV10MyScJWBIbEA1KTCjCCVWzweH R8xwTv1QjfejgVeAgSJ77v/fDO4cD1M5N2Zt0WINQm1LvN2neeHqg1uGZSO+HQ1z7ckD R0Nq17S7goIRlvBuH2DwP7Q//Wau/97N3RHi1JqYaRUehlclc2nhxcDoTJ1WQn91GBWv TrDcz7M85LKf/G6cVBJm00O4+tiB0OykhxJ2baIAIaqWjblqhrRtAal22lDZOKWVOM/T qTh26ZNj9jI5OTOiLn3ziM3Iu4MqSZKH0Kl+VtQkfYTt2mGWYzvcpvw+DRnEKO3Egnd8 Oh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=c5guWhF3N7r0FIQ83mk/atfTTOT4sFZeRP5Pq+jYG/I=; b=yBqseNi/MA3w4QCgJaylMqL89l9aKyWiGaH3WKaWuxsoeoCHZScqvhGb5QpJFe6f7t MOYKAE5DTPelHUYvVD+Q34jFH7GSjPU0gzh4YRKiz3HGs8R5MXXwhsHBCbryguE70zOf ZR5vyUPTctOgmPfYx5rtljexRM4DO6sg3zq0hvmbnsL/meouyJgte2KwWhJD7YSEHf1Z tCBfF9IDv60L3w5d2Mfln7GQybK7JNJebQJN8iuzFIpZx73bQQJOI2XAl9W40kbvLbbY p3NRcpy6EyQbtgKOs75M7DcUphEsTrCuHIgZwGrSA7T8TQun1ehG+zPmSt8bLaneENH7 VNBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si5455129edc.186.2022.01.29.04.20.41; Sat, 29 Jan 2022 04:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345772AbiA1D2g (ORCPT + 99 others); Thu, 27 Jan 2022 22:28:36 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:40490 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236369AbiA1D2g (ORCPT ); Thu, 27 Jan 2022 22:28:36 -0500 X-UUID: fd76c5dacd1f4fd6bdf0e4d6027a16be-20220128 X-UUID: fd76c5dacd1f4fd6bdf0e4d6027a16be-20220128 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 935666080; Fri, 28 Jan 2022 11:28:31 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 28 Jan 2022 11:28:29 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 28 Jan 2022 11:28:28 +0800 Message-ID: Subject: Re: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params From: "yunfei.dong@mediatek.com" To: Chen-Yu Tsai , Andrzej Pietrasiewicz CC: Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , AngeloGioacchino Del Regno , "Tiffany Lin" , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , "Steve Cho" , , , , , , , Date: Fri, 28 Jan 2022 11:28:28 +0800 In-Reply-To: References: <20220127025544.10854-1-yunfei.dong@mediatek.com> <20220127025544.10854-8-yunfei.dong@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen-Yu, Thanks for your suggestion. Send this patch again. On Thu, 2022-01-27 at 17:23 +0800, Chen-Yu Tsai wrote: > Hi, > > On Thu, Jan 27, 2022 at 10:56 AM Yunfei Dong < > yunfei.dong@mediatek.com> wrote: > > > > Init some of VP9 frame decode params to default value. > > > > Signed-off-by: Yunfei Dong > > Maybe add > > Fixes: b88dbe38dca8 ("media: uapi: Add VP9 stateless decoder > controls") > Best Regards, Yunfei Dong > > --- > > drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/drivers/media/v4l2-core/v4l2-ctrls-core.c > > b/drivers/media/v4l2-core/v4l2-ctrls-core.c > > index 54abe5245dcc..b25c77b8a445 100644 > > --- a/drivers/media/v4l2-core/v4l2-ctrls-core.c > > +++ b/drivers/media/v4l2-core/v4l2-ctrls-core.c > > @@ -112,6 +112,7 @@ static void std_init_compound(const struct > > v4l2_ctrl *ctrl, u32 idx, > > struct v4l2_ctrl_mpeg2_picture *p_mpeg2_picture; > > struct v4l2_ctrl_mpeg2_quantisation *p_mpeg2_quant; > > struct v4l2_ctrl_vp8_frame *p_vp8_frame; > > + struct v4l2_ctrl_vp9_frame *p_vp9_frame; > > struct v4l2_ctrl_fwht_params *p_fwht_params; > > void *p = ptr.p + idx * ctrl->elem_size; > > > > @@ -152,6 +153,13 @@ static void std_init_compound(const struct > > v4l2_ctrl *ctrl, u32 idx, > > p_vp8_frame = p; > > p_vp8_frame->num_dct_parts = 1; > > break; > > + case V4L2_CTRL_TYPE_VP9_FRAME: > > + p_vp9_frame = p; > > + p_vp9_frame->profile = 0; > > + p_vp9_frame->bit_depth = 8; > > + p_vp9_frame->flags |= > > V4L2_VP9_FRAME_FLAG_X_SUBSAMPLING | > > + V4L2_VP9_FRAME_FLAG_Y_SUBSAMPLING; > > + break; > > case V4L2_CTRL_TYPE_FWHT_PARAMS: > > p_fwht_params = p; > > p_fwht_params->version = V4L2_FWHT_VERSION; > > -- > > 2.25.1 > >