All of lore.kernel.org
 help / color / mirror / Atom feed
* copy pcm plugin
@ 2004-01-28 17:05 Florian Schmidt
  2004-01-28 17:37 ` [Alsa-user] " Takashi Iwai
  2004-01-28 18:46 ` [Alsa-devel] " Jaroslav Kysela
  0 siblings, 2 replies; 5+ messages in thread
From: Florian Schmidt @ 2004-01-28 17:05 UTC (permalink / raw)
  To: alsa-user; +Cc: alsa-devel


Hi, as far as i understand it, the copy plugin does nothing but copy its
input to its output. I wonder if it would be easily possible to extend
this plugin to copy to multiple slave pcms. This way it would be
(easily?) possible to "distribute" a stereo signal to 4 or even 6
channels.

Any thoughts? Maybe i just misunderstood the pcm copy docs though..

Flo

-- 
signature :)



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

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

* Re: [Alsa-user] copy pcm plugin
  2004-01-28 17:05 copy pcm plugin Florian Schmidt
@ 2004-01-28 17:37 ` Takashi Iwai
  2004-01-28 19:02   ` [Alsa-devel] " Takashi Iwai
  2004-01-28 18:46 ` [Alsa-devel] " Jaroslav Kysela
  1 sibling, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2004-01-28 17:37 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-user, alsa-devel

At Wed, 28 Jan 2004 18:05:46 +0100,
Florian Schmidt wrote:
> 
> 
> Hi, as far as i understand it, the copy plugin does nothing but copy its
> input to its output. I wonder if it would be easily possible to extend
> this plugin to copy to multiple slave pcms. This way it would be
> (easily?) possible to "distribute" a stereo signal to 4 or even 6
> channels.

route (and plug) plugin already can do that.
for example,

pcm.ch40dup {
	type route
	slave.pcm surround40
	slave.channels 4
	ttable.0.0 1
	ttable.1.1 1
	ttable.0.2 1
	ttable.1.3 1
}

pcm.ch51dup {
	type route
	slave.pcm surround51
	slave.channels 6
	ttable.0.0 1
	ttable.1.1 1
	ttable.0.2 1
	ttable.1.3 1
	ttable.0.4 0.5
	ttable.1.4 0.5
	ttable.0.5 0.5
	ttable.1.5 0.5
}


and you can play two channel WAV like

	% aplay -Dch40dup 2ch-stereo.wav

	% aplay -Dch51dup 2ch-stereo.wav

for 4.0 and 5.1 surrounds, respectively.
of course, this is just copy of left/right samples, no dolby prologic 
effect is included ;)


Takashi


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

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

* Re: [Alsa-devel] copy pcm plugin
  2004-01-28 17:05 copy pcm plugin Florian Schmidt
  2004-01-28 17:37 ` [Alsa-user] " Takashi Iwai
@ 2004-01-28 18:46 ` Jaroslav Kysela
  1 sibling, 0 replies; 5+ messages in thread
From: Jaroslav Kysela @ 2004-01-28 18:46 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-user, alsa-devel

On Wed, 28 Jan 2004, Florian Schmidt wrote:

> 
> Hi, as far as i understand it, the copy plugin does nothing but copy its
> input to its output. I wonder if it would be easily possible to extend
> this plugin to copy to multiple slave pcms. This way it would be
> (easily?) possible to "distribute" a stereo signal to 4 or even 6
> channels.
> 
> Any thoughts? Maybe i just misunderstood the pcm copy docs though..

Yes, copy is a simple optimized variation of the route plugin, but you 
need to merge stereo devices with "multi" plugin to the multichannel 
device at first.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

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

* Re: [Alsa-devel] Re: copy pcm plugin
  2004-01-28 17:37 ` [Alsa-user] " Takashi Iwai
@ 2004-01-28 19:02   ` Takashi Iwai
  2004-01-28 21:30     ` Florian Schmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2004-01-28 19:02 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-user, alsa-devel

At Wed, 28 Jan 2004 18:37:32 +0100,
I wrote:
> 
> At Wed, 28 Jan 2004 18:05:46 +0100,
> Florian Schmidt wrote:
> > 
> > 
> > Hi, as far as i understand it, the copy plugin does nothing but copy its
> > input to its output. I wonder if it would be easily possible to extend
> > this plugin to copy to multiple slave pcms. This way it would be
> > (easily?) possible to "distribute" a stereo signal to 4 or even 6
> > channels.
> 
> route (and plug) plugin already can do that.
> for example,

ah, in your question, multiple slave pcms are assumed.
in such a case, combine the multiple pcms via multi plugin at first,
then use route plugin over it.


Takashi


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

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

* Re: [Alsa-devel] Re: copy pcm plugin
  2004-01-28 19:02   ` [Alsa-devel] " Takashi Iwai
@ 2004-01-28 21:30     ` Florian Schmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Florian Schmidt @ 2004-01-28 21:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, alsa-devel

On Wed, 28 Jan 2004 20:02:03 +0100
Takashi Iwai <tiwai@suse.de> wrote:

> At Wed, 28 Jan 2004 18:37:32 +0100,
> I wrote:
> > 
> > At Wed, 28 Jan 2004 18:05:46 +0100,
> > Florian Schmidt wrote:
> > > 
> > > 
> > > Hi, as far as i understand it, the copy plugin does nothing but
> > > copy its input to its output. I wonder if it would be easily
> > > possible to extend this plugin to copy to multiple slave pcms.
> > > This way it would be(easily?) possible to "distribute" a stereo
> > > signal to 4 or even 6 channels.
> > 
> > route (and plug) plugin already can do that.
> > for example,
> 
> ah, in your question, multiple slave pcms are assumed.
> in such a case, combine the multiple pcms via multi plugin at first,
> then use route plugin over it.

Well, i thought i would need to somehow copy to front/rear, etc,
manually. But just using the surround51 or surround40 as slave pcm
sounds just as good. Thanks, Takashi and Jaroslav for the quick infos :)
I will add them to the wiki soon..

Flo

-- 
signature :)



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

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

end of thread, other threads:[~2004-01-28 21:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 17:05 copy pcm plugin Florian Schmidt
2004-01-28 17:37 ` [Alsa-user] " Takashi Iwai
2004-01-28 19:02   ` [Alsa-devel] " Takashi Iwai
2004-01-28 21:30     ` Florian Schmidt
2004-01-28 18:46 ` [Alsa-devel] " 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.