All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wilfried Weissmann <Wilfried.Weissmann@gmx.at>
To: Damien Sandras <dsandras@seconix.com>,
	"alsa-devel@lists.sourceforge.net"
	<alsa-devel@lists.sourceforge.net>
Subject: Re: Alsa 0.9.0 RC5 + RH8 + GnomeMeeting
Date: Fri, 08 Nov 2002 15:43:11 +0100	[thread overview]
Message-ID: <3DCBCD7F.3050604@gmx.at> (raw)
In-Reply-To: 1036673221.17759.28.camel@heraclite

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

Damien Sandras wrote:
> I subscribed to this mailing list, because GnomeMeeting users have
> reported a problem using ALSA 0.9.0RC5 together with GnomeMeeting and
> RedHat 8.0.
> 
> Actually, the problem is simple to explain, hard to fix, at least for
> me. Several users complained that using GnomeMeeting was freezing their
> machine. This corresponds to a driver bug, somewhere, as "user-space"
> programs can't crash a machine directly. The only particularity of
> GnomeMeeting is that it is reading and writing to the device at the same
> time.

I had similar problems. A patch from Jaroslav Kysela fixed the problem 
for me (see attachment).

> 
> Thanks,

bye,
Wilfried

[-- Attachment #2: pcm_oss.c.diff --]
[-- Type: text/plain, Size: 724 bytes --]

===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- alsa/alsa-kernel/core/oss/pcm_oss.c	2002/10/21 18:28:20	1.21
+++ alsa/alsa-kernel/core/oss/pcm_oss.c	2002/10/30 20:29:15	1.22
@@ -564,7 +564,15 @@
 		} else {
 			ret = snd_pcm_lib_read(substream, ptr, frames);
 		}
-		if (ret != -EPIPE && ret != -ESTRPIPE)
+		if (ret == -EPIPE) {
+			if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) {
+				ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, 0);
+				if (ret < 0)
+					break;
+			}
+			continue;
+		}
+		if (ret != -ESTRPIPE)
 			break;
 	}
 	return ret;

      reply	other threads:[~2002-11-08 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-07 12:47 Alsa 0.9.0 RC5 + RH8 + GnomeMeeting Damien Sandras
2002-11-08 14:43 ` Wilfried Weissmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DCBCD7F.3050604@gmx.at \
    --to=wilfried.weissmann@gmx.at \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=dsandras@seconix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.