Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-08 Thread Oleksandr Andrushchenko
On 08/07/2017 06:14 PM, Oleksandr Andrushchenko wrote: On 08/07/2017 04:55 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 04:11 PM, Clemens Ladisch wrote: How does that interface work? For the buffer received in .copy_user/.copy_kernel we send a request to the

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 04:55 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 04:11 PM, Clemens Ladisch wrote: How does that interface work? For the buffer received in .copy_user/.copy_kernel we send a request to the backend and get response back (async) when it has copied the

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Clemens Ladisch
Oleksandr Andrushchenko wrote: > On 08/07/2017 04:11 PM, Clemens Ladisch wrote: >> How does that interface work? > > For the buffer received in .copy_user/.copy_kernel we send > a request to the backend and get response back (async) when it has copied > the bytes into HW/mixer/etc, so the buffer

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 04:11 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 01:27 PM, Clemens Ladisch wrote: You have to implement period interrupts (and the .pointer callback) based on when the samples are actually moved from/to the backend. Do you think I can implement this

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Clemens Ladisch
Oleksandr Andrushchenko wrote: > On 08/07/2017 01:27 PM, Clemens Ladisch wrote: >> You have to implement period interrupts (and the .pointer callback) >> based on when the samples are actually moved from/to the backend. > > Do you think I can implement this in a slightly different way, > without a

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
Hi, Clemens! On 08/07/2017 01:27 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c.

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Clemens Ladisch
Oleksandr Andrushchenko wrote: > Front sound driver has no real interrupts, so > playback/capture period passed interrupt needs to be emulated: > this is done via timer. Add required timer operations, > this is based on sound/drivers/dummy.c. A 'real' sound card use the interrupt to synchronize