Takashi Iwai wrote:
At Tue, 25 Mar 2003 22:33:34 +0100,
Laurent Georget wrote:

Takashi Iwai wrote:

At Fri, 21 Mar 2003 16:16:04 +0200 (EET),
Kai Vehmanen wrote:


Hi,

first please read the mail to ecasound-list below.

It seems that with newer ALSA versions, snd_pcm_read[in]() sometimes
returns -EIO even though documentation says nothing about this. After some
testing this seems to not happen on direct hw-access, only with
the pcm_plugin. The EIO comes from snd_pcm_wait().


Is this a bug or or a feature?


i also don't know whether Jaroslav added as a feature or as an
unexpected bug.  anyway, this means that the poll failed and the pcm
status is abnormal, typically xruns...

how about the attached patch? (untested)


Takashi

Hello!


The problem I posted about is , I think, the same than Kai Vehmanem tells about here, but with Alsa level plugins
(the plugin from Abramo, and Ameter from me (well , 95% of the code is from Abramo and Steve Harris)


After 0.9rc7 , using level or ameter plugin with low (but valid) buffer size gives an IO error :

aplay -D level -B 10000 -v test.wav
....
aplay: pcm_write:1025: write error: Input/output error


ah, i forgot to tell that it was the fix for the capture.

for playback, you'll need to fix snd_pcm_write_areas() as well.
the patch attached below.  please give a try.


ciao,


Takashi

I applied the 2 patches : now it is ok for playing and recording with any buffersize.
Very cool !


Laurent



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to