All of lore.kernel.org
 help / color / mirror / Atom feed
* Channel modes feature request.
@ 2003-08-11 23:19 James Courtier-Dutton
  2003-08-12  9:12 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: James Courtier-Dutton @ 2003-08-11 23:19 UTC (permalink / raw)
  To: alsa-devel

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

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

* Re: Channel modes feature request.
  2003-08-11 23:19 Channel modes feature request James Courtier-Dutton
@ 2003-08-12  9:12 ` Takashi Iwai
  2003-08-12  9:25   ` James Courtier-Dutton
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2003-08-12  9:12 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: alsa-devel

At Tue, 12 Aug 2003 00:19:34 +0100,
James Courtier-Dutton wrote:
> 
> 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

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

* Re: Channel modes feature request.
  2003-08-12  9:12 ` Takashi Iwai
@ 2003-08-12  9:25   ` James Courtier-Dutton
  2003-08-12  9:32     ` Jaroslav Kysela
  2003-08-12  9:37     ` Takashi Iwai
  0 siblings, 2 replies; 6+ messages in thread
From: James Courtier-Dutton @ 2003-08-12  9:25 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Takashi Iwai wrote:
> At Tue, 12 Aug 2003 00:19:34 +0100,
> James Courtier-Dutton wrote:
> 
>>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:

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.

> 
> 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
> 
> 

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

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

* Re: Channel modes feature request.
  2003-08-12  9:25   ` James Courtier-Dutton
@ 2003-08-12  9:32     ` Jaroslav Kysela
  2003-08-12  9:37     ` Takashi Iwai
  1 sibling, 0 replies; 6+ messages in thread
From: Jaroslav Kysela @ 2003-08-12  9:32 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: Takashi Iwai, alsa-devel

On Tue, 12 Aug 2003, James Courtier-Dutton wrote:

> 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 <perex@suse.cz>
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

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

* Re: Channel modes feature request.
  2003-08-12  9:25   ` James Courtier-Dutton
  2003-08-12  9:32     ` Jaroslav Kysela
@ 2003-08-12  9:37     ` Takashi Iwai
  2003-08-12  9:40       ` Takashi Iwai
  1 sibling, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2003-08-12  9:37 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: alsa-devel

At Tue, 12 Aug 2003 10:25:50 +0100,
James Courtier-Dutton wrote:
> 
> Takashi Iwai wrote:
> > At Tue, 12 Aug 2003 00:19:34 +0100,
> > James Courtier-Dutton wrote:
> > 
> >>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:
> 
> 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.

> 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

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

* Re: Channel modes feature request.
  2003-08-12  9:37     ` Takashi Iwai
@ 2003-08-12  9:40       ` Takashi Iwai
  0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2003-08-12  9:40 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: alsa-devel

At Tue, 12 Aug 2003 11:37:23 +0200,
I wrote:
> 
> e.g. surround41 can be derived from surround51 such as
(snip)
> 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

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

end of thread, other threads:[~2003-08-12  9:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11 23:19 Channel modes feature request James Courtier-Dutton
2003-08-12  9:12 ` Takashi Iwai
2003-08-12  9:25   ` James Courtier-Dutton
2003-08-12  9:32     ` Jaroslav Kysela
2003-08-12  9:37     ` Takashi Iwai
2003-08-12  9:40       ` 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.