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

2023-08-31 Thread Nicolas Dufresne
Hi, Le jeudi 24 août 2023 à 19:03 +0200, Takashi Iwai a écrit : > > 3. How to handle the xrun issue. pause or resume. which are brought by ALSA. > > Doesn't V4L2 handle the overrun/underrun at all?  Also, no resume > support? just a 2 cents comment. All our video m2m are job based. When there

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

2023-08-29 Thread Shengjiu Wang
On Fri, Aug 25, 2023 at 10:15 PM Hans Verkuil wrote: > > On 25/08/2023 15:54, Takashi Iwai wrote: > > On Fri, 25 Aug 2023 05:46:43 +0200, > > Shengjiu Wang wrote: > >> > >> On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: > >>> > >>> On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote:

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

2023-08-25 Thread Hans Verkuil
On 25/08/2023 15:54, Takashi Iwai wrote: > On Fri, 25 Aug 2023 05:46:43 +0200, > Shengjiu Wang wrote: >> >> On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: >>> >>> On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: Shengjiu Wang wrote: >>> > But there are several issues:

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

2023-08-25 Thread Takashi Iwai
On Fri, 25 Aug 2023 05:46:43 +0200, Shengjiu Wang wrote: > > On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: > > > > On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: > > > Shengjiu Wang wrote: > > > > > > But there are several issues: > > > > 1. Need to create sound cards. ASRC

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

2023-08-24 Thread Shengjiu Wang
On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: > > On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: > > Shengjiu Wang wrote: > > > > But there are several issues: > > > 1. Need to create sound cards. ASRC module support multi instances, then > > > need to create multi sound cards

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

2023-08-24 Thread Mark Brown
On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: > Shengjiu Wang wrote: > > But there are several issues: > > 1. Need to create sound cards. ASRC module support multi instances, then > > need to create multi sound cards for each instance. > Hm, why can't it be multiple PCM

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

2023-08-24 Thread Takashi Iwai
On Wed, 23 Aug 2023 16:33:19 +0200, Shengjiu Wang wrote: > > On Fri, Aug 11, 2023 at 7:05 PM Shengjiu Wang wrote: > > > > Hi Mark, Takashi > > > > On Thu, Aug 3, 2023 at 9:11 PM Shengjiu Wang > > wrote: > > > > > > On Thu, Aug 3, 2023 at 1:28 AM Mark Brown wrote: > > > > > > > > On Wed, Aug

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

2023-08-23 Thread Shengjiu Wang
On Fri, Aug 11, 2023 at 7:05 PM Shengjiu Wang wrote: > > Hi Mark, Takashi > > On Thu, Aug 3, 2023 at 9:11 PM Shengjiu Wang wrote: > > > > On Thu, Aug 3, 2023 at 1:28 AM Mark Brown wrote: > > > > > > On Wed, Aug 02, 2023 at 10:41:43PM +0800, Shengjiu Wang wrote: > > > > > > > Currently the ASRC

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

2023-08-11 Thread Shengjiu Wang
Hi Mark, Takashi On Thu, Aug 3, 2023 at 9:11 PM Shengjiu Wang wrote: > > On Thu, Aug 3, 2023 at 1:28 AM Mark Brown wrote: > > > > On Wed, Aug 02, 2023 at 10:41:43PM +0800, Shengjiu Wang wrote: > > > > > Currently the ASRC in ALSA is to connect to another I2S device as > > > a sound card. But

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

2023-08-04 Thread Hans Verkuil
On 04/08/2023 14:19, Shengjiu Wang wrote: > On Wed, Aug 2, 2023 at 8:28 PM Hans Verkuil wrote: >> >> On 02/08/2023 14:02, Shengjiu Wang wrote: >>> On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: On Wed, 02 Aug 2023 09:32:37 +0200, Hans Verkuil wrote: > > Hi all, >

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

2023-08-04 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 8:28 PM Hans Verkuil wrote: > > On 02/08/2023 14:02, Shengjiu Wang wrote: > > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > >> > >> On Wed, 02 Aug 2023 09:32:37 +0200, > >> Hans Verkuil wrote: > >>> > >>> Hi all, > >>> > >>> On 25/07/2023 08:12, Shengjiu Wang wrote:

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

2023-08-03 Thread Shengjiu Wang
On Thu, Aug 3, 2023 at 1:28 AM Mark Brown wrote: > > On Wed, Aug 02, 2023 at 10:41:43PM +0800, Shengjiu Wang wrote: > > > Currently the ASRC in ALSA is to connect to another I2S device as > > a sound card. But we'd like to the ASRC can be used by user space directly > > that user space

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

2023-08-02 Thread Mark Brown
On Wed, Aug 02, 2023 at 10:41:43PM +0800, Shengjiu Wang wrote: > Currently the ASRC in ALSA is to connect to another I2S device as > a sound card. But we'd like to the ASRC can be used by user space directly > that user space application can get the output after conversion from ASRC. That sort

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

2023-08-02 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 8:08 PM Takashi Iwai wrote: > > On Wed, 02 Aug 2023 14:02:29 +0200, > Shengjiu Wang wrote: > > > > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > > > > > On Wed, 02 Aug 2023 09:32:37 +0200, > > > Hans Verkuil wrote: > > > > > > > > Hi all, > > > > > > > > On

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

2023-08-02 Thread Hans Verkuil
On 02/08/2023 14:02, Shengjiu Wang wrote: > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: >> >> 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

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

2023-08-02 Thread Mark Brown
On Wed, Aug 02, 2023 at 08:02:29PM +0800, Shengjiu Wang wrote: > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > 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. > Thanks, I

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

2023-08-02 Thread Takashi Iwai
On Wed, 02 Aug 2023 14:02:29 +0200, Shengjiu Wang wrote: > > On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > > > 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

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

2023-08-02 Thread Shengjiu Wang
On Wed, Aug 2, 2023 at 7:22 PM Takashi Iwai wrote: > > 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

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

2023-08-02 Thread Takashi Iwai
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

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

2023-08-02 Thread Hans Verkuil
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

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

2023-07-25 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