All of lore.kernel.org
 help / color / mirror / Atom feed
* gusclassic alsa configuration
@ 2009-01-21 21:35 Krzysztof Helt
  2009-01-21 21:50 ` Ville Syrjälä
  0 siblings, 1 reply; 15+ messages in thread
From: Krzysztof Helt @ 2009-01-21 21:35 UTC (permalink / raw)
  To: Alsa-devel; +Cc: Takashi Iwai, Rene Herman

Hi,

I have given another go to fix Gravis Ultrasound configuration for ALSA 
and I have found a working configuration. The Gravis Classic card uses
non-mmap and non-interleaved sound format so aplay fails with standard
configuration. Even worse, no default pcm device is defined so someone
who wants just install Linux on old computer won't get any sound.

I have modified the GUS.conf from the /usr/share/alsa/cards and the
GUS card now works with alsa and oss. My changes to the GUS.conf
are below (as a diff).

Does anybody know how to upload MIDI instruments into the GUS card
under ALSA? (like with awesfx for SB AWE)

Regards,
Krzysztof

--- /usr/src/alsa/alsa-lib-1.0.18/src/conf/cards/GUS.conf	2008-10-29 13:42:10.000000000 +0100
+++ GUS.conf	2009-01-21 20:42:42.675215220 +0100
@@ -19,10 +19,12 @@
 }	
 
 #
-# It's a temporary solution.
+# First route two channels to two other channels
+# to drop mmap requirement. Then, use the mmap_emul
+# plugin to allow using noninterleaved channels.
 #
 
-!pcm.hw {
+!pcm.default {
 	@args [ CARD DEV SUBDEV ]
 	@args.CARD {
 		type string
@@ -58,9 +60,16 @@
 			name defaults.pcm.subdevice
 		}
 	}		
-	type hw
-	card $CARD
-	device $DEV
-	subdevice $SUBDEV
-	mmap_emulation on
+	type route
+	slave.pcm {
+		type mmap_emul
+		slave.pcm {
+			type hw
+			card $CARD
+			device $DEV
+			subdevice $SUBDEV
+		}
+	}
+	ttable.0.0 1
+	ttable.1.1 1
 }

----------------------------------------------------------------------
Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis.
Sprawdz. >> http://link.interia.pl/f2019

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-01-28  8:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 21:35 gusclassic alsa configuration Krzysztof Helt
2009-01-21 21:50 ` Ville Syrjälä
2009-01-22 10:57   ` Takashi Iwai
2009-01-22 16:33     ` Krzysztof Helt
2009-01-22 16:34       ` Takashi Iwai
2009-01-22 22:11         ` Krzysztof Helt
2009-01-23  6:43           ` Takashi Iwai
2009-01-23 12:09             ` Krzysztof Helt
2009-01-23 13:42               ` Takashi Iwai
2009-01-25  8:19                 ` Krzysztof Helt
2009-01-25  9:50                   ` Ville Syrjälä
2009-01-28  8:10                     ` Takashi Iwai
2009-01-27 16:30                   ` Takashi Iwai
2009-01-27 20:41                     ` Krzysztof Helt
2009-01-28  8:09                       ` Takashi Iwai

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.