All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't link multiple streams
@ 2003-11-10 16:09 Robert Brückmann
  2003-11-10 17:40 ` Takashi Iwai
  2003-11-10 19:01 ` Jaroslav Kysela
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Brückmann @ 2003-11-10 16:09 UTC (permalink / raw)
  To: alsa-devel

I have 3 capture and 3 playback devices (all sample-synced via 
wordclock) which I want to sync via snd_pcm_link(). So I do the 
following calls:

snd_pcm_link(playback1,playback2);
snd_pcm_link(playback2,playback3);
snd_pcm_link(capture1,capture2);
snd_pcm_link(capture2,capture3);
snd_pcm_link(playback1,capture1);

This worked in an older version of ALSA without problems (I used 
0.9.0beta12), but since I upgraded to 0.9.7a, I can't link, the last 
link operation gives an error:

ALSA lib pcm.c:1148:(snd_pcm_link) SNDRV_PCM_IOCTL_LINK failed: 
Operation already in progress

How can I do the linking in current Alsa versions?

Thanks,
Robert



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't link multiple streams
  2003-11-10 16:09 Can't link multiple streams Robert Brückmann
@ 2003-11-10 17:40 ` Takashi Iwai
  2003-11-10 19:01 ` Jaroslav Kysela
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2003-11-10 17:40 UTC (permalink / raw)
  To: Robert Brückmann; +Cc: alsa-devel

At Mon, 10 Nov 2003 17:09:40 +0100,
Robert Brückmann wrote:
> 
> I have 3 capture and 3 playback devices (all sample-synced via 
> wordclock) which I want to sync via snd_pcm_link(). So I do the 
> following calls:
> 
> snd_pcm_link(playback1,playback2);
> snd_pcm_link(playback2,playback3);
> snd_pcm_link(capture1,capture2);
> snd_pcm_link(capture2,capture3);
> snd_pcm_link(playback1,capture1);
> 
> This worked in an older version of ALSA without problems (I used 
> 0.9.0beta12), but since I upgraded to 0.9.7a, I can't link, the last 
> link operation gives an error:
> 
> ALSA lib pcm.c:1148:(snd_pcm_link) SNDRV_PCM_IOCTL_LINK failed: 
> Operation already in progress

which link in the above do you have this error?


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't link multiple streams
  2003-11-10 16:09 Can't link multiple streams Robert Brückmann
  2003-11-10 17:40 ` Takashi Iwai
@ 2003-11-10 19:01 ` Jaroslav Kysela
  1 sibling, 0 replies; 3+ messages in thread
From: Jaroslav Kysela @ 2003-11-10 19:01 UTC (permalink / raw)
  To: Robert Brückmann; +Cc: alsa-devel

On Mon, 10 Nov 2003, [ISO-8859-1] Robert Brückmann wrote:

> I have 3 capture and 3 playback devices (all sample-synced via
> wordclock) which I want to sync via snd_pcm_link(). So I do the
> following calls:
>
> snd_pcm_link(playback1,playback2);
> snd_pcm_link(playback2,playback3);
> snd_pcm_link(capture1,capture2);
> snd_pcm_link(capture2,capture3);
> snd_pcm_link(playback1,capture1);
>
> This worked in an older version of ALSA without problems (I used
> 0.9.0beta12), but since I upgraded to 0.9.7a, I can't link, the last
> link operation gives an error:
>
> ALSA lib pcm.c:1148:(snd_pcm_link) SNDRV_PCM_IOCTL_LINK failed:
> Operation already in progress
>
> How can I do the linking in current Alsa versions?

This is wrong sequence. Try:

snd_pcm_link(playback1,playback2);
snd_pcm_link(playback2,playback3);
snd_pcm_link(playback3,capture1);
snd_pcm_link(capture1,capture2);
snd_pcm_link(capture2,capture3);

or:

snd_pcm_link(playback1,playback2);
snd_pcm_link(playback1,playback3);
snd_pcm_link(playback1,capture1);
snd_pcm_link(playback1,capture2);
snd_pcm_link(playback1,capture3);

It's true that semantics changed a bit. The stream being added shouldn't
be linked.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-10 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 16:09 Can't link multiple streams Robert Brückmann
2003-11-10 17:40 ` Takashi Iwai
2003-11-10 19:01 ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.