Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp721438pxb; Tue, 5 Apr 2022 20:18:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkfc7mQ5+3tdhkNRov8YT5XuSOVdM8lpCVQSaWXOLafOAl6xK9Fw5WsaEAcAoX8DGdUWtD X-Received: by 2002:a05:6a00:810:b0:4fa:e71f:7e40 with SMTP id m16-20020a056a00081000b004fae71f7e40mr6647611pfk.15.1649215089382; Tue, 05 Apr 2022 20:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649215089; cv=none; d=google.com; s=arc-20160816; b=wODYO0xkYiEfMAYf9sY5ed8wZkY3rkrlZghbb6WkNs1n4pae6VoPXbb9Sf/LnZeGmI 6EegwP7aYK2bppIwCv52TQPNRKlD3t5eZusgJ3CpfufLGndpxFoGOoC74cr+MefyIs1P Sy/70S8lMmQStf97WfogBWqBnujJE8HcwzZnU/zNVuTw4sAjn0xDWtrc74RT4b9Djy7f URo22xobpig+k+L88REeDHD9sXFg913OTj5Wm46OrmpRxy6u5I00z/wyHxh53Fg4lZL4 yYU9gckiPO+hRrHT1HYens/GhWG8vB25Fj5TMtnwmm37fC/WPJPnr6mBJpXnAhPq6jMb 4Rjw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w+x48I9mY3QX8QWtp/VrpOd41x0UygRbSVONr/StN4g=; b=Vpf06uWn/HNGLhJJK9f9BBH3XhhJT86WKixAjvVN3/MjnPacqFLZq6nGhriHPghlcB aCfOeKN41q6AqxcE469uuEJDBK+c+XzIXXhuh7Dp0XBGNhtopjDm6kFU/r8uw1h7l0QH ihuEvx5NCEPKu/1i8mCvwLaOvwr0f/3YZ0IJmK0YcTyzNQjrJfH+V9fyETdPqyZpAx8d yjFkR2Fn1yRlQfiMhwX2GbJZIEwo5c+wXr5J3slcaDeTN6Qp/YL3OgzhgWh5uSvBp5XB 3ybMfS5bK+iRC2LR97wb76VSEvC8kXjjrFOwsb/v02KjdvIAQFoUpg2LriyBkwmIPo7c NAJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j4pYhEba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f62-20020a623841000000b004fa3a8e007asi13524667pfa.305.2022.04.05.20.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j4pYhEba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CA67915B9A3; Tue, 5 Apr 2022 19:54:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235276AbiDEIPt (ORCPT + 99 others); Tue, 5 Apr 2022 04:15:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235492AbiDEH7r (ORCPT ); Tue, 5 Apr 2022 03:59:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D79A764BC7; Tue, 5 Apr 2022 00:54:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 86FAFB81B90; Tue, 5 Apr 2022 07:54:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCD84C340EE; Tue, 5 Apr 2022 07:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145287; bh=8l5CpaMsFM/qAf0WeE9Yt+fxkhGsxjEKQq74YjGI75g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4pYhEbaDvRIin3/DLWkKw9zqkRmEojP2JOYoKWDaItwSLY8SB6gzD3BrQBq4zGV6 XPxyALfqGsaWyzU3oamAyqNcY28uGfSnVATRPofTvOYkJfAT4Lun9wFL9L7fy/peY1 zBx9a2mLZRLq2eAOYB1FaDigRDDyS4MI+ZhPgASQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yunfei Dong , Hans Verkuil , Sasha Levin Subject: [PATCH 5.17 0353/1126] media: uapi: Init VP9 stateless decode params Date: Tue, 5 Apr 2022 09:18:20 +0200 Message-Id: <20220405070417.991187300@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Yunfei Dong [ Upstream commit f15799b7b796dfaea63a86913246202d64762941 ] Init some of VP9 frame decode params to default value. Fixes: b88dbe38dca8 ("media: uapi: Add VP9 stateless decoder controls") Signed-off-by: Yunfei Dong Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- 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.34.1