Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6271535pxb; Thu, 27 Jan 2022 10:01:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGWd6wte9mcoBAQbCDOfpqxAyNEkX21txn75OV12E65QfZvAhcwFIwOZOdLi2a/s0oB7d8 X-Received: by 2002:a17:907:97ca:: with SMTP id js10mr3706873ejc.347.1643306473800; Thu, 27 Jan 2022 10:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643306473; cv=none; d=google.com; s=arc-20160816; b=FcxNjAmvXOIjcsTiPQpzAO9V0OXtL5bp3xuGkczeyki90ZCep4zrVUMnc4dp9PwoHu TXM3wdakGIkc0PyDmTyHzqDo9Eb0vT+FnObYhWNS2PiKWpQf5kCruuNKbusI8EumeWOf fn9PihYJBTtSHjFx5zKfC9PV+vqR0Zx1PB/1CAAE5HhCoxfWtivDvbtsKXunuZ2Ssrcp WK4LYlBlK8vJsMWWrMNGKxTcCgWehddMakw2bQ+iHe2tvpr58Xj4m6iVgWMmylvfh81a PXnxckj+0mlG7VfbPhPWettUlw5gTUbKzvE+XFtTqBb6oL1a158B1Xl+DSPx5VKC6Xfa OFvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=pMFdUH9J0MOo/g6UB/DId3xqcn2ag0ulqeW2vHqIncA=; b=DUL284xMCNCHoleT644arczKFiLNL1I8amt3ctL2zwpHPaqoYl+7cqIrUdIK+QOZ37 Bm5vB0ueG1KI3jIZUNBvmtLyK0kFK4r3f2zkBTLAIHvJUhT7N1g/EHw4T6owUIMnlhg+ ZthqJKQ3J/xy/SK+nu8pXWGqC7g9NFBXgIABwF2LnLLafYzRmvvzUkLferhsGVlZjR/5 wEf5g01c6fuB98z40MHN69N/IijQcdlEUKgcEdWnC+jpIRg9LwbQqJnpybJVDTL22GBN f2jxjeLRRiKsJb4KDvWKvpd9NR8yNaQDjzmH8ZpyDzo+FV10ihaC6sBEk32jEXkqWul/ JlEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=g86eHbAb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si1603185ejy.248.2022.01.27.10.00.46; Thu, 27 Jan 2022 10:01:13 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=g86eHbAb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239535AbiA0Kfj (ORCPT + 99 others); Thu, 27 Jan 2022 05:35:39 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50866 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232813AbiA0Kfi (ORCPT ); Thu, 27 Jan 2022 05:35:38 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 256781F44F52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643279737; bh=e5seVwe3O1Ju0e2D55CC6b4M5ij69zZe37lFrDX/nWQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=g86eHbAbTwKydP+l4LMA0VIdu/Sgw7MiknoM9nX627hoPHva6fxUid3Nkgog4LWHy sy1tGS6D/nWgeKt3d/quJ8P7e5/nJgLp4mpHIxNHZFZ3wpEOf77DNUYXKb9wgL76lS yUOAeLG1ZIE0Iw4vtX9qQ+mHIRIZE7ZD4916qBCHZ+2YwI3Khyphy2A/tTpyTOeCfE nDvHL6fpcvwcUfc1e2TIr46Sj+mgZCAPTVV2ZNnZyP31zfNlqsUZE/jWH8i2hqE/BA iefHtTlhnVEgiAm0hDlkQ/E5yucDQd5cqzloskIRPlgdQAYRcNDmYSExUrtg2gWgKj 5UoKrjiq7kttA== Subject: Re: [PATCH v1, 7/8] media: uapi: Init VP9 stateless decode params To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa Cc: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20220127025544.10854-1-yunfei.dong@mediatek.com> <20220127025544.10854-8-yunfei.dong@mediatek.com> From: AngeloGioacchino Del Regno Message-ID: <07468ddd-22a8-c2a5-21fd-8468e0e77d74@collabora.com> Date: Thu, 27 Jan 2022 11:35:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20220127025544.10854-8-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 27/01/22 03:55, Yunfei Dong ha scritto: > Init some of VP9 frame decode params to default value. > > Signed-off-by: Yunfei Dong Hello Yunfei, This patch is not strictly related to MediaTek SoCs, since it's modfying v4l2-core. Can you please send this patch separately? Thanks, Angelo > --- > 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; >