Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1191344rbb; Mon, 26 Feb 2024 01:22:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXTS8EmRYbdwZ7TRZOTwGmTgMKMER3mjAZ5VQvW/mgstKLWpVfvagy/CQO+F7w0jh+Y25BT9jcxyA0PicTOj8ezEuQ20DJd7K0BqC+/rA== X-Google-Smtp-Source: AGHT+IEzieGKY9kXJS6KepbR/LIOCi5m+B4V4Kc9qY3oa1FIvYrLSAzFxeWF5tqKlDhT8FGAmoki X-Received: by 2002:a17:90a:540d:b0:29a:be06:839a with SMTP id z13-20020a17090a540d00b0029abe06839amr1546641pjh.14.1708939336234; Mon, 26 Feb 2024 01:22:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708939336; cv=pass; d=google.com; s=arc-20160816; b=yVqsmlm2dYaYytWS5zD+l8TTkAaSNjnt7OKahOMN4FipFR3wsNlFGpd7CeH3YLRdqu aeAaFDPpvY2S/Ar27dkdhXXTPH13REtZyLh2ub0UbNQArJNxLfBo/bzzkPN0du91qCn+ 8I2DrOb9PXRf4Bwx2FQ9sPOV7TnbdZFMIr86i7zIaeZ2l+JHN+lg83Y0R6yfke/3QfI8 eV++oPTzECm4GX0rqwVVpjhInpyegMpsgwkOFcVlZiOhH31mq/O4uMfuOz6d1WVHy4ot z+aH74j1FR4o+BkKb/ZcegflkMih9RN5/ZghTCxow7LGhyVxyCDE/YizZpLEiA7evyjs TpLw== 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=H1QJkW3TYNSX2vr8SP7SL5FNg9PWT6VngPI7qht85iPtxCjAOkWdF7P1bpVZMPtzJb ZDxePod0OoaBPtTFWlmC4yvO3/GlyAi/72ghewODITdeW1FsT/qkLLjZ6OkLiY3b0zx8 eOizT9veFlTOsTHCA/hXbduFJ8YKdnGx3CP41c7n5z4rStkCI1tnUnwy2ba0Q/pxHQcQ K3WcpDfdj84qpEYbyihJwNmm1xbgjSpQ9ckdxvKlNxHpEiKwn3wSzZ4oJ/kkDLxcJsWJ NVtFs7eljWL74kXlSe9LNar6pmgJO92rt+YapaZVTiPu5+Er0dSlF5+riiN3JDw5DOyj 0LIg==; 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-80933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80933-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y7-20020a17090a154700b00298d21fd928si5143453pja.173.2024.02.26.01.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-80933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80933-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 42199283E9B for ; Mon, 26 Feb 2024 09:21:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC64255E50; Mon, 26 Feb 2024 08:44: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 3C24954BEF; Mon, 26 Feb 2024 08:44:20 +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=1708937063; cv=none; b=Tl6rfMEV9X3Vh5lxrQVmiOcRgp+NsUpUYZiDODBfRqratRWIugJLHrlumeJzyDlf+uAgaHZPnJBDFXjDp0Kot5zd30IWsMJRR6C4gH/CictbtHr+F2nLfevCOJeQBgbzMixGu/8WIqD2d8U6pDdeeuqoo+EXglQ0ORQx8l5YoCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708937063; c=relaxed/simple; bh=n71JbBxn/Ji/Go4XRp7Smlrz7Vv7u0vTgePDyQjo3AE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=ihs5Ol48ObDnxsUKNRCgTeTPcExFKfKvGCJNX2pKmfjbS0b0akdeexUDMXaBisbZu8uCnHYboz77xH5dzVXCepMH3n9AxJeGR3r9Yb0aUgS2dBLMSzNyGk7hqIzV6HNyIQf2oT6hjZjrR6b1bd5tK6hpWwIyh5L5yWDZMNUbBRw= 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 A9F981A0149; Mon, 26 Feb 2024 09:44: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 7179B1A0146; Mon, 26 Feb 2024 09:44: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 B73C8183AC0B; Mon, 26 Feb 2024 16:44: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 v13 07/16] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag Date: Mon, 26 Feb 2024 16:28:20 +0800 Message-Id: <1708936109-11587-8-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1708936109-11587-1-git-send-email-shengjiu.wang@nxp.com> References: <1708936109-11587-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