Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2145847iof; Tue, 7 Jun 2022 21:16:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2hPIOr/HzWnBkWQay3MjQxuXt7K7XLqGLBk65/Z16GGcsf65momjVyyNxQaPZqZfhCf/a X-Received: by 2002:a65:4c0c:0:b0:3c1:5bb1:6701 with SMTP id u12-20020a654c0c000000b003c15bb16701mr28568769pgq.136.1654661806193; Tue, 07 Jun 2022 21:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661806; cv=none; d=google.com; s=arc-20160816; b=FQKsHjcjO1d+DQ9lE34O6J6XGOf9z+GhKncYfimgmzrgQ383CJsLU2c3Z0nk4Wz+Bu g68MEgQBXpGrN42j5bqcY3az88c6DuK0ueCdMnW/r/XOGjAODnScyYqCgtF31e4ZXdRE q3/q8c9Ew9ByrfYr4Lww+59BnwjR6vSrdlx/sB2t9/JK8eU/JOV2aZLyrlNQzZK8QzuS o3oZIr7FV6TneT8U3rC9Sg0hd/epeS6iWRjQNHq6p5XEX06p5zqHDJENs74/Vs3N6flm K23g2+5KZ5+T1x6BzyTPcaN7HvdF3ZGe+RU3iKOq5kWEkjOtmdh9fZrT8DfyHYHTBCs0 vWSw== 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=ABf2y/CsXt3IqWs14bSHRMd7Rp+gdRRHZsPZcJ39Ymk=; b=o8Z6MDuO5+FPtTyCNba1yqJv5QZP/xRlyuBNneotNgIgrDcxjFsCmG/ejTRnTd70ri ZeNFlZpYJhHJEpKpNh04uc60/6I60XZX3ZzHHIivYS6ByV7efPkduR/m6uMWiDUzyowN vqzHbH/1/aKkAOj0bi0a2AYr6vwsmM4YHD/YDgTcfMQO0KWuM4JX8RAbomfs97Z1/DM5 1sM1jIL8Er0CrWWyVuqquXoSLD9ZIRKewNtoRa3OJzcuoFxr1gLkcaLA/I8c9Jcd3arr VMdhJiWy0vsvx43Ai5LBL5EQwJQmyYDM2xa0IGI27GL6gHpEYt5HnlghAydVbVJmuLQD WpzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZF6llAc5; 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 c13-20020a056a00248d00b0050df0f5da58si16116723pfv.62.2022.06.07.21.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:16:46 -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=ZF6llAc5; 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 6D27D302FE8; Tue, 7 Jun 2022 20:48:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355949AbiFGWS3 (ORCPT + 99 others); Tue, 7 Jun 2022 18:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379651AbiFGVMC (ORCPT ); Tue, 7 Jun 2022 17:12:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1489D21A54F; Tue, 7 Jun 2022 11:54:06 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4B18A616A9; Tue, 7 Jun 2022 18:54:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C055C385A2; Tue, 7 Jun 2022 18:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628044; bh=lyG/J14veE4PPv7P93S7wmHZ8PtfDwL4ePf9On8nxYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZF6llAc5N8qTqgrsRaxfUi/1wwxDbdQuMJRn0aS9D2ogsmghHDyFtppIF7BktL9G3 Y+5fJ5OIerMTlD6/s+yQYlXszu2ELncY3BA3tMX82hpgyDmJbJZ90NDCx7Np7GVAdk qeQMNfpaZnluzB58xtdxjKNbSuHrA1wV+4THaN8A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Dufresne , Sebastian Fricke , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 185/879] media: hantro: Stop using H.264 parameter pic_num Date: Tue, 7 Jun 2022 18:55:03 +0200 Message-Id: <20220607165008.213259241@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Nicolas Dufresne [ Upstream commit 831410700909f4e29d5af1ef26b8c59fc2d1988e ] The hardware expects FrameNumWrap or long_term_frame_idx. Picture numbers are per field, and are mostly used during the memory management process, which is done in userland. This fixes two ITU conformance tests: - MR6_BT_B - MR8_BT_B Signed-off-by: Nicolas Dufresne Reviewed-by: Sebastian Fricke Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/hantro/hantro_h264.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers/staging/media/hantro/hantro_h264.c index 0b4d2491be3b..228629fb3cdf 100644 --- a/drivers/staging/media/hantro/hantro_h264.c +++ b/drivers/staging/media/hantro/hantro_h264.c @@ -354,8 +354,6 @@ u16 hantro_h264_get_ref_nbr(struct hantro_ctx *ctx, unsigned int dpb_idx) if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) return 0; - if (dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) - return dpb->pic_num; return dpb->frame_num; } -- 2.35.1