Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp225702rdf; Tue, 21 Nov 2023 00:19:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IET6cNyT26tjdXle8ZsRUrehgsbYYd/WBs+680jnJNJpoeNGVCAjBwe6ZiIK6ft7fi3iRW5 X-Received: by 2002:a05:6830:130a:b0:6ce:29cd:b673 with SMTP id p10-20020a056830130a00b006ce29cdb673mr11462976otq.11.1700554768258; Tue, 21 Nov 2023 00:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700554768; cv=none; d=google.com; s=arc-20160816; b=CJHcC8f4OWgAnCEdtYo2BFeUP7JL7Q/xCMdDNQC9K2SrS4KXB7bf7gU0iAJlBo0sXp j+Kr5D4RIVGhXdu4fvTGmgZRn+ajRJa2V8g21kpR3xUK+ehrD6mcU6RVVnzq7aOifMbq e2/5H1QLnzwFZa3TZL7/8jbBpV1ifujR3S6vGajEvopHbUjG0jSkaVidV7cdmwJOfytM fQfsS1bhvqqpHyRSCs6ahhmoLQ82xZssdRMXVscRWT7p44rjp1hrg+2cyzz3rA65h8K5 JknBqewIW4RgFRfqR6pAu856YuCFilvvIcIXGubmQ3fdcVBf934hAqvHDikefrJ6t1eA BlUA== 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 :to:from; bh=DGHiorKEWzlQWZ+TfbuaS25mKuyNjK+JmEaGILNIIMo=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=ZG/E6rzJbEQS9Cvl/aAyBZOW4uojW9/v+AWPh9bUOH/EDuTm3e2g8gfPhCb5JZTo4H XpB24KUarWQDrCCJQdpjfhGyCA5l8u0zp5+8680wk1LomyEhKTqlWN7mnjumRrjJjMqs 7yygPL8LuQeFyYe17HPKKdQ/sAdaiyL9nyGcTwEeGUZj7kILNQKXEBVbsI0GonqaGn3D vI5Eysk+xwSVh6WkRrAiTJYzjSfOZ1SJfu6izrLUcA38hWHdw7ZCz74KjC768m8qtHcl mVlAmifSjhX399NqV9MFGJ2ZbmCbGShyCu8DVRWqGh0Dx/N7KIRAFGc4mF6PQZU/9MTB O4Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w188-20020a6362c5000000b005c2137bf557si7887049pgb.558.2023.11.21.00.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D64788098AEE; Tue, 21 Nov 2023 00:19:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbjKUIS0 (ORCPT + 99 others); Tue, 21 Nov 2023 03:18:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbjKUIRz (ORCPT ); Tue, 21 Nov 2023 03:17:55 -0500 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1625ED4C; Tue, 21 Nov 2023 00:17:49 -0800 (PST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9926B1A03D0; Tue, 21 Nov 2023 09:17:48 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6186C1A036B; Tue, 21 Nov 2023 09:17:48 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 6F385183ACAD; Tue, 21 Nov 2023 16:17:46 +0800 (+08) From: Shengjiu Wang To: hverkuil@xs4all.nl, sakari.ailus@iki.fi, tfiga@chromium.org, m.szyprowski@samsung.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v10 12/14] media: uapi: Add an entity type for audio resampler Date: Tue, 21 Nov 2023 15:37:33 +0800 Message-Id: <1700552255-5364-13-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1700552255-5364-1-git-send-email-shengjiu.wang@nxp.com> References: <1700552255-5364-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 00:19:25 -0800 (PST) Add and document a media entity type for audio resampler. It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/mediactl/media-types.rst | 6 ++++++ include/uapi/linux/media.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Documentation/userspace-api/media/mediactl/media-types.rst b/Documentation/userspace-api/media/mediactl/media-types.rst index f0880aea41d6..abbe515dad76 100644 --- a/Documentation/userspace-api/media/mediactl/media-types.rst +++ b/Documentation/userspace-api/media/mediactl/media-types.rst @@ -40,6 +40,7 @@ Types and flags used to represent the media graph elements .. _MEDIA-ENT-F-PROC-VIDEO-ENCODER: .. _MEDIA-ENT-F-PROC-VIDEO-DECODER: .. _MEDIA-ENT-F-PROC-VIDEO-ISP: +.. _MEDIA-ENT-F-PROC-AUDIO-RESAMPLER: .. _MEDIA-ENT-F-VID-MUX: .. _MEDIA-ENT-F-VID-IF-BRIDGE: .. _MEDIA-ENT-F-DV-DECODER: @@ -208,6 +209,11 @@ Types and flags used to represent the media graph elements combination of custom V4L2 controls and IOCTLs, and parameters supplied in a metadata buffer. + * - ``MEDIA_ENT_F_PROC_AUDIO_RESAMPLER`` + - An Audio Resampler device. An entity capable of + resampling a audio stream from one sample rate to another sample + rate. Must have one sink pad and at least one source pad. + * - ``MEDIA_ENT_F_VID_MUX`` - Video multiplexer. An entity capable of multiplexing must have at least two sink pads and one source pad, and must pass the video diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 9ff6dec7393a..a8266eaa8042 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -125,6 +125,7 @@ struct media_device_info { #define MEDIA_ENT_F_PROC_VIDEO_ENCODER (MEDIA_ENT_F_BASE + 0x4007) #define MEDIA_ENT_F_PROC_VIDEO_DECODER (MEDIA_ENT_F_BASE + 0x4008) #define MEDIA_ENT_F_PROC_VIDEO_ISP (MEDIA_ENT_F_BASE + 0x4009) +#define MEDIA_ENT_F_PROC_AUDIO_RESAMPLER (MEDIA_ENT_F_BASE + 0x400a) /* * Switch and bridge entity functions -- 2.34.1