Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

Takashi Iwai
2023-08-02T11:23:11Z

On Wed, 02 Aug 2023 09:32:37 +0200,
Hans Verkuil wrote:
>
> Hi all,
>
> On 25/07/2023 08:12, 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/audioX".
> >
> > And add memory to memory support for two kinds of i.MX ASRC
> > module
>
> Before I spend time on this: are the audio maintainers OK with doing
> this in V4L2?
>
> I do want to have a clear statement on this as it is not something I
> can decide.

Well, I personally don't mind to have some audio capability in v4l2
layer. But, the only uncertain thing for now is whether this is a
must-have or not.

IIRC, the implementation in the sound driver side was never done just
because there was no similar implementation? If so, and if the
extension to the v4l2 core layer is needed, shouldn't it be more
considered for the possible other route?

thanks,

Takashi