Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2147589rdb; Tue, 20 Feb 2024 20:33:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWRGBARL4Q/USDOWRkXfeywAtETTVzXB7JOdTY/s+hSb+MzCsUANnNTIBKsHQuhR81GVA0B8ZVksK3BRmmCoNylT1uVA4zki/D3+ABheQ== X-Google-Smtp-Source: AGHT+IESYcxmH1MSAFjb3Lzm2qIhGApSrnWycOh/4NANEGVF5fxv4ACW9L4f+lOLgQkgXX+w53gn X-Received: by 2002:a05:6a00:2d0b:b0:6e4:9ba7:8e73 with SMTP id fa11-20020a056a002d0b00b006e49ba78e73mr233240pfb.17.1708490014349; Tue, 20 Feb 2024 20:33:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708490014; cv=pass; d=google.com; s=arc-20160816; b=rW8tGhCSqZ8rp2+gTjw83QrPVv7u6k7Zgo+e6Ga6eZMnCEdZeD15x9y6Gw3Wmq2w2A igqUvcPmSZTMbw2NjlB1Tca17w2c4Srx0rY0xQhOwZXD9sh5AuMOVUy3gMxzwbvKgS9C w7svEQ99rK/7s+PR+RUPkBTJd3ne5vtX9MDHZ3FdVG8Q0ydt++q6BzOEHDi2QlkJqkxg 6mwOfiugINhHO/2vVsj6OCpNgyjcnn4+Edx6b46RSjaCIpQdKaK4HAwyFeVxPKWcQHko POmX3QacPeT3x5GEGH2cPpCsRyh6pIc4O+ojVKqd8wx61qaldAZMHFeAc151cVtiGZKp vlYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vmY04dbj/vIU0t6pHPXsLFor7e8BbOlWKLitvKLNgfs=; fh=r0ABeJZvdV1wLKb4/DF+fk1Tofb6MpuFcTeuJHdxg5g=; b=R6enSzFvvlDkhxV3QXKz2QTBKzJj8PlVwNGKl9HJ5ft5fcWlewAaGdobi4/29nJdpV hSrsZFZH/gOGcXT15F1ZiAc4F8gAOzoT8KuX/eeDg6aZkBsZs+sKf5FNO8niLyh6oNfY MeIxv88FqkoNwK/sbpiMnPE1/ifvpbnsCJ0p5k5EMlytzlzZFgy4TkZqK4N4CztWlmCn W2EQ2zUumZXZsl4EHi0Gs1CZe7OReJo+1sUNtaYp61T2sNmRKGuj0D37bD0yLIcrrEY3 HbMLzGoK5sTysVoLI/xfftPqagKzv4uCOh8biX77zA4GLkY5uMaRZjJe17LVAQkslTnv siQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J+lJrh5B; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-74051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b4-20020a6541c4000000b005e42b4b7fc6si1583145pgq.140.2024.02.20.20.33.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 20:33:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=J+lJrh5B; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-74051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 767CBB23A99 for ; Wed, 21 Feb 2024 04:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0533739863; Wed, 21 Feb 2024 04:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="J+lJrh5B" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81C0629AB for ; Wed, 21 Feb 2024 04:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708489993; cv=none; b=QLk3AnUKrg3zZ6a2408IIzgajjwU7hK6XpecEJi3mbyG6V3j9bwX7MJ0bKCx2GlO2KaTIwpC02ZqkhggLmLAQ9ZO9Lw+rBIFfmCZNX6eltM9w0n3Nx2lyEhN5vX1SoIlkg01hygvNNAx10ikeoiQl+3wH7jmVyUYyJ7dW9eKt8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708489993; c=relaxed/simple; bh=oL4jzuCKbGJSQdHdOTD8mVuXHXW9YeehgSh1yQfUYr4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=d6qp+Qb7AYWS3Ek1XF/6cSWKwbR+5kLZAGEsmEwUi3l+B5swVLM1bslFYDe/7w4Zq1DTfMn4/B7rGpaAhHDYqfwMEQZJKxSMdcVAD58ywmr007xVyBfM4fhsdsRRRqa8tBA/21Nhyq6wgYUPGAuxtlGTIa9XEyNPuzS2qZ/C0I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=J+lJrh5B; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5120ecfd75cso9635546e87.0 for ; Tue, 20 Feb 2024 20:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708489989; x=1709094789; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vmY04dbj/vIU0t6pHPXsLFor7e8BbOlWKLitvKLNgfs=; b=J+lJrh5BApfGMGFXNqy8UADibA3r4E9St5n9eryvgEDE5ismvmwgOMyeET8WT0Yjhy ohk7hVIb3c4+6IKFUXLEysmML1qDkTGjOYSdKOAII5pOurKzbQcWKnpmqwkFqJFqz4v0 RJdDvHbmpR/fK75rfOwrhsf82siUcJiORn8F8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708489989; x=1709094789; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vmY04dbj/vIU0t6pHPXsLFor7e8BbOlWKLitvKLNgfs=; b=ErCCSoxASK0ITlcDHaMOI36jbGEd5QaCe59QNJg7ngB+7G4rFwjkojDyiCw6x4x7qN EXbL+o3OWQwPTTvmDu0fBRVmSRjyjlux0K5QHBXBGahtsJ6tRwBdlCwvofUYydgGSOp9 zokD6dJQKe0MwrjAPS9ZrrNa6SgR0L7z3USic/mijbuOhGbRb55KsDWyEyMugn8Y5DrE lDI6ZTG/mkLA78zTcZ2CJggS6+7VRv7A1Ih95pnV4rwYDEbAT/Yfue7kE9ahBFOY8nfI nsQh7Us1cWp5uTqE+euQSll/XFRiTd3AJeKVUKgRWqaE1ap8fxitUhYTSSSFUSa/9YS6 U+zw== X-Forwarded-Encrypted: i=1; AJvYcCXxyrz4DJwt680pH8i5aaty7yRwVULPYY5LtS9Ex3cS8PizYU1U/bJGTN2UUR9ZbtgzACWfjX/HCugHjhvThbn+xAi4pZ0ZaQ1Nid3l X-Gm-Message-State: AOJu0YzOOfQ+050umsQitgCxJtk3BuyXgy7tqr9+ZOtLWbyednMjlwJ9 p9tG5C70adRJ4Sl8w7rnKPjYKxUvzXQgycCH15Qq0pwg6GYCKbXkt5pheITJn6hNchxMRzLKfFK rHA== X-Received: by 2002:a05:6512:34cc:b0:512:d643:8cf8 with SMTP id w12-20020a05651234cc00b00512d6438cf8mr22539lfr.62.1708489989365; Tue, 20 Feb 2024 20:33:09 -0800 (PST) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id tz3-20020a170907c78300b00a3ee67806fasm1476619ejc.152.2024.02.20.20.33.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 20:33:08 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-41270d0b919so8488465e9.1 for ; Tue, 20 Feb 2024 20:33:08 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXryLYyPpmBldkI3WRKtCllWj9OCgjNg9rcqEHmTW6QGZQjwnYbWIhmB0p4PmCNn5AGbAkU9fhkTMD+IgxsAEh+aVfes/wEldSgN0bx X-Received: by 2002:a5d:47a4:0:b0:33d:6ede:1149 with SMTP id 4-20020a5d47a4000000b0033d6ede1149mr2829350wrb.35.1708489988167; Tue, 20 Feb 2024 20:33:08 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1705581128-4604-1-git-send-email-shengjiu.wang@nxp.com> <1705581128-4604-8-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1705581128-4604-8-git-send-email-shengjiu.wang@nxp.com> From: Tomasz Figa Date: Wed, 21 Feb 2024 13:32:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v12 07/15] media: v4l2: Add audio capture and output support To: Shengjiu Wang Cc: hverkuil@xs4all.nl, sakari.ailus@iki.fi, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2024 at 10:15=E2=80=AFPM Shengjiu Wang wrote: > > Audio signal processing has the requirement for memory to > memory similar as Video. > > This patch is to add this support in v4l2 framework, defined > new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and > V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format > for audio case usage. > > The created audio device is named "/dev/v4l-audioX". > > Signed-off-by: Shengjiu Wang > --- > .../userspace-api/media/v4l/buffer.rst | 6 ++ > .../media/v4l/dev-audio-mem2mem.rst | 71 +++++++++++++++++++ > .../userspace-api/media/v4l/devices.rst | 1 + > .../media/v4l/vidioc-enum-fmt.rst | 2 + > .../userspace-api/media/v4l/vidioc-g-fmt.rst | 4 ++ > .../media/videodev2.h.rst.exceptions | 2 + > .../media/common/videobuf2/videobuf2-v4l2.c | 4 ++ > drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 9 +++ > drivers/media/v4l2-core/v4l2-dev.c | 17 +++++ > drivers/media/v4l2-core/v4l2-ioctl.c | 53 ++++++++++++++ > include/media/v4l2-dev.h | 2 + > include/media/v4l2-ioctl.h | 34 +++++++++ > include/uapi/linux/videodev2.h | 17 +++++ > 13 files changed, 222 insertions(+) > create mode 100644 Documentation/userspace-api/media/v4l/dev-audio-mem2m= em.rst For drivers/media/common/videobuf2: Acked-by: Tomasz Figa Best regards, Tomasz