Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp870511rwr; Thu, 4 May 2023 10:37:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40aTe/i0UOksXh41JYiklXNZROHKFthvPlI4UR0YobHoXxbFDt7ojcTV/tZI6lPhxqqzJL X-Received: by 2002:a17:90b:180d:b0:250:461:ae78 with SMTP id lw13-20020a17090b180d00b002500461ae78mr2542124pjb.31.1683221835470; Thu, 04 May 2023 10:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683221835; cv=none; d=google.com; s=arc-20160816; b=IjquhGxfLxjKh8qCGqd/ZOu0MJL5iK6lLND7CeWPmcVzVOfoJ4Pt6TXh4XjN+rH3uc qMEEZsvG/9ibDWgAugjXV3sfari2KosF/cQnkQVW8UVXtEFjIG25NtV6bdkuAdHBmS1M uowIXVodoMK4pr1ZccMxGk489Fa/fF0oMpfImcFlJcVWfDcuQ5zLSSv1laNP1eeiiuXW k1UOdOOlAPt27F+H8kYhWgOEAJbLZ3jPvwCs4IBduYtLisyqbFrtCTN75Xnbxdo3n+bC /zwibbMe4Roa51HJAxDRLx1F65u6URlu27VoHmtjRiK516RiPLA8K9Ddcamgb9RoodES oJzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ydyx1GdsGCwv5KCUKCfbJnd97Kzneu6w6rXsPTn81eI=; b=JNqinyZdwyYtq6QwYOhH9HZBVCsNlwdmLqRhHmdc79zh5uXQF4HuieBq3cfQ/kKCEX OaPCL9OUyRQRhNDSGVgw9N2e7RZCD3OekSvNmG1cv/s/pf85x379aw84SeWUliWOhP7o w+PE7ZgIWBAGj59AMWTbQpxfLJGpnkF+8rkoXZ/VL3pRr6bNqh4CDspFRL9UzvcpoVdq j6aXiUXUzhxCj6QjK6RWI4Kx9xjsjaZHUOR1y6kXrqTW6StjCYV7ul6rvcDr6gJrI8eU ToQmrtbEGBsECdHu7OF7SXg8ItPTYmRGmC8Z6yAI+4KYBnKXG38H1oD6qI1NmiOpgmV0 qIiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyCx7Dxj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a17090aa40b00b002470f78a168si4189807pjp.104.2023.05.04.10.37.02; Thu, 04 May 2023 10:37:15 -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=@linaro.org header.s=google header.b=iyCx7Dxj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjEDRS1 (ORCPT + 99 others); Thu, 4 May 2023 13:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbjEDRSX (ORCPT ); Thu, 4 May 2023 13:18:23 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BBB46B6 for ; Thu, 4 May 2023 10:18:18 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4eed764a10cso913959e87.0 for ; Thu, 04 May 2023 10:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683220697; x=1685812697; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ydyx1GdsGCwv5KCUKCfbJnd97Kzneu6w6rXsPTn81eI=; b=iyCx7DxjVrprI1HjHon8qcUNj/3kNRBnJZi32NW8/58NlhrpZVPdElQR+foWPWluSn NYQl5rz8gmDzEfMRF21I9RPRHwDA1sHb03qxdgpVG8/gI5iO24XTvtDw5HeSyVXCWzd2 Hr7t0jDxC4PhY5q1h4ZHwRWzxKnSTSnOhzyG2sgOdsGRihj9fNynBrB5zL6xZB2JsFYc Bram+l9udSKDtDh01jc5bGFoPrUiRUtF/VpNaJkO+PO4eUFw7Miy1+0Wmy3n8e9m0Cds QQ+aSqEhULKDAwxjPybMkFnDU+Y78tQKhvyuZ6I8g+H1gJdsJxDgMa+cFI580x36gVKY Hcxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683220697; x=1685812697; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ydyx1GdsGCwv5KCUKCfbJnd97Kzneu6w6rXsPTn81eI=; b=UHJaoUiv7X725eQQXGdJ8rnFoop9T0Kre6hvjOZeNH6fWg/5Ho1Q1/hvbRNpyMDzA9 i5NwjsEB5qgwb/FCHoB5LW8SuRcCqZUjPS81PSluhjEVDFh6rMDGDlw/V2WTCTmxUedp Ucb8phynAfMH6SwbjhgciZZv3GyYHXnyh2O3Ff7mDtH+RFP6pI4CbRLgAzsmVudoNxwU vravP7hatSTO5e9VL4UhqOKSfioWmxh72nbNVw+4bJ98C8kJ3xh38P9sA4NmHOYBAH49 nnZwl7i1aCFpBhljHa4izgYinLArUg37QOYLyEoADpxhshLJo4kZ0QjGv5cIWLEQoqwi fznA== X-Gm-Message-State: AC+VfDzrvbjfYtCp8QppWEFq3n4mJK0mXj9/rb7qQQrcT7FaV4iPjmY+ Tngm237kCKku7YRtSP8WO6FNbQ== X-Received: by 2002:ac2:51db:0:b0:4ec:9f24:3e5c with SMTP id u27-20020ac251db000000b004ec9f243e5cmr2044378lfm.2.1683220697209; Thu, 04 May 2023 10:18:17 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id c17-20020ac24151000000b004cb43eb09dfsm6612921lfi.123.2023.05.04.10.18.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 10:18:16 -0700 (PDT) Message-ID: <0e0f3d0f-5d9a-12d0-3859-32cdb464d5e6@linaro.org> Date: Thu, 4 May 2023 19:18:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/4] venus: add support for V4L2_PIX_FMT_P010 color format Content-Language: en-US To: Dikshita Agarwal , linux-media@vger.kernel.org, stanimir.k.varbanov@gmail.com, quic_vgarodia@quicinc.com, agross@kernel.org, andersson@kernel.org, mchehab@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <1683196599-3730-1-git-send-email-quic_dikshita@quicinc.com> <1683196599-3730-2-git-send-email-quic_dikshita@quicinc.com> From: Konrad Dybcio In-Reply-To: <1683196599-3730-2-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 4.05.2023 12:36, Dikshita Agarwal wrote: > add V4L2_PIX_FMT_P010 as supported color format for decoder. > > Signed-off-by: Dikshita Agarwal > --- Reviewed-by: Konrad Dybcio Konrad > drivers/media/platform/qcom/venus/helpers.c | 2 ++ > drivers/media/platform/qcom/venus/vdec.c | 4 ++++ > 2 files changed, 6 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c > index ab6a29f..5946def 100644 > --- a/drivers/media/platform/qcom/venus/helpers.c > +++ b/drivers/media/platform/qcom/venus/helpers.c > @@ -612,6 +612,8 @@ static u32 to_hfi_raw_fmt(u32 v4l2_fmt) > return HFI_COLOR_FORMAT_NV12_UBWC; > case V4L2_PIX_FMT_QC10C: > return HFI_COLOR_FORMAT_YUV420_TP10_UBWC; > + case V4L2_PIX_FMT_P010: > + return HFI_COLOR_FORMAT_P010; > default: > break; > } > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 4ceaba3..687d62e 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -43,6 +43,10 @@ static const struct venus_format vdec_formats[] = { > .num_planes = 1, > .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, > }, { > + .pixfmt = V4L2_PIX_FMT_P010, > + .num_planes = 1, > + .type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, > + }, { > .pixfmt = V4L2_PIX_FMT_MPEG4, > .num_planes = 1, > .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,