From patchwork Thu Jan 16 23:17:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 233819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D8B3C33CB6 for ; Thu, 16 Jan 2020 23:25:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7137820684 for ; Thu, 16 Jan 2020 23:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217121; bh=lxi8UicBoiMwTp0Kha7H9trLUAbDNsUYIP4CD6rmsPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kML3aNlowcNt52EugUcoiBxXCBgmYiIM2LQQsjSeA1qKzuJnRbWf1TqUxu2QainxS YUOFsUTwsi/SdU+b1rXxrwUBdSA/gaEF+tMopvnTZvW/l1NAmA76DF+WhAFaU6Awv7 6JMsvbEiMZYdBEzRkgxP2c0t31Wgj39HWvfaUjSQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388118AbgAPXZT (ORCPT ); Thu, 16 Jan 2020 18:25:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:54880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387467AbgAPXZS (ORCPT ); Thu, 16 Jan 2020 18:25:18 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 623B02077C; Thu, 16 Jan 2020 23:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217117; bh=lxi8UicBoiMwTp0Kha7H9trLUAbDNsUYIP4CD6rmsPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n8dvpa2GydcCB3StGkq1SNO2tJ/G1If8rSSEOngBFiTJ0/4gu2EXr5NSqupJzR6T/ PSnebXQcQAUU8fYJhrYxHKzhjGuSUPc7Mx9ajdCKgizEs1+E86PGwG2QakybRFd+Zx lNuw5wJ4sdzI/jaGMRrJVWknD2XLgOg/BVh0X/JM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonas Karlman , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.4 155/203] media: cedrus: Use correct H264 8x8 scaling list Date: Fri, 17 Jan 2020 00:17:52 +0100 Message-Id: <20200116231758.372108707@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116231745.218684830@linuxfoundation.org> References: <20200116231745.218684830@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jonas Karlman commit a6b8feae7c88343212686120740cf7551dd16e08 upstream. Documentation now defines the expected order of scaling lists, change to use correct indices. Fixes: 6eb9b758e307 ("media: cedrus: Add H264 decoding support") Signed-off-by: Jonas Karlman Reviewed-by: Philipp Zabel Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/staging/media/sunxi/cedrus/cedrus_h264.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_h264.c @@ -244,8 +244,8 @@ static void cedrus_write_scaling_lists(s sizeof(scaling->scaling_list_8x8[0])); cedrus_h264_write_sram(dev, CEDRUS_SRAM_H264_SCALING_LIST_8x8_1, - scaling->scaling_list_8x8[3], - sizeof(scaling->scaling_list_8x8[3])); + scaling->scaling_list_8x8[1], + sizeof(scaling->scaling_list_8x8[1])); cedrus_h264_write_sram(dev, CEDRUS_SRAM_H264_SCALING_LIST_4x4, scaling->scaling_list_4x4,