Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-03-25 Thread Lennart Poettering
On Fri, 29.02.08 11:28, Jim Duda ([EMAIL PROTECTED]) wrote: > > Tanu, > > Aha, I'm getting closer. I realized that I cannot open the hardware twice. > > If I do this: > > load-module module-alsa-sink sink_name=ac3_raw device=spdif:0 > load-module module-alsa-sink sink_name=ac3_encode device=a

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-03-25 Thread Lennart Poettering
On Fri, 29.02.08 11:22, Jim Duda ([EMAIL PROTECTED]) wrote: > >> If I used anything besides nothing or channels=2, I don't get any audio. > > > > Here I'm a bit confused - what do you give that parameter > > to? I thought you were talking about module-detect, but it > > doesn't accept that paramet

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-03-25 Thread Lennart Poettering
On Thu, 28.02.08 21:57, Jim Duda ([EMAIL PROTECTED]) wrote: > The first thing I need to do is to get the spdif port on my CMPCI to > work with pulseaudio. I'm finding that defining an alsa-sink manually > using device surround51 doesn't work, I don't get any audio. surround51 is for analog 5.1

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-03-25 Thread Lennart Poettering
On Thu, 28.02.08 21:36, Jim Duda ([EMAIL PROTECTED]) wrote: > > Unfortunately, using a52encode as a device doesn't seem to work. I > tried by a52encode and a52. > > lroom# /usr/bin/pulseaudio --system [...] > .asoundrc It doesn't make sense to combine PA in system mode with a ~/.asoundrc. I

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-29 Thread Jim Duda
Tanu, And finally, I found that if I remove module-detect, then pulseaudio attaches to a52encode properly. I suspect what was happening is that both pulseaudio and a52encode want to use the spdif output. With module-detect active, pulseaudio was grabbing the spdif port after a52encode was es

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-29 Thread Jim Duda
Tanu, Aha, I'm getting closer. I realized that I cannot open the hardware twice. If I do this: load-module module-alsa-sink sink_name=ac3_raw device=spdif:0 load-module module-alsa-sink sink_name=ac3_encode device=a52encode I get an error on the second alsa-sink for a52encode, since ac3_raw al

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-29 Thread Jim Duda
Tanu, "Tanu Kaskinen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, Feb 28, 2008 at 09:57:31PM -0500, Jim Duda wrote: >> The first thing I need to do is to get the spdif port on my CMPCI to >> work with pulseaudio. I'm finding that defining an alsa-sink manually >> using d

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-29 Thread Jim Duda
I think I've learned that in order for a52encode to possibly work, I need to have /var/run/pulse/.asoundrc defined. /var/run/pulse/.asoundrc: pcm.a52encode { type a52 } Yields: lroom# /usr/bin/pulseaudio --system E: module-alsa-sink.c: Error opening PCM device a52encode: Device or resourc

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Tanu Kaskinen
On Thu, Feb 28, 2008 at 09:36:20PM -0500, Jim Duda wrote: > Unfortunately, using a52encode as a device doesn't seem to work. I > tried by a52encode and a52. > > lroom# /usr/bin/pulseaudio --system > ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL surround51:0 > W: alsa-util.c: Unable

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Tanu Kaskinen
On Thu, Feb 28, 2008 at 09:57:31PM -0500, Jim Duda wrote: > The first thing I need to do is to get the spdif port on my CMPCI to > work with pulseaudio. I'm finding that defining an alsa-sink manually > using device surround51 doesn't work, I don't get any audio. Instead of surround51, try spdi

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Jim Duda
The first thing I need to do is to get the spdif port on my CMPCI to work with pulseaudio. I'm finding that defining an alsa-sink manually using device surround51 doesn't work, I don't get any audio. Allowing pulseaudio to auto-detect does allow audio to work, but only with 2 channels. With a

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Jim Duda
Unfortunately, using a52encode as a device doesn't seem to work. I tried by a52encode and a52. lroom# /usr/bin/pulseaudio --system ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL surround51:0 W: alsa-util.c: Unable to attach to mixer surround51:0: No such file or directory ALSA lib p

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Jim Duda
Tanu, Okay, what you are describing makes sense. We route the 6 channels back through alsa and the a52 encoding, then out the actual device driver. The front-spdif was leftover stuff in my asoundrc file. I also need to send the raw AC3, DTS stream from some applications to the external digit

Re: [pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Tanu Kaskinen
On Thu, Feb 28, 2008 at 03:09:45PM -0500, Jim Duda wrote: > I would like to use pulseaudio on a machine which I have the sound card > attached to an digital decoder. I'm using the > alsa A52 plugin to perform a stereoupmix from 2 channels to six channels such > that I get the same stereo out of

[pulseaudio-discuss] Emulate Alsa A52 plugin in pulseaudio ?

2008-02-28 Thread Jim Duda
I would like to use pulseaudio on a machine which I have the sound card attached to an digital decoder. I'm using the alsa A52 plugin to perform a stereoupmix from 2 channels to six channels such that I get the same stereo out of the front and rear speakers. Can I use the remap module to copy