Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-19 Thread Shengjiu Wang
Hi Mark On Fri, Jul 7, 2023 at 11:13 AM Shengjiu Wang wrote: > Hi Mark > > On Tue, Jul 4, 2023 at 12:03 PM Shengjiu Wang > wrote: > >> >> >> On Tue, Jul 4, 2023 at 1:59 AM Mark Brown wrote: >> >>> On Mon, Jul 03, 2023 at 03:12:55PM +0200, Hans Verkuil wrote: >>> >>> > My main concern is that t

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-07 Thread Shengjiu Wang
Hi Mark On Tue, Jul 4, 2023 at 12:03 PM Shengjiu Wang wrote: > > > On Tue, Jul 4, 2023 at 1:59 AM Mark Brown wrote: > >> On Mon, Jul 03, 2023 at 03:12:55PM +0200, Hans Verkuil wrote: >> >> > My main concern is that these cross-subsystem drivers are a pain to >> > maintain. So there have to be g

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Shengjiu Wang
On Tue, Jul 4, 2023 at 1:59 AM Mark Brown wrote: > On Mon, Jul 03, 2023 at 03:12:55PM +0200, Hans Verkuil wrote: > > > My main concern is that these cross-subsystem drivers are a pain to > > maintain. So there have to be good reasons to do this. > > > Also it is kind of weird to have to use the V

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Shengjiu Wang
On Mon, Jul 3, 2023 at 9:25 PM Takashi Iwai wrote: > On Mon, 03 Jul 2023 15:12:55 +0200, > Hans Verkuil wrote: > > > > On 03/07/2023 14:53, Mark Brown wrote: > > > On Mon, Jul 03, 2023 at 02:07:10PM +0200, Takashi Iwai wrote: > > >> Shengjiu Wang wrote: > > > > > >>> There is no such memory to me

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Shengjiu Wang
Hi Sakari On Fri, Jun 30, 2023 at 6:05 PM Sakari Ailus wrote: > Hi Shengjiu, > > On Thu, Jun 29, 2023 at 09:37:48AM +0800, 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,

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Mark Brown
On Mon, Jul 03, 2023 at 03:12:55PM +0200, Hans Verkuil wrote: > My main concern is that these cross-subsystem drivers are a pain to > maintain. So there have to be good reasons to do this. > Also it is kind of weird to have to use the V4L2 API in userspace to > deal with a specific audio conversi

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Takashi Iwai
On Mon, 03 Jul 2023 15:12:55 +0200, Hans Verkuil wrote: > > On 03/07/2023 14:53, Mark Brown wrote: > > On Mon, Jul 03, 2023 at 02:07:10PM +0200, Takashi Iwai wrote: > >> Shengjiu Wang wrote: > > > >>> There is no such memory to memory interface defined in ALSA.  Seems > >>> ALSA is not designed f

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Hans Verkuil
On 03/07/2023 14:53, Mark Brown wrote: > On Mon, Jul 03, 2023 at 02:07:10PM +0200, Takashi Iwai wrote: >> Shengjiu Wang wrote: > >>> There is no such memory to memory interface defined in ALSA.  Seems >>> ALSA is not designed for M2M cases. > >> There is no restriction to implement memory-to-memo

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Mark Brown
On Mon, Jul 03, 2023 at 02:07:10PM +0200, Takashi Iwai wrote: > Shengjiu Wang wrote: > > There is no such memory to memory interface defined in ALSA.  Seems > > ALSA is not designed for M2M cases. > There is no restriction to implement memory-to-memory capture in ALSA > framework. It'd be a matt

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Takashi Iwai
On Mon, 03 Jul 2023 11:54:22 +0200, Shengjiu Wang wrote: > > > Hi Sakari > > On Fri, Jun 30, 2023 at 6:05 PM Sakari Ailus wrote: > > Hi Shengjiu, > > On Thu, Jun 29, 2023 at 09:37:48AM +0800, Shengjiu Wang wrote: > > Audio signal processing has the requirement for memory to >

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-07-03 Thread Hans Verkuil
On 03/07/2023 11:54, Shengjiu Wang wrote: > Hi Sakari > > On Fri, Jun 30, 2023 at 6:05 PM Sakari Ailus > wrote: > > Hi Shengjiu, > > On Thu, Jun 29, 2023 at 09:37:48AM +0800, Shengjiu Wang wrote: > > Audio signal processing has the requirement for memory

Re: [PATCH 1/6] media: v4l2: Add audio capture and output support

2023-06-30 Thread Sakari Ailus
Hi Shengjiu, On Thu, Jun 29, 2023 at 09:37:48AM +0800, 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_AUD

[PATCH 1/6] media: v4l2: Add audio capture and output support

2023-06-28 Thread Shengjiu Wang
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