Fix for Bug 73461 - ok to commit?
Bernhard Rosenkraenzer
bero at arklinux.org
Tue Jan 27 13:10:10 GMT 2004
I've fixed bug #73461 and its various duplicates, which seems to affect
quite a few people (at the very least everyone using the ALSA 1.0.1 driver
for intel8x0 sound chips).
Ok to commit in the 1.2 branch?
LLaP
bero
--
Ark Linux - Linux for the masses
http://www.arklinux.org/
Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
-------------- next part --------------
--- arts/flow/audioioalsa9.cc.ark 2004-01-27 13:51:36.000000000 +0100
+++ arts/flow/audioioalsa9.cc 2004-01-27 14:01:08.000000000 +0100
@@ -275,13 +275,21 @@
return audio_write_fd;
case autoDetect:
+ {
/*
* that the ALSA driver could be compiled doesn't say anything
* about whether it will work (the user might be using an OSS
- * kernel driver) so we'll use a value less than the OSS one
- * here, because OSS will most certainly work (ALSA's OSS emu)
+ * kernel driver).
+ * If we can open the device, it'll work - and we'll have to use
+ * a higher number than OSS to avoid buggy OSS emulation being used.
*/
- return 5;
+ int card = -1;
+ if (snd_card_next(&card) < 0 || card < 0) {
+ // No ALSA drivers in use...
+ return 0;
+ }
+ return 11;
+ }
default:
return param(p);
More information about the kde-core-devel
mailing list