Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp331408rwr; Thu, 4 May 2023 03:56:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jAr6ShhR8paHo2uXDZxMR2XOL4InAIbIuZTRS/22j7nm1ddoX7MCjMJtC8VDKp/nvhuRZ X-Received: by 2002:a05:6a20:8e23:b0:ee:b372:207b with SMTP id y35-20020a056a208e2300b000eeb372207bmr2138256pzj.54.1683197786757; Thu, 04 May 2023 03:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683197786; cv=none; d=google.com; s=arc-20160816; b=jymGIAeXYxIU5xRUSaEaZ/ORDMPPNHASIs2amL9g83vyMm/XSjerc+JrD+lDSc98G2 VytHAD0lL+Ho5kGNfId9FrQh/z8NiS/LPSyrMU19tNy9qhQlGsqFRIQXHMtUJaYt/Y2o jso5+xCyrP4fHNCvYz5zIRqbprAONWfZZaH9FHKPYq2eVdKgK/jESkiQjNK6wD5QPC5e cdynD624hgw4Nx/QkQQuQ37NdOwB8OH0u7GtsjdmlljFGxPUHKgF4qv8yoes7IyMT0uM 2u/xoHyxiVTYnvYAnRpI+iAfQCT+TiQRezsE9Mr2rasO2chHUbENvI1F3G5ZMnAMQaCM sESQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=FcjjehFCYBKX3QBMmrHVYG5sIIbJ2DYag9lElXm9IGU=; b=QFyUOSOo7Kf+aQzTMpKwATQJEaIV4dQfiU5cxZ1etSOddZuVG5mjQINIzR/0jeX+qD Uc6T2l6CDStsCvIwIIVRZs26pNU3YxH5LXHLMbvoPLi+NsbREYqyGauepJcMyQCQ6g5k AbYtE2z2aEoNl0W+PcEqir2zaf/2aiRPwPXco7CFEynDKZYdRkJrsqzK98eZECHe+Xhd ipYPzHU1Tve25SgSAxCvxt4M86myALlt32wMPk5dbC7vLdiS0ffFWXYGyQbTZZXz9MEi mwffosK1oj/EdOJbQYuobIuNfX1UmWh87HRjPdqMrmH5lzm06f5qzyo31nz1AhJWJBFg nSZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="G8Aw/J89"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902e94700b001a66ff9542fsi36733757pll.616.2023.05.04.03.56.10; Thu, 04 May 2023 03:56:26 -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=@quicinc.com header.s=qcppdkim1 header.b="G8Aw/J89"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbjEDKhD (ORCPT + 99 others); Thu, 4 May 2023 06:37:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbjEDKgu (ORCPT ); Thu, 4 May 2023 06:36:50 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2200846A1; Thu, 4 May 2023 03:36:50 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3447lgi9012994; Thu, 4 May 2023 10:36:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=FcjjehFCYBKX3QBMmrHVYG5sIIbJ2DYag9lElXm9IGU=; b=G8Aw/J89WF1iGGLOVae1Q5tIg+2TkSPB+2vg3Zb3gQp2f+GWa+y6UKV8qJ7lf9C17/XN 4Xj/jCZSf3q3XKQsNJ9VDgTIagbi3dm8V5YtAwbUVSpV4BOBDmEEDkvFJ9R8wjsfWyzh 9w+xjAGxL3XUbl2IyVBzHzzBom1y1TsaAk5NgZ1sTOhmqwBATZ7HuBeLs/XnORqD7HOD VkxGam92985z45dsMFudZ4vg/Jh8bee5DMO9WCR+wZIGM3Tztq1jHKnpbD2gPOrFLwWD joHDYpVo8hfSQEcsGXI0TZ4157lEtfB2xrXxDKm7PawcLxv9NbR95J77NRkP+y2aS3gU mA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qc8kw8b6v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 10:36:45 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 344AYaeE000446; Thu, 4 May 2023 10:36:42 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3q8vakt1qc-1; Thu, 04 May 2023 10:36:42 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 344Aaggg002438; Thu, 4 May 2023 10:36:42 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-dikshita-hyd.qualcomm.com [10.213.110.13]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 344AagpG002435; Thu, 04 May 2023 10:36:42 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 347544) id 92E8437B0; Thu, 4 May 2023 16:06:41 +0530 (+0530) From: Dikshita Agarwal To: linux-media@vger.kernel.org, stanimir.k.varbanov@gmail.com, quic_vgarodia@quicinc.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mchehab@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dikshita Agarwal Subject: [PATCH 1/4] venus: add support for V4L2_PIX_FMT_P010 color format Date: Thu, 4 May 2023 16:06:36 +0530 Message-Id: <1683196599-3730-2-git-send-email-quic_dikshita@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1683196599-3730-1-git-send-email-quic_dikshita@quicinc.com> References: <1683196599-3730-1-git-send-email-quic_dikshita@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 4aLmHT6MiY8caX3h-l6S-uV_AIuTlFqe X-Proofpoint-ORIG-GUID: 4aLmHT6MiY8caX3h-l6S-uV_AIuTlFqe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-04_06,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=958 malwarescore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 impostorscore=0 bulkscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040086 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 add V4L2_PIX_FMT_P010 as supported color format for decoder. Signed-off-by: Dikshita Agarwal --- 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, -- 2.7.4