From: Shengjiu Wang <shengjiu.wang@gmail.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, mchehab@kernel.org,
Xiubo.Lee@gmail.com, lgirdwood@gmail.com,
Shengjiu Wang <shengjiu.wang@nxp.com>,
tiwai@suse.com, linux-kernel@vger.kernel.org, tfiga@chromium.org,
nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org,
perex@perex.cz, linux-media@vger.kernel.org, festevam@gmail.com,
m.szyprowski@samsung.com
Subject: Re: [PATCH 4/6] ASoC: fsl_asrc: Add memory to memory driver
Date: Fri, 30 Jun 2023 11:37:29 +0800 [thread overview]
Message-ID: <CAA+D8ANbMYr9ATSfWnbq69ECHOPNTiOBc7QACEeHomCC+rTHng@mail.gmail.com> (raw)
In-Reply-To: <f6598cb0-6773-4475-85e1-5dfacaa16de3@sirena.org.uk>
[-- Attachment #1: Type: text/plain, Size: 1505 bytes --]
On Thu, Jun 29, 2023 at 7:39 PM Mark Brown <broonie@kernel.org> wrote:
> On Thu, Jun 29, 2023 at 09:37:51AM +0800, Shengjiu Wang wrote:
> > Implement the ASRC memory to memory function using
> > the v4l2 framework, user can use this function with
> > v4l2 ioctl interface.
> >
> > User send the output and capture buffer to driver and
> > driver store the converted data to the capture buffer.
> >
> > This feature can be shared by ASRC and EASRC drivers
> >
> > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> > ---
> > sound/soc/fsl/Kconfig | 13 +
> > sound/soc/fsl/Makefile | 2 +
> > sound/soc/fsl/fsl_asrc_m2m.c | 878 +++++++++++++++++++++++++++++++++++
> > sound/soc/fsl/fsl_asrc_m2m.h | 48 ++
>
> This feels like the bit where we interface v4l to ASoC should be a
> separate library, there shouldn't be anything device specific about
> getting an audio stream into a block of memory. I'm thinking something
> like the way we handle dmaengine here.
>
> I've not dug into the code yet though.
>
Users may want to get the ASRC output in the user space, then
do mixing with other streams before sending to ALSA.
As there is no such API in ASoC, the best interface I found is
the V4L2, but I need to do a little modification of the V4L2 API,
extend it for audio usage.
Could you please suggest more about the "separate library"?
Should I place this "sound/soc/fsl/fsl_asrc_m2m.c" in another folder?
best regards
wang shengjiu
[-- Attachment #2: Type: text/html, Size: 2238 bytes --]
next prev parent reply other threads:[~2023-06-30 9:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-29 1:37 [PATCH 0/6] Add audio support in v4l2 framework Shengjiu Wang
2023-06-29 1:37 ` [PATCH 1/6] media: v4l2: Add audio capture and output support Shengjiu Wang
2023-06-30 10:05 ` Sakari Ailus
2023-07-03 9:54 ` Shengjiu Wang
2023-07-03 10:04 ` Hans Verkuil
2023-07-03 12:07 ` Takashi Iwai
2023-07-03 12:53 ` Mark Brown
2023-07-03 13:12 ` Hans Verkuil
2023-07-03 13:25 ` Takashi Iwai
2023-07-04 3:55 ` Shengjiu Wang
2023-07-03 17:58 ` Mark Brown
2023-07-04 4:03 ` Shengjiu Wang
2023-07-07 3:13 ` Shengjiu Wang
2023-07-19 9:15 ` Shengjiu Wang
2023-06-29 1:37 ` [PATCH 2/6] ASoC: fsl_asrc: define functions for memory to memory usage Shengjiu Wang
2023-06-29 1:37 ` [PATCH 3/6] ASoC: fsl_easrc: " Shengjiu Wang
2023-06-29 10:59 ` Fabio Estevam
2023-06-30 3:23 ` Shengjiu Wang
2023-06-29 1:37 ` [PATCH 4/6] ASoC: fsl_asrc: Add memory to memory driver Shengjiu Wang
2023-06-29 11:38 ` Mark Brown
2023-06-30 3:37 ` Shengjiu Wang [this message]
2023-06-30 11:22 ` Mark Brown
2023-06-29 1:37 ` [PATCH 5/6] ASoC: fsl_asrc: enable memory to memory function Shengjiu Wang
2023-06-29 1:37 ` [PATCH 6/6] ASoC: fsl_easrc: " Shengjiu Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA+D8ANbMYr9ATSfWnbq69ECHOPNTiOBc7QACEeHomCC+rTHng@mail.gmail.com \
--to=shengjiu.wang@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@kernel.org \
--cc=nicoleotsuka@gmail.com \
--cc=perex@perex.cz \
--cc=shengjiu.wang@nxp.com \
--cc=tfiga@chromium.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).