Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp338002rdb; Thu, 18 Jan 2024 05:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRQCM/737rJ7Y8M9htY57dLxlaYKYmlHNI+3IzLt29ON9bU0QkD2l1USw3hqeDJliylva5 X-Received: by 2002:a17:90a:62c6:b0:28c:6210:7ef with SMTP id k6-20020a17090a62c600b0028c621007efmr725948pjs.97.1705583849737; Thu, 18 Jan 2024 05:17:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705583849; cv=pass; d=google.com; s=arc-20160816; b=TZREEL5hIaeFPOP9v72yEjG4UmB6InnbPo/LuKBHpEVkNbSMwTyiw8OutnXD8ScQ9x vZPnmyA/iN7X3naOCTpbV+6IO4L5dDZwq7yxDbjSYrtEVrUDDk1fvj5kaMmdn4rKGOvR gRVY/s7yszEwx1v/Jof/8XNFQRLtQoC9gQxpB+sBrTlmYrV8LrFBZErYbmxmmPn/P1Ke +MMc7OxWd41w4Gr2DWlkZhigMSabooB2GQasrPpSlfcWX0bZA/i07WGAX9ZxoFX4J5Jk 11LpPNaWiKTSp6E4+QsZAKuJ9l6hF+t0tijj+YYI3j1VaVKruyY9sfd4pztbms0N2Njz upaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:to:from; bh=P4UzrRYDqJnFqGGvHptLQTdjUa+pS37//6RRCxquzvc=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=FQeSBdJbinEBklDGiL7/UTtICY8eFPY7tMykazlCiuIKB6jy6ocandoucD6yGwvF3T naxbTYijPxLNUjfTh5JSLjG0pHPvVNaJvQRPkHmAiRiDich0dOiyPGkFqb3RWdNwac0o J/KFLH1KPzFFxuLSgFjN+9MGqEnsu1Agfp5D/23VolacSaucTFL285l/AXYYNssip4nP cA/wonFC8ZMBbOtQ9bcMXwCXu1nmHNCPmFvQPpNYcxPxuMG61zT7nbVpfvJPNSfj37ox 5SekBynVG3O46LmuDH+Xe8SXPgq06dTTdEzO+9LcySqoDJ+kX9K0j17fTvLzXqMO9jRO tp+w== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-30138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f14-20020a17090ac28e00b0028bbce449fcsi1453022pjt.86.2024.01.18.05.17.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-30138-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B28F9286A93 for ; Thu, 18 Jan 2024 13:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CE6E2C19D; Thu, 18 Jan 2024 13:15:11 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A017A28DD2; Thu, 18 Jan 2024 13:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583711; cv=none; b=TI8Qy0RlLSZCuD3tb65r17OjTijvRiiV9MOGQYpF2SoUtkewE0yG6MrUzjLBznxlOGMXAmueGYc8oQexyKfpD1abzczqo3SlrMSjlCul/OTNeMiszaOqXlzI3xs8u8DPCcCSZy2ym00R3UVhZ0E76UDpUmDldWojrKpp7mBdSMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583711; c=relaxed/simple; bh=ZSA6dkDEPmjrCoSMhQg84ieAHpofrvKdYamvzGCt07I=; h=Received:Received:Received:From:To:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:X-Virus-Scanned; b=HW91HUIxr08Q8XzTsTejuIGwq5eAD1onk1XA5tj3dhAd3/8DflR3FRMQw65/ZbE43y+9f9r8S0NS4CJtw81lz+h1vbJ3DqMFqCF1kC+3UTJs41ylY49uojL9MS337snLRlFwlvs8zydXYJdOy9hTwu14Cc+seqtV5tdNnNUsiyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 48A1F1A22A1; Thu, 18 Jan 2024 14:15:08 +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 10F5B1A22A3; Thu, 18 Jan 2024 14:15:08 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 0B4691834898; Thu, 18 Jan 2024 21:15:05 +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 v12 12/15] media: uapi: Add an entity type for audio resampler Date: Thu, 18 Jan 2024 20:32:05 +0800 Message-Id: <1705581128-4604-13-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1705581128-4604-1-git-send-email-shengjiu.wang@nxp.com> References: <1705581128-4604-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add and document a media entity type for an 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..9ca6542517d5 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 an 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