Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp300618lql; Mon, 11 Mar 2024 03:12:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrEJ7XHCWTzTKs/HakDUNXsUg7zWjDqPFGNRpZ+IhZpI1U1lEO5sE42rwbGio57Aj4p83u/bY7fEPlwDcD/fkPLdICyiEHbmxq2DQrXA== X-Google-Smtp-Source: AGHT+IF4zJ+cJ/ZGHgi0FLhQWbLIvjK5w7Zu5pCUFRSnThdSCPWemjJfjYXccKgt4GL74pZVVkBK X-Received: by 2002:a17:907:c201:b0:a46:13a9:6dc0 with SMTP id ti1-20020a170907c20100b00a4613a96dc0mr3156101ejc.64.1710151950527; Mon, 11 Mar 2024 03:12:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710151950; cv=pass; d=google.com; s=arc-20160816; b=Egbm4satiJceXUs5eS5m3mV+X3coJ2suns0b3XcPoqq5beS9iuSdiF4w8Bmcxx9o3J BaNilz3kHLAqOvysL4UeZRA3eSCIIVhzKuzOpZthAZOVE4EYGlzctrgUASwTrsOdXb3j nW+wuGSu8fWLIYIQMCKP7MwZ9paJNFHbSg6ruTwWTSAzMgvMEOmwD8r8G7Zc6Bt8MhOQ OFCNwC/oWUrMYjOWomMEY1Q/ar8IT8s9CYHpWwlbNXZgyYJxFsfGw+ElqhlpvWa2r0cg J3PUWAB4RpBK4hH2kTy1C1rM21vtrvsjNNVpz/hdc5imPpJK8t80QLy6NZTjbIF9Wn1n BEQg== 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=qNKZBPhofoQBPfo+NXQbgaUvyUcaTPCPIBCBVsPJYDk=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=zZFPZWySZq6Kf7Tvo50DK5x645eIbMaGC9suz6aTOTo1zvfloA0Q3UBtdfrMAvyi36 JDL8XwOHBUgkPIBNVUCiFY5iIthag1PFNJUCyQAoIE+lBmdpmtaWScTXRNgiyQ2dWbCn pt5iv+xWfLwxPvyDTTWrG7gjI7g0Is1lX1hBcnoMXvzVE0FcYrLEkTcrr3SSJiID4NjR Ukk+yg4lWcQ5wkYZT/Ulhq276y56AaHXALi4c0utAj8VBQ7jx/VwOYhHAEc1rexQ/CmF 46F7m5Mo/u2y5qGYMB+SPWyBks394ObuQ/rVWLXDRCl9kgzsHMBojrjOcKCxcliwmWqv LJ+A==; dara=google.com 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-98677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jx16-20020a170906ca5000b00a4634aff287si281252ejb.141.2024.03.11.03.12.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 03:12:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-98677-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98677-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5A2ED1F22600 for ; Mon, 11 Mar 2024 10:12:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E10C3D0A1; Mon, 11 Mar 2024 10:10:33 +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 E7A143CF65; Mon, 11 Mar 2024 10:10:30 +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=1710151832; cv=none; b=RrBJbKkGmNgvfBoPmuLH2U8yyhEw2kWMSbnpQZ4cTTSwVbZg+bUlr77T2TdU40Wtu+FWOwb2oa5uCfe6hGajlJNpsczV6hiU01U1UGr4sxwjDyRB4V5eqO/JDi7YZFmqY6j3npocT2rv6vtOgYWVUat3w0Q5txErsFZxrp6YZAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710151832; c=relaxed/simple; bh=ODVqP+lwq6xFwMgn2BlGi8UA6y56bCAsF8FKu0VoNGM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=Q7aJLr/+xoTSZXVrL0rQxg09kA/hg3ZLOx4tP25WqqVTyJwyZCllo7nRMEJG51XEna8xod4CSn2YN4FbKe2vq8PHZ7e/dj0qwROs7/ZhvcVaa2Xh3HCXmatCNDKrWJ4ETylQQW7X+TwtmDu4i1oUWG5eh8B0kM3cYc2moF0qnrw= 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 431391A1979; Mon, 11 Mar 2024 11:10:29 +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 E9D511A0B42; Mon, 11 Mar 2024 11:10:28 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 3350B183AD24; Mon, 11 Mar 2024 18:10:27 +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 v14 13/16] media: uapi: Add an entity type for audio resampler Date: Mon, 11 Mar 2024 17:53:58 +0800 Message-Id: <1710150841-26991-14-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1710150841-26991-1-git-send-email-shengjiu.wang@nxp.com> References: <1710150841-26991-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 adfb37430f8e..d353f17c3344 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