Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp300258lql; Mon, 11 Mar 2024 03:11:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWB+RbKFVW2GSMsCCCnb57HIjaGRbsysNqqnaWlYfxltR7IGRd6Gsq07H+omnlrc/CvH0Ev2XXwRoj559SfHpO83oj2j/nfn0FfpzTUww== X-Google-Smtp-Source: AGHT+IEBkGU2gOcUvJZ7lt0nhcBdWBmAXm8uvCrdiYZStkHJCsr+fK8gNhxhmXWi6n39IJZP8AqD X-Received: by 2002:ac8:5f13:0:b0:42e:db75:3cf9 with SMTP id x19-20020ac85f13000000b0042edb753cf9mr11360545qta.27.1710151903631; Mon, 11 Mar 2024 03:11:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710151903; cv=pass; d=google.com; s=arc-20160816; b=hgvpdQRNKtVzq5COXOjCQ2RRScKd7KJIbePw7aOahBb+3zVHBMthdKx9/BfyucGLHv oP8QfjbljoSoNnbCiKQCDUkuZqnIcUC1e90ec2yy8c5l5K5wo3Li6qLnR6rVl3re594U 5M1Wd5I9lmlRku/hY0KVc6cL3UiC3JVd/KIasOlTQjZhfSlrAWqm8yJYCZuF3i0dwwx1 1z+6TSgrk4V42kIHYqULGX1nItoUWkDqUzf8rp8sg/YVVQ9qNMea45BPV0h2spIkJEhn tV6JgfGzvT/NEZWmLP0jCeJuxYrcp5pBv5qqOxVLGp81mf8EBj92vHQLE0sn/2ECF5zT hf2A== 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=2Qdp7tVYn0mpjyMHl2NHS7kJXG3QMox0kmVbqiipNh8=; fh=ufiESpW7Hvn5oNmN0l6/qCUiQrKfLLrOwb5uR1Dftds=; b=DMRduz09PXAxu04P44jQKkWIbRe3hYj0QqkBmjeIRr9fiwdIAwsO1wwWtqASpKqlip 7QR0FUq+9r/yc0K5n6urJSDnTJhrZrilFguwLk/DbMlSnHBwSNFuz4eT3twcPg+fmAYx 3X5xcIWIX5kAbLL9h8eZfO/uod3bOPt17YLRjz2Ad20F9sfRuSZ9aL5ZNklYeIFYFL6E oso6tiOCU6K+INiZYSXB0UHUO4Fu3VEHKdCU53vgNhVY+29M/tHSk7hf5n+W2Gii4H5v bXaLZR9hGX9DCG53qSSeP6Y0Vnyd90oHdppuwgHripY1x5e02X87QZSZOazr3nPRDUVq 8y2w==; 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-98674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98674-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 i2-20020ac85c02000000b0042f05240fe3si5091140qti.469.2024.03.11.03.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 03:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98674-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-98674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98674-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 2A8ED1C21562 for ; Mon, 11 Mar 2024 10:11:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9777C39AFE; Mon, 11 Mar 2024 10:10:23 +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 593222C870; Mon, 11 Mar 2024 10:10:21 +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=1710151823; cv=none; b=qnmb7DhHfe6+8piIuvYpriSzb+JzRa0OX12K5ThyiCV17a1go9+24CSv9OPpYG0LBuFZVF8j/LsVYRTRIus5w2hu1DtPar852t7vEjffbsf7988oISnF/PwAr4c1qiJP+vHEmF7sNgKQ6LQI/+xw038svoSe2XKnpMOduHNrkXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710151823; c=relaxed/simple; bh=n71JbBxn/Ji/Go4XRp7Smlrz7Vv7u0vTgePDyQjo3AE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=tc4CbtSerNNfKPSmGjK98IAa3gecI4wCBzPm2cX6r31vUNaMnF4JM+TByDSPIiIw50myyquL2FDFEpnqQz1RLtX+fWaHfqDK0f7f2e9Pxis5JfvCHgr2vorrMk5REBOVYgTtlUvJQoMBJjk9TYofh8NOinBlUjrOh+XQMsci9uc= 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 C3B8A1A1960; Mon, 11 Mar 2024 11:10:19 +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 786741A0B42; Mon, 11 Mar 2024 11:10:19 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id AE4C1180031A; Mon, 11 Mar 2024 18:10:17 +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 07/16] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag Date: Mon, 11 Mar 2024 17:53:52 +0800 Message-Id: <1710150841-26991-8-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: 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 b8573e9ccde6..5cc2a978fd9c 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