From patchwork Mon Feb 26 08:28:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 206483 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1956886dyb; Mon, 26 Feb 2024 01:22:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVD6OGCW/vMpkg0RmJN+M8J0auWqPb6lCIfHc8dYQuc06Edvo+XcpF5tbFdgzAdSgBZoTG7i7iFmPFm8WFh6AiMEmxkBA== X-Google-Smtp-Source: AGHT+IG0nAT06Ihjw9GFBExTlIiKpfE5578eQm+S+RzkJqqeo+SB4abq90WxNuD+5xwdo069dHIt X-Received: by 2002:a0c:cc90:0:b0:68c:92ca:fec5 with SMTP id f16-20020a0ccc90000000b0068c92cafec5mr7578294qvl.51.1708939337871; Mon, 26 Feb 2024 01:22:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708939337; cv=pass; d=google.com; s=arc-20160816; b=U7FVOtCJEWpJ8GHqEprk/vwd1SOq8f2wze1jy8f5WO/Nk/lBHg9cdQKWouQLM/P5Hh k2qpivT1hNjv88RVDKunna1tPtD1lLFN8S3+O3aSsSMgMTob0Xyz8D/EviC2PoTl+UVF ZS72Pu2B+di+T/VPuKgTWVuryCl025zcaBcDQDexnzWabhInv+CW/Y87UE57ikT09goF Omco/rrW4cKYMTzUmRrsgghfut7xllPl+aHoxr7ur95emiWA/u8hkvNt2wdC91ixCdZ3 kYiDaKPcy4vRZ7CdIvFsjEVBQ0Q9IUwpSwdJxcHHHybhwq1WyijkP5FUlLBQ7AvwMqfn B5Rw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80933-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a11-20020ad45c4b000000b0068efd7caaabsi4607910qva.105.2024.02.26.01.22.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:22:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80933-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80933-ouuuleilei=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 A5CA51C217B3 for ; Mon, 26 Feb 2024 09:22:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3577656462; Mon, 26 Feb 2024 08:44:25 +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: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791952775379117049 X-GMAIL-MSGID: 1791952775379117049 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 */