[Alsa-user] 5.1 to 2.0.... seems to not work

2009-05-27 Thread MALET Jean-Luc
following links from the wiki I ended with asoundrc that looks like this :
http://www.halfgaar.net/surround-sound-in-linux

$ cat .asoundrc
pcm.51to20
{
type route
slave.pcm surround51
slave.channels 6

# Front and rear, at 33% of original signal strength
ttable.0.0 0.33
ttable.1.1 0.33
ttable.2.0 0.33
ttable.3.1 0.33

# Center channel routing (routed to front-left and front-right),
# 6dB gaindrop (gain half of main channels) per channel
ttable.4.0 0.16
ttable.4.1 0.16

# LFE channel routing (routed to front-left and front-right),
# 6dB gaindrop (gain half of main channels) per channel
ttable.5.0 0.16
ttable.5.1 0.16
}
$ speaker-test -c 6 -D 51to20 -t sine -f 40

speaker-test 1.0.17

Playback device is 51to20
Stream parameters are 48000Hz, S16_LE, 6 channels
Sine wave rate is 50,Hz
Broken configuration for playback: no configurations available: Argument 
invalide
Setting of hwparams failed: Argument invalide


no application show me my new card
$ aplay -L
default:CARD=NVidia
HDA NVidia, ALC883 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC883 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
Discard all samples (playback) or generate zero samples (capture)

does someone has any idea why it don't show?
thanks
JLM

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] need help to setup a 5.1 to 2.0 config

2009-04-17 Thread MALET Jean-Luc
Hi!
I have looked the wiki, tried lot of stuff, asked to some LUG list and 
since nothing else worked, I fall back on you
I don't understand clearly how alsa is working...
I started with http://www.alsa-project.org/main/index.php/Asoundrc

my need :
I have a 5.1 ogg stream, and a 5.1 soundcard, but I just use the 2.0 one 
(I don't have 5.1 speaker system, just headphones)
sadely ogg don't merge the streams as aac lib does to make a 2.0 sound 
from a 5.1 one, so when I listen to this stream I just hear partial sound...

so what I need is
  - a way to create a virtual 5.1 alsa device that merge all streams 
into a 2.0 one
  - the device shall accept multiple client (like dmix)

I thought first at using
Plugin: Route  Volume
but it don't allow multiple client
I then tried dmix, but the binding field don't seems to work correctly

I tried with

bindings {
  0 0 # map front left to left
  1 0 # map front center to left
  1 1 # map front center to right
  2 1 # map front right to right
  3 0 # map rear left to left
  4 1 # map rear right to right
  5 0 # map subwoofer to right
  5 1 # map subwooder to left
}

as a first approximation but well didn't worked correctly
can someone help me?
thanks
JLM

-- 
KISS! (Keep It Simple, Stupid!)
(garde le simple, imbécile!)
mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses 
simples et qui marchent, espèce d'imbécile!
-
Si vous pensez que vous êtes trop petit pour changer quoique ce soit, 
essayez donc de dormir avec un moustique dans votre chambre. Betty Reese
http://www.grainesdechangement.com/citations.htm


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user