Re: [Alsa-devel] PCM API update

2002-10-12 Thread Abramo Bagnara
Jaroslav Kysela wrote: > > On Sat, 12 Oct 2002, Abramo Bagnara wrote: > > > Jaroslav Kysela wrote: > > > > > > > > > In this case, I propose to change snd_pcm_avail() to snd_pcm_hwsync() > > > function with description: "synchronize r/w pointers with hardware". > > > Really, after some thinking,

Re: [Alsa-devel] PCM API update

2002-10-12 Thread Abramo Bagnara
Jaroslav Kysela wrote: > > > In this case, I propose to change snd_pcm_avail() to snd_pcm_hwsync() > function with description: "synchronize r/w pointers with hardware". > Really, after some thinking, the return value from snd_pcm_avail() cannot > be used for nothing serious. I simply don't like

Re: [Alsa-devel] PCM API update

2002-10-12 Thread Jaroslav Kysela
On Sat, 12 Oct 2002, Abramo Bagnara wrote: > Jaroslav Kysela wrote: > > > > On Fri, 11 Oct 2002, Abramo Bagnara wrote: > > > > > I really don't understand why you've added another ioctl and another > > > function to replicate in all PCM classes. > > > snd_pcm_delay existence is enough to impleme

Re: [Alsa-devel] PCM API update

2002-10-12 Thread Jaroslav Kysela
On Sat, 12 Oct 2002, Abramo Bagnara wrote: > Jaroslav Kysela wrote: > > > > > > In this case, I propose to change snd_pcm_avail() to snd_pcm_hwsync() > > function with description: "synchronize r/w pointers with hardware". > > Really, after some thinking, the return value from snd_pcm_avail() ca

Re: [Alsa-devel] PCM API update

2002-10-12 Thread Jaroslav Kysela
On Fri, 11 Oct 2002, Abramo Bagnara wrote: > Jaroslav Kysela wrote: > > > > Hi all, > > > > these enhancements are in CVS for PCM API: > > > > - added snd_pcm_avail() function - this function returns count of > > available frames for write or read operations, the position > > is rea

Re: [Alsa-devel] PCM API update

2002-10-12 Thread Abramo Bagnara
Jaroslav Kysela wrote: > > On Fri, 11 Oct 2002, Abramo Bagnara wrote: > > > I really don't understand why you've added another ioctl and another > > function to replicate in all PCM classes. > > snd_pcm_delay existence is enough to implement that. > > I'm missing something? > > You're completely

Re: [Alsa-devel] PCM API update

2002-10-11 Thread Abramo Bagnara
Jaroslav Kysela wrote: > > Hi all, > > these enhancements are in CVS for PCM API: > > - added snd_pcm_avail() function - this function returns count of > available frames for write or read operations, the position > is read directly from hardware; the snd_pcm_avail_update() call >

[Alsa-devel] PCM API update

2002-10-11 Thread Jaroslav Kysela
Hi all, these enhancements are in CVS for PCM API: - added snd_pcm_avail() function - this function returns count of available frames for write or read operations, the position is read directly from hardware; the snd_pcm_avail_update() call is still mandatory before any I/O!!! - u