[alsa-devel] [PATCH - alsa-lib 3/3] add surround21 to Echo3G devices

tom.ty89 at gmail.com tom.ty89 at gmail.com
Sun Jan 17 14:44:06 CET 2016


From: Tom Yan <tom.ty89 at gmail.com>

Signed-off-by: Tom Yan <tom.ty89 at gmail.com>

diff --git a/src/conf/cards/Echo_Echo3G.conf b/src/conf/cards/Echo_Echo3G.conf
index dc95de6..548e709 100644
--- a/src/conf/cards/Echo_Echo3G.conf
+++ b/src/conf/cards/Echo_Echo3G.conf
@@ -50,6 +50,40 @@ Echo_Echo3G.pcm.side.0 {
 	subdevice 6
 }
 
+<confdir:pcm/surround21.conf>
+Echo_Echo3G.pcm.surround21.0 {
+	@args [ CARD ]
+	@args.CARD {
+		type string
+	}
+	type multi
+	slaves [
+		{
+			pcm {
+				@func concat
+				strings [
+					"cards.Echo_Echo3G.pcm.front.0:CARD=" $CARD
+				]
+			}
+			channels 2
+		}
+		{
+			pcm {
+				@func concat
+				strings [
+					"cards.Echo_Echo3G.pcm.center_lfe.0:CARD=" $CARD
+				]
+			}
+			channels 2
+		}
+	]
+	bindings [
+		{ slave 0 channel 0 }
+		{ slave 0 channel 1 }
+		{ slave 1 channel 0 }
+	]
+}
+
 <confdir:pcm/surround30.conf>
 Echo_Echo3G.pcm.surround30.0 {
 	@args [ CARD ]
-- 
2.7.0



More information about the Alsa-devel mailing list