All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alsa-lib: added surround51 configuration for CS46xx cards
@ 2003-03-30 22:24 Benny Sjostrand
  2003-04-07  7:03 ` alsa-cvs linking error Andrei Boros
  0 siblings, 1 reply; 5+ messages in thread
From: Benny Sjostrand @ 2003-03-30 22:24 UTC (permalink / raw)
  To: alsa-devel

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

Hi!

With the latest cs46xx patches it's finally posible to have surround51 
with cs46xx soundcards (only dual CODEC's).
This patch just updates the alsa-lib/src/conf/cards/CS46xx.conf file.

$ aplay -D plug:surround51 ... seems to work fine!

/Benny

[-- Attachment #2: alsa-lib.patch --]
[-- Type: text/plain, Size: 1180 bytes --]

--- alsa-lib/src/conf/cards/CS46xx.conf	Fri Nov 29 15:50:58 2002
+++ ../cvs/alsa-lib/src/conf/cards/CS46xx.conf	Mon Mar 31 00:09:46 2003
@@ -26,6 +26,18 @@
 	device 1
 }	
 
+<confdir:pcm/center_lfe.conf>
+
+CS46xx.pcm.center_lfe.0 {
+	@args [ CARD ]
+	@args.CARD {
+		type string
+	}
+	type hw
+	card $CARD
+	device 3
+}	
+
 <confdir:pcm/surround40.conf>
 
 CS46xx.pcm.surround40.0 {
@@ -59,6 +71,53 @@
 		{ slave 0 channel 1 }
 		{ slave 1 channel 0 }
 		{ slave 1 channel 1 }
+	]
+}
+
+<confdir:pcm/surround51.conf>
+
+CS46xx.pcm.surround51.0 {
+	@args [ CARD ]
+	@args.CARD {
+		type string
+	}
+	type multi
+	slaves [
+		{
+			pcm {
+				@func concat
+				strings [
+					"cards.CS46xx.pcm.front.0:CARD=" $CARD
+				]
+			}
+			channels 2
+		}
+		{
+			pcm {
+				@func concat
+				strings [
+					"cards.CS46xx.pcm.rear.0:CARD=" $CARD
+				]
+			}
+			channels 2
+		}
+		{
+			pcm {
+				@func concat
+				strings [
+					"cards.CS46xx.pcm.center_lfe.0:CARD=" $CARD
+				]
+			}
+			channels 2
+		}
+	]
+	bindings [
+		{ slave 0 channel 0 }
+		{ slave 0 channel 1 }
+		{ slave 1 channel 0 }
+		{ slave 1 channel 1 }
+		{ slave 2 channel 0 }
+		{ slave 2 channel 1 }
 	]
 }
 

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

end of thread, other threads:[~2003-04-07 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-30 22:24 [PATCH] alsa-lib: added surround51 configuration for CS46xx cards Benny Sjostrand
2003-04-07  7:03 ` alsa-cvs linking error Andrei Boros
2003-04-07  8:05   ` Jaroslav Kysela
2003-04-07 10:32     ` Andrei Boros
2003-04-07 10:51       ` Jaroslav Kysela

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.