From: igor@eellc.ru
To: alsa-devel@lists.sourceforge.net
Subject: Problem closing device handle
Date: Mon, 17 Jan 2005 15:11:33 +0000 [thread overview]
Message-ID: <200501171511.33573.igor@eellc.ru> (raw)
Hello
I'm developing software which captures audio and plays it from multiple
sources in parallel.
I'm using plughw:1,0 device to capture and plug:'dmix:SLAVE="hw:1,0"',
everything works fine (i mean play and capture), but when i try to close
capture handle -
snd_pcm_close(dev_handle)
i get following output:
ALSA lib pcm_hw.c:370:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE failed:
File descriptor in bad state
ALSA lib pcm_plug.c:69:(snd_pcm_plug_close) plug slaves mismatch
(second error about slaves mismatch appears not in all situation).
After some debugging i found out following -
- this error occures only if i use playback (yes, playback, and error while
trying to close capture handle). If i don't open playback device - it doesn't
happens
- after this handle remains open, and i cannot open it again - if i close
snd_pcm_close again, it finally closes, but it doesn't seems a nice solution
- it happens only when i use dmix plugin, when i use just plug plugin -
everything is OK
Has anyone comments to this, is it some misconfiguration or something else?
Thanks
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next reply other threads:[~2005-01-17 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 15:11 igor [this message]
2005-01-17 9:17 ` volume PCM plugin Petr Gladkikh
2005-01-17 10:43 ` Takashi Iwai
2005-01-17 11:16 ` Petr Gladkikh
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=200501171511.33573.igor@eellc.ru \
--to=igor@eellc.ru \
--cc=alsa-devel@lists.sourceforge.net \
/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.