Author Topic: duplicating PCM output with alsa  (Read 464 times)

Offline LSeraphim

  • Full Member
  • ***
  • Posts: 169
  • "In soviet Russia poo flushes you!"
duplicating PCM output with alsa
« on: October 16, 2011, 12:00:39 PM »
I am trying to duplicate the stereo output to two channels on the rear ports in ALSA.
Pulse will not connect and i don't see the benefit to fighting with that anyway.

I have tried these routes

http://drona.csa.iisc.ernet.in/~uday/alsamch.shtml
  used this part in .soundrc
      # for 5.1 speakers
pcm.ch51dup {
         slave.pcm surround51
         slave.channels 6
         type route
         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
}

# for 4.1 speakers
pcm.ch41dup {
         type route
         slave.pcm surround41
         slave.channels 5
         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
}

          put the other part in local.rc, ran that as root 

http://www.linuxjournal.com/node/8234/print
            I read through almost all of what is a tedious and long page, but got no real understanding of how to do what I wanted.

http://alsa.opensrc.org/SurroundSound#Custom_Routing_of_Signals_to_Surround_Outputs
         I tried several of those and either got an error message in console saying
             ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM surround51
Playback open error: -2,No such file or directory


and haven't been able to make anything work. I am obviously missing something, or missing a step. I am pasting the append they recommend into .asoundrc in my home directory, rebooting and not getting any luck.
I don't want or need 5.1 though, just quad.
If any one can tell me what I am doing wrong, it would be appreciated.
Linux is perfect, let's stop developing it.