All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abramo Bagnara <abramo.bagnara@libero.it>
To: Jaroslav Kysela <perex@suse.cz>
Cc: Arthur Peters <amp@singingwizard.org>,
	Alsa dev List <alsa-devel@lists.sourceforge.net>
Subject: Re: Single process freeze when opening capture device
Date: Thu, 29 May 2003 10:56:25 +0200	[thread overview]
Message-ID: <3ED5CB39.6000502@libero.it> (raw)
In-Reply-To: <Pine.LNX.4.44.0305290907470.28435-100000@pnote.perex-int.cz>

Jaroslav Kysela ha scritto:
> 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:abramo.bagnara@libero.it

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

  reply	other threads:[~2003-05-29  8:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-29  3:24 Single process freeze when opening capture device Arthur Peters
2003-05-29  7:10 ` Jaroslav Kysela
2003-05-29  8:56   ` Abramo Bagnara [this message]
2003-05-29 11:53     ` Jaroslav Kysela
2003-05-29 12:38       ` hdsp9652+alsamixer -> kernel panic d
2003-05-29 12:59         ` Paul Davis
2003-05-29 14:14           ` d
2003-05-29 15:32             ` Paul Davis
2003-05-29 15:57               ` Kai Vehmanen
2003-05-29 16:27                 ` Paul Davis
2003-05-29 16:46                   ` d
2003-05-29 17:14                     ` Paul Davis
2003-05-31 11:15                   ` Kai Vehmanen
2003-05-31 11:30                     ` Jaroslav Kysela
2003-06-02 11:02                     ` Takashi Iwai
2003-06-02 11:19                       ` Kai Vehmanen
2003-05-29 17:27               ` Jaroslav Kysela
2003-05-29 17:44                 ` Paul Davis
2003-05-29 13:13       ` Single process freeze when opening capture device Abramo Bagnara
2003-06-02 11:09         ` Takashi Iwai
2003-05-29 13:49   ` James Courtier-Dutton
2003-05-29 14:05     ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ED5CB39.6000502@libero.it \
    --to=abramo.bagnara@libero.it \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=amp@singingwizard.org \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.