Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp362751iog; Fri, 17 Jun 2022 05:07:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOWTAoJn+iOtk+L/0I68KRz1/xk4OCAGLKwgbkfPQ1vL8rN1mwuM4kxc53B5AGnvkkVqL8 X-Received: by 2002:a17:907:9689:b0:71e:56c1:838b with SMTP id hd9-20020a170907968900b0071e56c1838bmr1274388ejc.304.1655467640935; Fri, 17 Jun 2022 05:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655467640; cv=none; d=google.com; s=arc-20160816; b=nmlPId0bU1i/rHZY/thOgGR5U071YN4TF5N1TgGbFzii9RLLJG/4qWnclayPzp//6/ 47OyQYm9d9xSnVtrmq2vcEGg0uwqV/4HsJnuXP4tU021DXSPIHYt0+zzqmcbrcWIJxuR PwnmSuymluhYslzkQODbYIgpyt2mtUlbnHJlCqbLhap2LF5y3cP/u/StzS+R5fEgpm1F 4Bz1QdCM2MDv8VgsvpMowd9R59piwPJdr1hRN2xhzuNDIO/YYFBSAq3EFDWauL/whjYr nq+NIBgaBw6gZfHiRpg+lEpn7mU5Zb1YYusSjRK0OoS41EJp3jBVDTWQaCQxV4Qr446S bTuA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3uw9DTlVlL/3p2zPOPmNWGMTwEFie9pHBKmiA6Ivfi0=; b=w8N4itCa+2aBHOsUIDEcKCQnr1RJ6dKqddTQ0POOhVFhlAQcCTVYugdUf10kPWEbIn kLeRrHjh95MAJTmW/V5b4JpmZGfObDfUNZ/Iuf0TbW+WKbvTfGHiWicgLHq5bPaUHQZk 45I8/5yKFFi2CvGLbR9dLeMyttcJfD4IUoMaTw3hsTqezlSPdgJz4ZzgcdidGvECyLYc mWOa7AiWkluoslYOiJw7N25taB1gbkd/c49yp54IQH/MAL7tQQHWTDlLEMu5ylIfjvm9 pAJefvb++r+L/8UmIm7ZlFNCkgzXxuVAjjDS3A2cBAUVbJCuyJFXU01GGmrJSim5CtWo n73g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WHiyH0je; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a056402268c00b0042dcf96f4b1si792466edd.23.2022.06.17.05.06.35; Fri, 17 Jun 2022 05:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WHiyH0je; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382290AbiFQL6p (ORCPT + 99 others); Fri, 17 Jun 2022 07:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382168AbiFQL6Q (ORCPT ); Fri, 17 Jun 2022 07:58:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 917AE237FE; Fri, 17 Jun 2022 04:58:15 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:faf2:1a12:f903:cc5e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id E532F660182B; Fri, 17 Jun 2022 12:58:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655467094; bh=fxXI7c8YXJnT7vm+g7u/aQWMuoQ0IJrsBIzhoiD/xMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHiyH0jeRJY0lzGPOQRJdYu8CI0pnfTp42+8SfKodfAfvThdlVQMp5r36uFQq8KcO IODu9Q6+r6a8D0X5cBPa9XkSSyAkwteXz03/F/5iAvSp0WYK6fi9KRhz5kpxKFJrJQ 2gAQMEpdKFXYN2JQcaCl3oGAkQGcio3L1XJ3oucSieTzOt1g4NyvBqqydvylUhwt32 hRq+LagLJIGGUL1YuLziWG85CdL8HpR1/3i7OvgK5nf3jh8M1GaS2MzoMzYWxWK3Yn Cg39tZbklkbA14PwW4c6/K5nQhS5XH3bSLNresaPWkIJV+QqWl7QbQAzbTomsDb3xK dPmGYQi84EmbA== From: Benjamin Gaignard To: mchehab@kernel.org, hverkuil@xs4all.nl, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, nicolas.dufresne@collabora.com, andrzej.p@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH 5/7] media: Hantro: HEVC: Allows 10-bit bitstream Date: Fri, 17 Jun 2022 13:58:00 +0200 Message-Id: <20220617115802.396442-6-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220617115802.396442-1-benjamin.gaignard@collabora.com> References: <20220617115802.396442-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Stop limiting HEVC support to 8-bits bitstreams also accept 10-bits bitstreams. Signed-off-by: Benjamin Gaignard --- drivers/staging/media/hantro/hantro_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_hevc.c b/drivers/staging/media/hantro/hantro_hevc.c index e06837108a09..85688a4df166 100644 --- a/drivers/staging/media/hantro/hantro_hevc.c +++ b/drivers/staging/media/hantro/hantro_hevc.c @@ -159,8 +159,8 @@ int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc if (sps->bit_depth_luma_minus8 != sps->bit_depth_chroma_minus8) /* Luma and chroma bit depth mismatch */ return -EINVAL; - if (sps->bit_depth_luma_minus8 != 0) - /* Only 8-bit is supported */ + if (sps->bit_depth_luma_minus8 != 0 && sps->bit_depth_luma_minus8 != 2) + /* Only 8-bit and 10-bit is supported */ return -EINVAL; ctx->bit_depth = sps->bit_depth_luma_minus8 + 8; -- 2.32.0