Skip to contentSkip to conversation

Channel modes feature request.

DISCUSSION James Courtier-Dutton 3 participants 6 messages Aug 11, 2003 – Aug 12, 2003

lore
Share & tools
lore
#0 lore raw

I have a SB live audio card.
I can open it with device names like: -
surround40 (Front Left, Front Right, Rear Left, Rear Right) surround51 (Front Left, Front Right, Rear Left, Rear Right, Center, LFE)

There is a requirement for: -
surround41 (Front Left, Front Right, Rear Left, Rear Right, LFE) surround50 (Front Left, Front Right, Rear Left, Rear Right, Center)

How can I get alsa to support these ?

Cheers
James

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

#1 lore raw

At Tue, 12 Aug 2003 00:19:34 +0100,

Quoted 11 lines · James Courtier-Dutton

I have a SB live audio card.
I can open it with device names like: -
surround40 (Front Left, Front Right, Rear Left, Rear Right) surround51 (Front Left, Front Right, Rear Left, Rear Right, Center, LFE)

There is a requirement for: -
surround41 (Front Left, Front Right, Rear Left, Rear Right, LFE) surround50 (Front Left, Front Right, Rear Left, Rear Right, Center)

How can I get alsa to support these ?

i still don't understand your question quite correctly.

do you mean open a multi-channel (5ch) pcm stream wihh the configuration above?
if so, it's not too difficult for sb live (but not always easy for other cards). it would look like:

pcm.my5ch {
type multi

slaves.a.pcm "front"
slaves.a.channels 2
slaves.b.pcm "rear"
slaves.b.channels 2
slaves.c.pcm "lfe"
slaves.c.channels 1

bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave c
bindings.4.channel 0
}

Takashi

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

#2 lore raw
Quoted 15 lines · Takashi Iwai

At Tue, 12 Aug 2003 00:19:34 +0100,

Quoted 10 lines · James Courtier-Dutton

I have a SB live audio card.
I can open it with device names like: -
surround40 (Front Left, Front Right, Rear Left, Rear Right) surround51 (Front Left, Front Right, Rear Left, Rear Right, Center, LFE)

There is a requirement for: -
surround41 (Front Left, Front Right, Rear Left, Rear Right, LFE) surround50 (Front Left, Front Right, Rear Left, Rear Right, Center)

How can I get alsa to support these ?

Quoted 6 lines

i still don't understand your question quite correctly.

do you mean open a multi-channel (5ch) pcm stream wihh the configuration above?
if so, it's not too difficult for sb live (but not always easy for other cards). it would look like:

Can you expand on why. Because it seems sensible to me that all cards that do surround51, can also do surround50 and surround41.
If by what you say, it is not possible (when I say not possible, I mean not possible with adding extra memcpy's to move the channels around in alsa-lib) , then I will adjust my application to use the surround51 pcm, and just mute the un-needed channel.

Quoted 24 lines

pcm.my5ch {
type multi

slaves.a.pcm "front"
slaves.a.channels 2
slaves.b.pcm "rear"
slaves.b.channels 2
slaves.c.pcm "lfe"
slaves.c.channels 1

bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave c
bindings.4.channel 0
}

Quoted 3 lines

Takashi

Cheers
James

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

#3 lore raw
Quoted 6 lines · James Courtier-Dutton

Can you expand on why. Because it seems sensible to me that all cards that do surround51, can also do surround50 and surround41. If by what you say, it is not possible (when I say not possible, I mean not possible with adding extra memcpy's to move the channels around in alsa-lib) , then I will adjust my application to use the surround51 pcm, and just mute the un-needed channel.

I am adding the new pcm names right now. If any opmitization is possible (and it is with some hardware) then alsa-lib must know the exact source stream parameters.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

#4 lore raw
In reply to James Courtier-Dutton

At Tue, 12 Aug 2003 10:25:50 +0100,

Quoted 19 lines · James Courtier-Dutton
Quoted 17 lines · Takashi Iwai

At Tue, 12 Aug 2003 00:19:34 +0100,

Quoted 10 lines · James Courtier-Dutton

I have a SB live audio card.
I can open it with device names like: -
surround40 (Front Left, Front Right, Rear Left, Rear Right) surround51 (Front Left, Front Right, Rear Left, Rear Right, Center, LFE)

There is a requirement for: -
surround41 (Front Left, Front Right, Rear Left, Rear Right, LFE) surround50 (Front Left, Front Right, Rear Left, Rear Right, Center)

How can I get alsa to support these ?

i still don't understand your question quite correctly.

Quoted 7 lines
Quoted 4 lines

do you mean open a multi-channel (5ch) pcm stream wihh the configuration above?
if so, it's not too difficult for sb live (but not always easy for other cards). it would look like:

Can you expand on why. Because it seems sensible to me that all cards that do surround51, can also do surround50 and surround41.

ok, so you mean a generic support for these formats.

Quoted 4 lines

If by what you say, it is not possible (when I say not possible, I mean not possible with adding extra memcpy's to move the channels around in alsa-lib) , then I will adjust my application to use the surround51 pcm, and just mute the un-needed channel.

well, after thinking a bit more, it turned out that it's easy to do this in generic way (but with an overhead, of course).

e.g. surround41 can be derived from surround51 such as

pcm.surround41 {
	type route
	slave.pcm surround51
	ttable.0.0 1
	ttable.1.1 1
	ttable.2.2 1
	ttable.3.3 1
	ttable.4.5 1
}

we can define this as a default while the optimized version can be defined in each card definition (as written in my previous post).

Takashi

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

#5 lore raw

At Tue, 12 Aug 2003 11:37:23 +0200,

Quoted 2 lines · I wrote:

e.g. surround41 can be derived from surround51 such as

(snip)

Quoted 2 lines

we can define this as a default while the optimized version can be defined in each card definition (as written in my previous post).

oh, Jaroslav already changed the cvs tree in a lightening speed before my post. thanks :)

Takashi

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01