Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
> 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 the rear two speakers. I also want the low frequencies from both input channels routed to the subwoofer channel. - When I play mono sound, I want it routed to in the same way as stereo - front and rear speakers, and subwoofer. - When I play 5.1 sound, I want it routed to each correct channel (i.e. I don't want the front speakers duplicated out the back, which the 'duplicate front' mixer control does.) This is relatively simple, but the difficulty arises because I also want every single channel routed via a single LADSPA plugin before it gets to the speakers. This is an equaliser plugin, which boosts specific frequencies that my external amplifier seems to lack. I used to have this working with stereo, but I was having some trouble getting the routing correct with my old ALSA version (1.0rc2 or something.) I upgraded to 1.0.11rc1, however the routing then went haywire - which I then discovered was because the LADSPA plugin converted everything to mono (or rather stereo with the same signal in both channels.) My intent was to get LADSPA going again with stereo, which would allow me to resume my quest to get 5.1 sound working too. Hopefully this gives you some idea where I'm coming from! Thanks, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Keeping multiple cards in sync (was: Assertion `snd_pcm_format_linear(slv->format)' failed)
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 slightly shorter than nominal, the system will still work. That's because the bits are sampled by internal clock anyway, so if a bit is sampled as one, it is considered to be full length one. So, the smart controllers monitor phase difference and slightly "shave" (i.e. shorten by adjustable portion) the second stop bit to compensate for it. In audio a smart thing would be to drop/add samples in the intervals of (near) silence. Whatever... I just use 'streamripper' and play back files rather than real time stream. On Fri, 30 Dec 2005 12:45:48 +1000 Adam Nielsen <[EMAIL PROTECTED]> wrote: > > 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, but why can't you just drop a > sample or two every few milliseconds or so, to keep the sound roughly in > sync? > > Cheers, > Adam. > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 this would be a quicker solution. Looks like > perhaps it wasn't ;-) > > Maybe I should take a look at the source...only I fear it's going to > take me rather a long time just to work out how it all fits together... Can you explain what you are trying to accomplish starting from the beginning? Lee --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
> 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 ;-) Maybe I should take a look at the source...only I fear it's going to take me rather a long time just to work out how it all fits together... Cheers, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Keeping multiple cards in sync (was: Assertion `snd_pcm_format_linear(slv->format)' failed)
> 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, but why can't you just drop a sample or two every few milliseconds or so, to keep the sound roughly in sync? Cheers, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 multi-card > device, with the two "combined sound cards" being both on the same > physical card. 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. Wait, so you're just trying to work around a bug in the LADSPA plugin? Why not just try to get that fixed? Lee --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
> 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 cards at different moments of time - > because they are two cards, not one card. And the time difference is > random - it depends on PCI activity, interrupts, memory refresh, etc. > So, unless you have HW means to synchronize sound in the two cards, > the results might be bad anyway. In this case it won't be a problem because it's the same physical card - card #0 is "hw:0,0" and card #1 is "hw:0,0" with the card doing hardware mixing to get the stereo signal. Unfortunately it all seems fine until I try the "type multi" definition, upon which all I get is silence :-( Cheers, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Unable to find an audio port (1) for channel 1
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 1 1 } } ... Then it complains: ALSA lib pcm_ladspa.c:1283:(snd_pcm_ladspa_parse_ioconfig) Unable to find an audio port (1) for channel 1 aplay: main:547: audio open error: Invalid argument So what does this mean? It looks like solving this problem will fix the mono-only LADSPA output problem. Thanks, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 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 a good idea from acoustics point of view. > > For stereo sound reproduction through speakers it is absolutely crucial to > have consistent and STABLE phase relationship between the channels. > > Data is written to the two cards at different moments of time - because > they are two cards, not one card. And the time difference is random - > it depends on PCI activity, interrupts, memory refresh, etc. > > So, unless you have HW means to synchronize sound in the two > cards, the results might be bad anyway. > > Regards, > Sergei. > > On Fri, 30 Dec 2005 12:04:44 +1000 > Adam Nielsen <[EMAIL PROTECTED]> 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 multi-card > > device, with the two "combined sound cards" being both on the same > > physical card. 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. > > > > It just seems that if you connect things in a certain way (particularly > > with the ALSA ladspa plugin) I get all these weird assertion failures - > > so I was hoping that if I knew why they were happening it might help me > > figure out a way around them. > > > > Thanks, > > Adam. > > > > > > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > ___ > > Alsa-user mailing list > > Alsa-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/alsa-user > > > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > Alsa-user mailing list > Alsa-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-user > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
" 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 a good idea from acoustics point of view. For stereo sound reproduction through speakers it is absolutely crucial to have consistent and STABLE phase relationship between the channels. Data is written to the two cards at different moments of time - because they are two cards, not one card. And the time difference is random - it depends on PCI activity, interrupts, memory refresh, etc. So, unless you have HW means to synchronize sound in the two cards, the results might be bad anyway. Regards, Sergei. On Fri, 30 Dec 2005 12:04:44 +1000 Adam Nielsen <[EMAIL PROTECTED]> 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 multi-card > device, with the two "combined sound cards" being both on the same > physical card. 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. > > It just seems that if you connect things in a certain way (particularly > with the ALSA ladspa plugin) I get all these weird assertion failures - > so I was hoping that if I knew why they were happening it might help me > figure out a way around them. > > Thanks, > Adam. > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > Alsa-user mailing list > Alsa-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-user > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
> 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 do that :-( Cheers, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 multi-card > device, with the two "combined sound cards" being both on the same > physical card. 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. > > It just seems that if you connect things in a certain way (particularly > with the ALSA ladspa plugin) I get all these weird assertion failures - > so I was hoping that if I knew why they were happening it might help me > figure out a way around them. Well AFAICT that assert is saying that the slave of a route plugin can't have a non-linear format. Lee --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
> 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 on the same physical card. 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. It just seems that if you connect things in a certain way (particularly with the ALSA ladspa plugin) I get all these weird assertion failures - so I was hoping that if I knew why they were happening it might help me figure out a way around them. Thanks, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 slaves mismatch > > Just when I think I'm about to solve my problem, I always seem to get > this coming up - even using a configuration that worked with an old > version of ALSA. > > Any ideas what it means? What are you trying to do? Lee --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
[Alsa-user] Assertion `snd_pcm_format_linear(slv->format)' failed
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 seem to get this coming up - even using a configuration that worked with an old version of ALSA. Any ideas what it means? Thanks, Adam. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user