Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp715493lqt; Tue, 19 Mar 2024 01:10:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKnscR2ooUhVHTOlK+haSSxz48R9k04ouFas3Cexl3aWAb7a3B//2KD4ig+JnAC2b/COaPBfI7fMd4aVeoFWdEvOuuFLHZK0SOxtgSIg== X-Google-Smtp-Source: AGHT+IEpOMrEuAB+XTqPlh7VvcvIxfmMh0I9kBUe6dkVB27BapFSxmXtJ5OEKCvteJ7ZpQgpcXP0 X-Received: by 2002:a05:6a00:3d13:b0:6e6:b4f3:19dc with SMTP id lo19-20020a056a003d1300b006e6b4f319dcmr2409072pfb.7.1710835853429; Tue, 19 Mar 2024 01:10:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710835853; cv=pass; d=google.com; s=arc-20160816; b=ngUKIG6aoQnmuwfMfuiTKGtE+r736i6Ek5HMHnn6OyPcN04fhKEc3bMEplEqWxIaW5 B1E/g5RbNrpZOK6Cp2cZaM1+rc8Gwtiik8FzRH7YNUgUt0UkI7RKdQQjPEynqWdCT4rF EmfkNDuVn+Zh4l8bMZ7deq4dswNKdm1PZaGtjxI8LGMjvcsohhfOgPsO7kSqeCbY2eEY JZHLqDbCZrmR/o4SZpNToTqHhmf+IVjZncyEUIcm3AnSdIE8PxrNU8cqGpOHQIju1vUT Qw0omnNBW+Yh0+vu2fTEioLlZhugI3SwF/uqm2CRkPzDKTGMO5KcabimjmvEZ+uOpZ9j HIXA== 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=SeJG+MN1LByun4bWpFDFjyHygF9g/kPO7pfaBBrwuH/lwI6ONA/Q67qz44ji7ldUNH 1e9mQrsm4S+D7AWRA6Fdv0PE97FnilipQDh0x+0gL/+nSrTznHNu57wAdV0eu7fwelgm 3+qceX3ZbyJO2N4uLnOMWuohs7Y7lveFiz8rITjdz7xv0YpXT5rWWpbsPn2RWtr0JNwf 3d/AfjsQZefqPOCeg36ecRyIbdVBg/EbQMr7wHEpu/vQkCQpM52LfHC0Rmgydt6QxLj3 XeDHzTELJ40SL00zhJe7ZAxo2vdnJ64km5aXy/Zpb0Hes1L0IkN6ZpRX7t60Q9psnSg1 Kbhw==; 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-107201-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107201-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 w191-20020a6382c8000000b005cf60fc5fc9si9300592pgd.274.2024.03.19.01.10.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 01:10:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107201-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-107201-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107201-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 1F31E282F4F for ; Tue, 19 Mar 2024 08:10:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB9E97EF0F; Tue, 19 Mar 2024 08:08:12 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (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 A9C617E76B; Tue, 19 Mar 2024 08:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710835692; cv=none; b=g3tjEz7Gu/AMPPeEBDFpEe8vCSCaPu98iGJgpwZ+4jhCjkwaC71wrkMgqsoKXJPTqftih9rAIGehoWRVBwoe8B9OuNiAfi9/Nbj2ozwPomW12iNJlU+uOiLhxp0ydobB/bm0NXKUrMtXZfd0N8OoPxEn9NJLSSMjEDpIDvij8eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710835692; c=relaxed/simple; bh=ODVqP+lwq6xFwMgn2BlGi8UA6y56bCAsF8FKu0VoNGM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=giFNRFl3mnkjmJDkxTl0pgYi2P8rTo0t72CAu8NyR5f6Tuyfg9naRHCKPcULvjaLqmIvSOYAXDoAAkqxH2uSlM+O7X9gtxw9Jiv4HLfns3DO0953oEr8A6RTki8P/A4brBM62ElvkTpziq48wltYd2XOdFFGM44MBi/SfHSeaHU= 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.21 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 inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 55D37201E5E; Tue, 19 Mar 2024 09:08:09 +0100 (CET) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2413A201E58; Tue, 19 Mar 2024 09:08:09 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 18EE4183AD09; Tue, 19 Mar 2024 16:08:07 +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 v15 13/16] media: uapi: Add an entity type for audio resampler Date: Tue, 19 Mar 2024 15:51:11 +0800 Message-Id: <1710834674-3285-14-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1710834674-3285-1-git-send-email-shengjiu.wang@nxp.com> References: <1710834674-3285-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