[linux-audio-user] Re: es1370 and the el cheapo myth

Timo Sivula timo.sivula at luukku.com
Thu Nov 25 06:37:39 EST 2004


Hello,

thanks for the help.

> Date: Tue, 19 Oct 2004 12:45:16 +0200 (METDST)
> From: Clemens Ladisch <clemens at ladisch.de>

> Timo Sivula wrote:
> > > Does "aplay -D multi something.wav" work?
> >
> > It plays the song through one of the soundcards. I am not sure that if
> > that qualifies as working?
> 
> It found the "multi" device.
> 
> The reason that Jack didn't is that it requires a control device, too.
> Please add the following:
> 
> ctl.multi {
> 	type hw
> 	card 0
> }

I did that. In addition I removed the crystals from two of the three
cards and linked them to the first card, so that all three cards now run
on the crystal from the first. Thanks to the advice from Jaroslav Kysela
I was able to test and verify that all three cards run simultaneously
and can play separate files at the same time. When I now run Jackstart
the following happens:

- clipeti clip -

localhost:~$ jackstart -R -dalsa -dmulti -r44100 -p128 -n3 -S
back from read, ret = 1 errno == Success
jackd 0.99.0
Copyright 2001-2003 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
 
loading driver ..
apparent rate = 44100
creating alsa driver ...
multi|multi|128|3|44100|0|0|nomon|swmeter|-|16bit
configuring for 44100Hz, period = 128 frames, buffer = 3 periods
You appear to be using the ALSA software "plug" layer, probably
a result of using the "default" ALSA device. This is less
efficient than it could be. Consider using a hardware device
instead rather than using the plug layer. Usually the name of the
hardware device that corresponds to the first soun
You appear to be using the ALSA software "plug" layer, probably
a result of using the "default" ALSA device. This is less
efficient than it could be. Consider using a hardware device
instead rather than using the plug layer. Usually the name of the
hardware device that corresponds to the first soun
ALSA lib pcm.c:1178:(snd_pcm_link) SNDRV_PCM_IOCTL_LINK failed:
Operation already in progress
jackstart: pcm.c:5957: snd_pcm_mmap_commit: Assertion `frames <=
snd_pcm_mmap_avail(pcm)' failed.

- clip clip -

a) I do not understand why the "You appear to be using ..." text appears
twice? I only start Jackstart once.

b) I also do not understand the error messages at the end. The first
one: "ALSA lib pcm.c:1178...." I can not find on the net. What does this
mean? The other one: "pcm.c:5957: snd_pcm_mmap_commit:" error is
referred to at http://alsa.opensrc.org/index.php?page=TwoCardsAsOne and
the reason is said to be the cards running out of sync. My cards are
hard-synced on clock level, and should therefore be also sample
accurately in sync, so this error should not appear.

Any idea what is going on?

Here is my ~/.asoundrc

- clip -
pcm.multi {
        type plug
        slave.pcm {
                type multi
                slaves.a {
                        pcm "hw:0"
                        channels 2
                }
                slaves.b {
                        pcm "hw:1"
                        channels 2
                }
                slaves.c {
                        pcm "hw:2"
                        channels 2
                }
                bindings [
                        { slave a channel 0 }
                        { slave a channel 1 }
                        { slave b channel 0 }
                        { slave b channel 1 }
                        { slave c channel 0 }
                        { slave c channel 1 }
                ]
        }
}
ctl.multi {
	type hw	card 0
}

- clip clip -

br, Timo




More information about the Linux-audio-user mailing list