Update of /cvsroot/alsa/alsa-kernel/core/oss
In directory sc8-pr-cvs1:/tmp/cvs-serv16298
Modified Files:
pcm_oss.c
Log Message:
Added handling for -EPIPE and -ESTRPIPE error codes in get_ptr and get_space
functions.
Index: pcm_oss.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- pcm_oss.c 3 Sep 2003 13:43:41 -0000 1.47
+++ pcm_oss.c 8 Sep 2003 07:14:17 -0000 1.48
@@ -1394,6 +1394,10 @@
}
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay);
+ if (err == -EPIPE || err == -ESTRPIPE) {
+ err = 0;
+ delay = 0;
+ }
} else {
err = snd_pcm_oss_capture_position_fixup(substream, &delay);
}
@@ -1454,7 +1458,12 @@
} else {
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY,
&avail);
- avail = runtime->buffer_size - avail;
+ if (err == -EPIPE || err == -ESTRPIPE) {
+ avail = runtime->buffer_size;
+ err = 0;
+ } else {
+ avail = runtime->buffer_size - avail;
+ }
} else {
err = snd_pcm_oss_capture_position_fixup(substream, &avail);
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog