Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1076610rdh; Fri, 27 Oct 2023 04:15:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH31SYhGm1niHucYt7AOqpnKc9TEhixhGtYi33KL+XW8hqmwr/LqQ4vIto0jPG+3BdqL7o3 X-Received: by 2002:a05:622a:103:b0:41e:23fc:a040 with SMTP id u3-20020a05622a010300b0041e23fca040mr2668451qtw.56.1698405354209; Fri, 27 Oct 2023 04:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698405354; cv=none; d=google.com; s=arc-20160816; b=Lvx56ox+RpxqnlaxvYtmzcg5Ugvhqb/6oFItt8vRclfrQmazh/mnCcujf0c1Q7w+zi cg62jrrXwP45yUKHs738OD935Fl3wbT9eOUQdWv1Exqu1FGYWIfzS0dsYH6x2jcghzJo alcZgFW9ZXXzDZpQD5oOfYJOiFIDMI3PxZQRC/LAvw+YmDgH49JVXdhJ26T9gwYoq2/N /n22wsdRRxhTsprkWr7pJgqEn9ySXbgIPa3X0noF20iRNbAD3Kl1G0Tn2Pi3nRhlYNVL l+n0BvHX4jZtyr+UcrCGhSjz7ZSOBuLXGNyn2QteOvBfxs8yQGJUHP8WIBOUBljHCC8j eoNA== 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=jikR6itlYXFVD04vM5B6grSVSKYttc/XlureppRCrio=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=BogZyHpsgaY7annqnrGxwEGBIkQmHY1qJ52ERzJ9DE/v+5/yLfEjt9L5fR3ZoULWK6 zNTb1vzuLvfmGBzj2Ce067kkCNWm5dLVKRVUM0KXaHy4AbJrEr/W546XrNSVRI4LUDyO gI8qThwXsr9m4yxQAIxNLOhAm15MoRe/Cpzq4w+zbJCi7lXM0PiS8U4knxCox5A/eR9w IqPKFgWdUi/PM1zlmkaIDRj8FpMWOdOjOwPS/MCX+OeI0Y2XvwbTjxeopi4P0XU2i3EK gu3BKMiy4YZAGqaFs002hhfqQ2Wm2ef91bjmDwt0q6gD7+zTXiQ2aLTUsQeeMPgVhDiI 9xTw== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c22-20020a05622a025600b00412083895d8si601221qtx.461.2023.10.27.04.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 04:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 08F48804F613; Fri, 27 Oct 2023 04:15:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345760AbjJ0LO6 (ORCPT + 99 others); Fri, 27 Oct 2023 07:14:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbjJ0LOq (ORCPT ); Fri, 27 Oct 2023 07:14:46 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD4B1BD; Fri, 27 Oct 2023 04:14:42 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4A2E51A1E9B; Fri, 27 Oct 2023 13:14:41 +0200 (CEST) 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 F1F651A0791; Fri, 27 Oct 2023 13:14:40 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id C438C183AD25; Fri, 27 Oct 2023 19:14:38 +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: [RFC PATCH v8 06/13] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag Date: Fri, 27 Oct 2023 18:35:41 +0800 Message-Id: <1698402948-10618-7-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698402948-10618-1-git-send-email-shengjiu.wang@nxp.com> References: <1698402948-10618-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 04:15:14 -0700 (PDT) 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 c3d4e490ce7c..5053f66c501a 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