Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
> Can you explain what you are trying to accomplish starting from the > beginning? Okay, well starting from the very beginning... - I want 5.1 channel output from my sound card. All the time. - This means that when I play stereo sound I want it routed to the front two speakers as well as t

Re: [Alsa-user] Keeping multiple cards in sync (was: Assertion `snd_pcm_format_linear(slv->format)' failed)

2005-12-29 Thread Sergei Steshenko
In the telecom industry there is a special term, if I remember correctly, it's "bit shaving". The idea is like this: suppose you're on serial (RS232) link with TWO stop bits, but the frequencies are slightly out of sync. The protocol is implemented in such a manner, that if the second stop bit is

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Lee Revell
On Fri, 2005-12-30 at 12:51 +1000, Adam Nielsen wrote: > > Wait, so you're just trying to work around a bug in the LADSPA plugin? > > Well, yes. *blushes* > > > Why not just try to get that fixed? > > Primarily because I've got absolutely no idea where to start looking, > and I was hoping that t

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
> Wait, so you're just trying to work around a bug in the LADSPA plugin? Well, yes. *blushes* > Why not just try to get that fixed? Primarily because I've got absolutely no idea where to start looking, and I was hoping that this would be a quicker solution. Looks like perhaps it wasn't ;-) May

Re: [Alsa-user] Keeping multiple cards in sync (was: Assertion `snd_pcm_format_linear(slv->format)' failed)

2005-12-29 Thread Adam Nielsen
> It might be even worse. The cards most likely have independent clock > generators. In such a case, there will be (slightly) different > playback speed of left and right channels. I've always wondered about this. Fair enough that two cards would play back sound at slightly different speeds, bu

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Lee Revell
On Fri, 2005-12-30 at 12:04 +1000, Adam Nielsen wrote: > > What are you trying to do? > > I'm still trying to get stereo output when passing the sound through a > LADSPA plugin (which in the latest version of ALSA converts any incoming > stereo source into mono.) My current idea is to create a mu

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
> For stereo sound reproduction through speakers it is absolutely > crucial to have consistent and STABLE phase relationship between the > channels. Good point, but to be honest I'd rather have out of phase stereo compared to the mono sound I have at the moment ;-) > Data is written to the two ca

[Alsa-user] Unable to find an audio port (1) for channel 1

2005-12-29 Thread Adam Nielsen
Aha, well now I think I might be tracking down why stereo output via LADSPA isn't working. If I change "policy duplicate" in the LADSPA PCM definition to "policy none" then suddenly ALSA starts paying attention to all the 'bindings' definitions, and if I do this: ... input { bindings { 0 0

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Sergei Steshenko
It might be even worse. The cards most likely have independent clock generators. In such a case, there will be (slightly) different playback speed of left and right channels. On Fri, 30 Dec 2005 04:33:13 +0200 Sergei Steshenko <[EMAIL PROTECTED]> wrote: > " > Then I can feed one "card" through

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Sergei Steshenko
" Then I can feed one "card" through LADSPA giving one mono signal, and the other card though LADSPA giving a second mono signal, and then I can hopefully route the two mono signals out the left and right speakers giving me a stereo signal that has passed through LADSPA. " - well, it might be not

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
> Well AFAICT that assert is saying that the slave of a route plugin > can't have a non-linear format. That's what I thought - given that the slave is the LADSPA plugin, I assumed I'd somehow have to convert it to linear format before passing it to LADSPA - but I can't find any docs about how to d

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Lee Revell
On Fri, 2005-12-30 at 12:04 +1000, Adam Nielsen wrote: > > What are you trying to do? > > I'm still trying to get stereo output when passing the sound through a > LADSPA plugin (which in the latest version of ALSA converts any incoming > stereo source into mono.) My current idea is to create a mu

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
> What are you trying to do? I'm still trying to get stereo output when passing the sound through a LADSPA plugin (which in the latest version of ALSA converts any incoming stereo source into mono.) My current idea is to create a multi-card device, with the two "combined sound cards" being both o

Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Lee Revell
On Fri, 2005-12-30 at 11:36 +1000, Adam Nielsen wrote: > Hi all, > > What does this error mean? > > aplay: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion > `snd_pcm_format_linear(slv->format)' failed. > Aborted by signal Aborted... > ALSA lib pcm_plug.c:68:(snd_pcm_plug_close) plug slav

[Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed

2005-12-29 Thread Adam Nielsen
Hi all, What does this error mean? aplay: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed. Aborted by signal Aborted... ALSA lib pcm_plug.c:68:(snd_pcm_plug_close) plug slaves mismatch Just when I think I'm about to solve my problem, I always