Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp342633rdb; Thu, 18 Jan 2024 05:25:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIPwHnub4V1gx8ye8tu28Q474ExDjfCe9dXKgAEzwrD7NpDK6GdRXf0SkRV6/jJz6aNBef X-Received: by 2002:a05:622a:506:b0:42a:1f42:e1e0 with SMTP id l6-20020a05622a050600b0042a1f42e1e0mr314180qtx.3.1705584349875; Thu, 18 Jan 2024 05:25:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705584349; cv=pass; d=google.com; s=arc-20160816; b=wd7sJDLhtf2ulJPCG57v9j64m44LgFtLU1+WVeHBM5PGWzOmIpSgTp8sO6n8ISo/4a mrYzllTatL44eYI8NkVTPKUOzAzk9XSHyfKWN7rCbyOAyWB43bHlp/WnZOLiMVIdeOz3 L4rtIsFnrzeJw/1I52ozrxdcn1nluwuNNf+c4q/5HbizilymK+kmWLOLqil9MJpeIRW3 u7HagqdZXim6CaFOy7Nfs8HEuj17ICB5wJhtb7LKglnrtP5G3gHQppsyIp+LrhcGk0h9 /l7ZcEDrnKtMIU3XUeMhr3e6gHH6mq0jRV30DdBjJ7t+WdTWMHforl8+VI4OU5GW4wG5 lUOg== 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=3VUyk0vuudBtwsS/yXrQakIC8kPOLGF6XUHhY2IjEZ8=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=i3+7u22Uafhp8wAr9RknMG66fWWfokhhga/qgwhpy39HgrUD34w/aQP6iUQLGGa1FA eMfpL0gW65dUDrQ7VO1A6sjTkVzIt5zBAskCeW/smYP3fDEf0ybFsXnsShB03y/6F9sZ G7P9h7fTyKEN8wg+CO+JyHt92DfTHLZvGHJAifBRTpVH3hk6KCCrye3tPeQx8O5OEIFW qTzcxEKISX3eFudhhSQvMwg3mjTHCnESR02G71pT2g+8o9Od2evhRItzXPRw4e14KtjB JG3juWIbtCpofTNZn8fH/C3PSctt36M5DGzRGp+sKvQvJORPqRo+uYZCT3PQ8a9qxZa6 6/Cw== 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-30147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x17-20020ac85f11000000b00429aa3a8958si13935578qta.365.2024.01.18.05.25.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:25:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-30147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30147-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 597881C22CBC for ; Thu, 18 Jan 2024 13:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F70E2562D; Thu, 18 Jan 2024 13:24:53 +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 82D20184C; Thu, 18 Jan 2024 13:24:51 +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=1705584293; cv=none; b=iWssVWKd1UvQQl7lOTvGEg8oOBLvW7rJPolNb27L+ep1GD15H5Rpcvbe33/BE8IRpJBVybDgohQ7YrY9681kKzkgFFeOTAjlfbUF5w0G226YyglVUB+ZmvqCfCDfQA+4qpMq+z/hVeivNURXji6F5AaoVrUZ+ca4JUt729YiqL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705584293; c=relaxed/simple; bh=onNdsPb+69WqAEQtLe5+cbbnN6bq1q8qyW8fuoVDI4g=; h=Received:Received:Received:From:To:Subject:Date:Message-Id: X-Mailer:In-Reply-To:References:X-Virus-Scanned; b=oJ8uQ/Lffs0oOhPKtP5HxC36w36UoEoGuSyUucGJfzzgBgKdXCUTnFxAoRofHql9hu8swCzUrFQVAigCMm2FSo3Y/bY/3vvLSjwgYyJxwlclBx//9cxraGuRAUDBnyA38JLnjNQ32Qs0Z57UemHZWQEDO8RI+rAmJZ0KRSi/uqw= 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 D32B01A2299; Thu, 18 Jan 2024 14:14:58 +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 9BE161A0762; Thu, 18 Jan 2024 14:14:58 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 971391834898; Thu, 18 Jan 2024 21:14:56 +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 06/15] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag Date: Thu, 18 Jan 2024 20:31:59 +0800 Message-Id: <1705581128-4604-7-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: V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. It is used for audio memory to memory case. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/v4l/vidioc-querycap.rst | 3 +++ Documentation/userspace-api/media/videodev2.h.rst.exceptions | 1 + include/uapi/linux/videodev2.h | 1 + 3 files changed, 5 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/vidioc-querycap.rst b/Documentation/userspace-api/media/v4l/vidioc-querycap.rst index 6c57b8428356..1c0d97bf192a 100644 --- a/Documentation/userspace-api/media/v4l/vidioc-querycap.rst +++ b/Documentation/userspace-api/media/v4l/vidioc-querycap.rst @@ -173,6 +173,9 @@ specification the ioctl returns an ``EINVAL`` error code. interface. A video overlay device typically stores captured images directly in the video memory of a graphics card, with hardware clipping and scaling. + * - ``V4L2_CAP_AUDIO_M2M`` + - 0x00000008 + - The device supports the audio Memory-To-Memory interface. * - ``V4L2_CAP_VBI_CAPTURE`` - 0x00000010 - The device supports the :ref:`Raw VBI Capture ` diff --git a/Documentation/userspace-api/media/videodev2.h.rst.exceptions b/Documentation/userspace-api/media/videodev2.h.rst.exceptions index 3e58aac4ef0b..da6d0b8e4c2c 100644 --- a/Documentation/userspace-api/media/videodev2.h.rst.exceptions +++ b/Documentation/userspace-api/media/videodev2.h.rst.exceptions @@ -197,6 +197,7 @@ replace define V4L2_CAP_META_OUTPUT device-capabilities replace define V4L2_CAP_DEVICE_CAPS device-capabilities replace define V4L2_CAP_TOUCH device-capabilities replace define V4L2_CAP_IO_MC device-capabilities +replace define V4L2_CAP_AUDIO_M2M device-capabilities # V4L2 pix flags replace define V4L2_PIX_FMT_PRIV_MAGIC :c:type:`v4l2_pix_format` diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 2c23f0b369e4..6cd65969c2b5 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -473,6 +473,7 @@ struct v4l2_capability { #define V4L2_CAP_VIDEO_CAPTURE 0x00000001 /* Is a video capture device */ #define V4L2_CAP_VIDEO_OUTPUT 0x00000002 /* Is a video output device */ #define V4L2_CAP_VIDEO_OVERLAY 0x00000004 /* Can do video overlay */ +#define V4L2_CAP_AUDIO_M2M 0x00000008 /* audio memory to memory */ #define V4L2_CAP_VBI_CAPTURE 0x00000010 /* Is a raw VBI capture device */ #define V4L2_CAP_VBI_OUTPUT 0x00000020 /* Is a raw VBI output device */ #define V4L2_CAP_SLICED_VBI_CAPTURE 0x00000040 /* Is a sliced VBI capture device */ -- 2.34.1