Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp371638pxa; Fri, 14 Aug 2020 06:42:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS5HVBnYPQEcPnHHHSDk8PIZhafiqtoTx3fwk4WRe5/chCVOU784qJQuNI4kNocUhg0YCK X-Received: by 2002:a17:906:1396:: with SMTP id f22mr2369455ejc.227.1597412536955; Fri, 14 Aug 2020 06:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597412536; cv=none; d=google.com; s=arc-20160816; b=ypmCk9xc5L2PUilaYsyfjHNFJiN9632+qKBw8Pv9WJLKmtjGXFWlGFXeut0Ml8DTbp HwiqySSIUreKmdutfQMG/wI155bsIvHj0cLfMxWiA/PoDcv+ySL0gHsFrpFKxhMkvSWs fcG5fucPSe52oArrDCQuDKQIxwiGQiTznkPEqgZ0iJ5ouF80q/BRpO8Hj33q+AiHsopW UmFOjXCsiM8QRao1wKhSZsUa5eO0on5G/WiI/N76JutDTL9JgdGgJsQSlz1L5DntKYMI EVT8191+4NkT56J1m0oH2gndjfK/6WB91lcQ0/yTAJBesm3lQUoyR8KoSUCwpg+yWmHC XuDg== 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=6Tj+NC9iPdA7u6eWN+qJcH8nLCkPWsSKIRAmOfmuMPY=; b=oJhCjliqig9e+ecwzF6PTt7vB4VXaSX1hxVLghMIqDvoTZr/nTBNQQh6Nj89dNuyOt EzCfMijqsu9qMeWFtTeccSzSMSXNJ/cHrTfQ8QNEIzai8+t9GidCiik7H8x8Sej8+J8e gfop31au68FLnW6Cr1XJwGp42N103h15kEwsgxBDxdbryZZLeBxgQp/Ij2FRpKXOqUTt hNS3E3arhE39wUjXdR1r4VMtnz/hw8ZrJ67xUoTJOyX05+COcZAVCvQ2Vkan8jUpAIl8 dkni32AKXiTae6uMyZEol1QJmKknbBZbJCpMg3rVebrtVH5AGREqgy7ikxdx8UpbHmGB uq3A== 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 s16si5232497ejd.343.2020.08.14.06.41.53; Fri, 14 Aug 2020 06:42:16 -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 S1728857AbgHNNhl (ORCPT + 99 others); Fri, 14 Aug 2020 09:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728828AbgHNNhk (ORCPT ); Fri, 14 Aug 2020 09:37:40 -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 CF812C061384; Fri, 14 Aug 2020 06:37:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id D5C9129A807 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 12/19] media: hantro: Don't require unneeded H264_SLICE_PARAMS Date: Fri, 14 Aug 2020 10:36:27 -0300 Message-Id: <20200814133634.95665-13-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 --- drivers/staging/media/hantro/hantro_drv.c | 5 ----- drivers/staging/media/hantro/hantro_h264.c | 5 ----- drivers/staging/media/hantro/hantro_hw.h | 2 -- 3 files changed, 12 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index 34797507f214..3cd00cc0a364 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -306,11 +306,6 @@ static const struct hantro_ctrl controls[] = { .cfg = { .id = V4L2_CID_MPEG_VIDEO_H264_DECODE_PARAMS, }, - }, { - .codec = HANTRO_H264_DECODER, - .cfg = { - .id = V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS, - }, }, { .codec = HANTRO_H264_DECODER, .cfg = { diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers/staging/media/hantro/hantro_h264.c index 0cbe514dc79a..6887318ed4d8 100644 --- a/drivers/staging/media/hantro/hantro_h264.c +++ b/drivers/staging/media/hantro/hantro_h264.c @@ -349,11 +349,6 @@ int hantro_h264_dec_prepare_run(struct hantro_ctx *ctx) if (WARN_ON(!ctrls->decode)) return -EINVAL; - ctrls->slices = - hantro_get_ctrl(ctx, V4L2_CID_MPEG_VIDEO_H264_SLICE_PARAMS); - if (WARN_ON(!ctrls->slices)) - return -EINVAL; - ctrls->sps = hantro_get_ctrl(ctx, V4L2_CID_MPEG_VIDEO_H264_SPS); if (WARN_ON(!ctrls->sps)) diff --git a/drivers/staging/media/hantro/hantro_hw.h b/drivers/staging/media/hantro/hantro_hw.h index f066de6b592d..219283a06f52 100644 --- a/drivers/staging/media/hantro/hantro_hw.h +++ b/drivers/staging/media/hantro/hantro_hw.h @@ -56,14 +56,12 @@ struct hantro_jpeg_enc_hw_ctx { * struct hantro_h264_dec_ctrls * @decode: Decode params * @scaling: Scaling info - * @slice: Slice params * @sps: SPS info * @pps: PPS info */ struct hantro_h264_dec_ctrls { const struct v4l2_ctrl_h264_decode_params *decode; const struct v4l2_ctrl_h264_scaling_matrix *scaling; - const struct v4l2_ctrl_h264_slice_params *slices; const struct v4l2_ctrl_h264_sps *sps; const struct v4l2_ctrl_h264_pps *pps; }; -- 2.27.0