Skip to contentSkip to conversation

Alsa 0.9.0 RC5 + RH8 + GnomeMeeting

DISCUSSION Damien Sandras 2 participants 2 messages Nov 7, 2002 – Nov 8, 2002

lore
Share & tools
lore
#0 lore raw

Hi all,

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.

Only RedHat 8.0 users seem to be affected. Some of the users with problems installed ALSA 0.9.0RC3 and the problems disappeared.

Are there any known problems, or changes, in ALSA 0.9.0RC5 that could cause problems on RedHat when used with GnomeMeeting? Can any of you, with a RedHat, do some tests? What should I do?

Thanks,

Signature · 13 lines
 _	Damien Sandras
(o-	GnomeMeeting: http://www.gnomemeeting.org/
//\	FOSDEM 2003:  http://www.fosdem.org
v_/_	
	H.323 phone:  callto://ils.seconix.com/[email protected]




-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
#1 lore raw
Quoted 10 lines · Damien Sandras

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).

Quoted 2 lines

Thanks,

bye,
Wilfried

===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/oss/pcm_oss.c,v retrieving revision 1.21
retrieving revision 1.22

alsa-kernel/core/oss/pcm_oss.c +9 -1
diff -u -r1.21 -r1.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;