On Wed, 28 May 2003, Arthur Peters wrote:
I have found what seems to be a bug in ALSA (CVS of this afternoon). When a program opens certain PCM devices for capture the program blocks forever in snd_pcm_open (both the library function and the kernel function actually). The PCM device I have been testing it with is surround40 on a emu10k1 (SBLive Value). I am trying to capture on this device because I want to have jack use surround40 (actually a route plugin device pointing to it) so that I can use all 4 outs and both ins at the same time.
Below is a minimal setup that reproduces the problem for me.
alsa_freeze.c ------------------ #include <alsa/asoundlib.h>
int main( int argc, char* argv[] ) { snd_pcm_t *pcm; snd_pcm_open(&pcm, "surround40", SND_PCM_STREAM_CAPTURE, 0); return 0; }
It is limit of current alsa-lib configuration. We cannot distinct playback and capture. But I am not sure, if returning an error helps you (surround40 configuration is NOT valid for emu10k1). I suggest to fix jack to allow different names for playback and capture with different count of channels.
What about a "dir" field in common section of pcm configuration?
dir STR # PCM allowed directions "playback", "capture", "both" (default)
-- Abramo Bagnara mailto:[EMAIL PROTECTED]
Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel