[alsa-devel] [PATCH - alsa-lib 1/1] add surround21 for Echo3G devices
From: Tom Yan tom.ty89@gmail.com
It's the only card conf that make use of surround41.conf and surround50.conf but not surround21.conf; Adding it for consistency, since all three of them are derived from surround51.
Signed-off-by: Tom Yan tom.ty89@gmail.com
diff --git a/src/conf/cards/Echo_Echo3G.conf b/src/conf/cards/Echo_Echo3G.conf index 766f13f..93d9ce4 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/surround40.conf Echo_Echo3G.pcm.surround40.0 { @args [ CARD ]
There is actually ONE card conf, AACI.conf, that supports surround51 but not surround20/surround41/surround50, but I don't feel like touching it, coz it's in the ideal state of what I proposed here: http://mailman.alsa-project.org/pipermail/alsa-devel/2016-January/103121.htm...
On 17 January 2016 at 03:05, tom.ty89@gmail.com wrote:
From: Tom Yan tom.ty89@gmail.com
It's the only card conf that make use of surround41.conf and surround50.conf but not surround21.conf; Adding it for consistency, since all three of them are derived from surround51.
Signed-off-by: Tom Yan tom.ty89@gmail.com
diff --git a/src/conf/cards/Echo_Echo3G.conf b/src/conf/cards/Echo_Echo3G.conf index 766f13f..93d9ce4 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 multislaves [{pcm {@func concatstrings ["cards.Echo_Echo3G.pcm.front.0:CARD=" $CARD]}channels 2}{pcm {@func concatstrings ["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/surround40.conf Echo_Echo3G.pcm.surround40.0 { @args [ CARD ] -- 2.7.0
It's included in another patchset: http://mailman.alsa-project.org/pipermail/alsa-devel/2016-January/103140.htm... So that the surround21 definition will be before surround30 instead of surround40.
On 17 January 2016 at 03:17, Tom Yan tom.ty89@gmail.com wrote:
There is actually ONE card conf, AACI.conf, that supports surround51 but not surround20/surround41/surround50, but I don't feel like touching it, coz it's in the ideal state of what I proposed here: http://mailman.alsa-project.org/pipermail/alsa-devel/2016-January/103121.htm...
On 17 January 2016 at 03:05, tom.ty89@gmail.com wrote:
From: Tom Yan tom.ty89@gmail.com
It's the only card conf that make use of surround41.conf and surround50.conf but not surround21.conf; Adding it for consistency, since all three of them are derived from surround51.
Signed-off-by: Tom Yan tom.ty89@gmail.com
diff --git a/src/conf/cards/Echo_Echo3G.conf b/src/conf/cards/Echo_Echo3G.conf index 766f13f..93d9ce4 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 multislaves [{pcm {@func concatstrings ["cards.Echo_Echo3G.pcm.front.0:CARD=" $CARD]}channels 2}{pcm {@func concatstrings ["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/surround40.conf Echo_Echo3G.pcm.surround40.0 { @args [ CARD ] -- 2.7.0
7>
There is actually ONE card conf, AACI.conf, that supports surround51 but not surround20/surround41/surround50, but I don't feel like touching it, coz it's in the ideal state of what I proposed here:
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-January/103121.htm...
On 17 January 2016 at 03:05, tom.ty89@gmail.com wrote:
From: Tom Yan tom.ty89@gmail.com
It's the only card conf that make use of surround41.conf and
surround50.conf but not surround21.conf; Adding it for consistency, since all three of them are derived from surround51.
Signed-off-by: Tom Yan tom.ty89@gmail.com
diff --git a/src/conf/cards/Echo_Echo3G.conf
b/src/conf/cards/Echo_Echo3G.conf
index 766f13f..93d9ce4 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 multislaves [{pcm {@func concatstrings [
"cards.Echo_Echo3G.pcm.front.0:CARD=" $CARD
]}channels 2}{pcm {@func concatstrings [
"cards.Echo_Echo3G.pcm.center_lfe.0:CARD=" $CARD
]}channels 2}]bindings [{ slave 0 channel 0 }{ slave 0 channel 1 }{ slave 1 channel 0 }]+}
Have you tested with real hardware for surround21 since pulseaudio fail with multi plugin with error -77 ?
http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-November/02267...
participants (3)
-
Raymond Yau -
Tom Yan -
tom.ty89@gmail.com