Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp370476pxa; Fri, 14 Aug 2020 06:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznm156bLB4ZxHdWCTzDFIIDrJ3KR/8LV3NU+oX+oxERAilSKfnGUwlq9nXaTzzHyDLDc7W X-Received: by 2002:a17:906:a3d9:: with SMTP id ca25mr2481111ejb.164.1597412427270; Fri, 14 Aug 2020 06:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597412427; cv=none; d=google.com; s=arc-20160816; b=kuwfCi9arwxc9pkg5+DGvyAT5S1NyhmC0efjHnkbch4LiAW/QZ2Wdq7Kj33VNwrbAe 5KTU8O1jlOjCCxwAeN8Y3iibXFKNuruy/j4491DGZBIv+JZxXvsB3Yf799LnPUGYNy9A o5sYE5bx23WDtpaiORmiBh7E89tVEqDIj3Y2mtJTQIx9G9YLiHA01OnBXAsQ3DiW8dV7 shc+sS3j2kgLNvZAG9vOhs3W+RhDln/Qsa91rbYbFTjhyXgydzC6Urzx0FBmIn/iPYns +JEBsVFI7+SvoNIz9EJjXTV2RzhkSca4Ba1u739ajGlY4ZY4++ZTjoHBDz8/INRfjiiq sXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=z4vRocx7pFMShrDIHMm2ozg17s11hW20pLlIMh4lIwE=; b=mwJ0aNyOZPX7s8PR+EcCScv/u8WInRLIiER4aFySpALsE2N1Lfn8AMUTvJ8RedRKIg tK+TKQE99aMRNaoRW5jPsYqKW1N9Y2e/HsPjq20ZNZfOVfWUjd8N2Lx9CctmvAzF2G3f a+ffrGHbB6RXrkTcRGVzoNuUwxEQ0RFxuY1nashdjgib2Eptse99NYjEF/QcdsILjALW NipBqOInHf8jGWyoOd5NNLfU9rRT3yrryAKHlcthq1AK3xByungdJy5Hs08XONq3WIWr 1QmznaCNyJbsSi+JOm5bGXeX9AGx7o7oy2VNF9c/hXgwKgka9wTye2L3LgUMe+w/B8BY yi+w== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si5483273ejg.240.2020.08.14.06.40.04; Fri, 14 Aug 2020 06:40:27 -0700 (PDT) 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728868AbgHNNhs (ORCPT + 99 others); Fri, 14 Aug 2020 09:37:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728863AbgHNNho (ORCPT ); Fri, 14 Aug 2020 09:37:44 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EFA7C061384; Fri, 14 Aug 2020 06:37:44 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 54F1B29A825 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski , Jernej Skrabec , Ezequiel Garcia Subject: [PATCH v3 13/19] media: rkvdec: Don't require unneeded H264_SLICE_PARAMS Date: Fri, 14 Aug 2020 10:36:28 -0300 Message-Id: <20200814133634.95665-14-ezequiel@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200814133634.95665-1-ezequiel@collabora.com> References: <20200814133634.95665-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that slice invariant parameters have been moved, the driver no longer needs this control, so drop it. Signed-off-by: Ezequiel Garcia Reviewed-by: Jonas Karlman --- v2: * Fix wrongly removed SPS. --- drivers/staging/media/rkvdec/rkvdec-h264.c | 4 ---- drivers/staging/media/rkvdec/rkvdec.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/drivers/staging/media/rkvdec/rkvdec-h264.c b/drivers/staging/media/rkvdec/rkvdec-h264.c index 70752e30b3a3..584e0d5c493b 100644 --- a/drivers/staging/media/rkvdec/rkvdec-h264.c +++ b/drivers/staging/media/rkvdec/rkvdec-h264.c @@ -109,7 +109,6 @@ struct rkvdec_h264_reflists { struct rkvdec_h264_run { struct rkvdec_run base; const struct v4l2_ctrl_h264_decode_params *decode_params; - const struct v4l2_ctrl_h264_slice_params *slices_params; const struct v4l2_ctrl_h264_sps *sps; const struct v4l2_ctrl_h264_pps *pps; const struct v4l2_ctrl_h264_scaling_matrix *scaling_matrix; @@ -1066,9 +1065,6 @@ static void rkvdec_h264_run_preamble(struct rkvdec_ctx *ctx, ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS); run->decode_params = ctrl ? ctrl->p_cur.p : NULL; - ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, - V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS); - run->slices_params = ctrl ? ctrl->p_cur.p : NULL; ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, V4L2_CID_MPEG_VIDEO_H264_SPS); run->sps = ctrl ? ctrl->p_cur.p : NULL; diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index c8151328fb70..7c5129593921 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -59,11 +59,6 @@ static const struct rkvdec_ctrl_desc rkvdec_h264_ctrl_descs[] = { .mandatory = true, .cfg.id = V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS, }, - { - .per_request = true, - .mandatory = true, - .cfg.id = V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS, - }, { .per_request = true, .mandatory = true, -- 2.27.0