From patchwork Thu Aug 27 09:24:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 248445 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp9786ilg; Thu, 27 Aug 2020 02:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxem9OM3PXEgoSOkh7MvL2is+B5R0MO+/NyE4MvLgubwkSV4Gg4JSNGa1E97KNvP6soy4P+ X-Received: by 2002:a17:907:426e:: with SMTP id nx22mr14939939ejb.340.1598520392707; Thu, 27 Aug 2020 02:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598520392; cv=none; d=google.com; s=arc-20160816; b=NeLEnsgKyZY8HhSuFTELsgVTrW1ADOlr4UCwKjtWbj7JJZdVri1Og3aIF8hS1M8+bc TRZV7tj0veEC9f8wM8+Pe8B2JzCmX/jYwWSw+Sc2dft9Fixj8NAoq1v8WcghV0gt1h+L xTQykQgePjcKmYzpxZ2A18oG3T3Zasg4Uof5fszG1zzjhfDP+sWpEWyiC1xmB7kWM2X3 3XPZACQHOzTMa8TiCCECO9IGEltjZEuduFDuHMDFbk4oTG/O3LiKXadJfyxO0ozcKzL+ Sfo3iUdDH5PTCcwgHp+xDKqBv56MzEY6zvPxUkzLB2d/QC9zMZYxHf4X508m2TAC6iT2 z83A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=rGqT7srmFAjxM5njBGX2TMqgn+GAvNxXqSd+GHPZX9A=; b=QfAYtxTzE8wavg318ih0Ra35VU4TuWYecM4vYRX6k5Sn+z3LjTNSHYig9ojMoVO1NQ zxrz7cPk4oFnQ5nrV/RV0RBzA7c3udgHE8a+qRF9QQsVPBfZuZq0WCjeG21wqkenJE8U BusUAhEJVxJ7gqbW6JYBSDO6N8Q4ncUko3DxDKh2y0JCMPtMh0ZQ2AucdxAeOoYUJOYl K99xbsxyShyYygacKgnR7kL9yz6IU9z+U+3WEaDUdxiPwn8ZtB5JGQDNqhvwlYtHrrEy UsCq9pLo8v2UgJsp9DLBLIXxr1A6ItMCC562BpsrAEkAghpmNy3B6IRj0tFp2LW6Td/9 95nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f+pTmgDm; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si1452881edb.548.2020.08.27.02.26.32; Thu, 27 Aug 2020 02:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f+pTmgDm; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 S1728538AbgH0JZI (ORCPT + 4 others); Thu, 27 Aug 2020 05:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgH0JZG (ORCPT ); Thu, 27 Aug 2020 05:25:06 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A229C061264 for ; Thu, 27 Aug 2020 02:25:05 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f7so4674220wrw.1 for ; Thu, 27 Aug 2020 02:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rGqT7srmFAjxM5njBGX2TMqgn+GAvNxXqSd+GHPZX9A=; b=f+pTmgDm/DKMlxPbeJzbk9Hif87pYsP3omG0gPyVr9mgLkGJdniqShJ83UPveG/GDz o46myXYaeLLS16hwT7cLTN9x+CitiSttF1ldsRTbG5M9MJAYp7jTmlFjXbCeIGkORPY7 vxN8WYmg9B8ztxNylLjLLok+HiBWesI2wYh/8bTmlIUHI2EUFz9CyKP+cQiYtUAtmS8K LUbe+v67RgK2LFR1pzghN/DYExSNrrLbV6jnRMGlSWSFOVWosvNTbFDZSK65XPmb6rTH 7u0XvnJaY6rPITBn8kK5hVNVkacJA6b5CY6JrO9RkibYyxz8BQRLbvgKGzKb9YDMu8qQ pU1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rGqT7srmFAjxM5njBGX2TMqgn+GAvNxXqSd+GHPZX9A=; b=qtv6s5EOjNjfbpLAl5Q38iefr6XWqI6aiOku5JHON0CbdmGGtg0GUL3FpealMcDzU7 4clN19BHYyjr8f7qELYrpaehksTQSJvTV+tiss/MKiXqz++ilgJasruhjKIkWol+O2e7 ivEXbL73eyVZnVfPAYVpAF2aajbK5uTlHUW6Q1tqSo4xOIxbUwc730cRPFAAB8CRk4uh FswTEvmB529A8yDbZaPxfLaUzp8F2cKhBLWd/c3rjPijgZ95RWKpbrpV37n9x/UJtGn6 DQ2b0mmpobGMs5uHsEj7Vyjo1zNPI9m1RgddQ/xmzm3vsE7yxxnWeqbz/uJc18XEBPy0 5ayA== X-Gm-Message-State: AOAM530tQhnNN0nA8T3QUNdKFoOxXUboHgQAELVeMDjivvooW1eOfgEo ooRX78vegmJGFOfKTYeZAtL/Bg== X-Received: by 2002:adf:dfc8:: with SMTP id q8mr18516222wrn.231.1598520304235; Thu, 27 Aug 2020 02:25:04 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id z203sm4357330wmc.31.2020.08.27.02.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 02:25:03 -0700 (PDT) From: Stanimir Varbanov To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Dikshita Agarwal , Vikash Garodia , Stanimir Varbanov Subject: [PATCH 05/13] venus: hfi_plat: Add codecs and capabilities ops Date: Thu, 27 Aug 2020 12:24:09 +0300 Message-Id: <20200827092417.16040-6-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200827092417.16040-1-stanimir.varbanov@linaro.org> References: <20200827092417.16040-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add ops to get the supported by the platform codecs and capabilities. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_platform.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/hfi_platform.h b/drivers/media/platform/qcom/venus/hfi_platform.h index 174428e97b86..8084d092d5d1 100644 --- a/drivers/media/platform/qcom/venus/hfi_platform.h +++ b/drivers/media/platform/qcom/venus/hfi_platform.h @@ -46,6 +46,8 @@ struct hfi_platform_codec_freq_data { struct hfi_platform { unsigned long (*codec_vpp_freq)(u32 session_type, u32 codec); unsigned long (*codec_vsp_freq)(u32 session_type, u32 codec); + void (*codecs)(u32 *enc_codecs, u32 *dec_codecs, u32 *count); + const struct hfi_plat_caps *(*capabilities)(unsigned int *entries); }; extern const struct hfi_platform hfi_plat_v4;