From: Clemens Ladisch <clemens@ladisch.de>
To: irfan shaikh <irfan.shaikh@sasken.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_pcm_open fails with -16 error
Date: Mon, 17 Oct 2011 13:12:24 +0200 [thread overview]
Message-ID: <4E9C0D98.7090403@ladisch.de> (raw)
In-Reply-To: <4E97D849.1080502@sasken.com>
irfan shaikh wrote:
> In my application i am closing and reopening my device to
> configure some hw_params for audio frequency change.
You should just set new hw_params on the same device.
> Close of PCM device is success, but reopen the same device fails
>
> I get an below error
> snd_pcm_open() FAIL with return value -16 {Device or resource busy}
IIRC this could happen when using dmix on some old alsa-lib version.
> I have even tried to configure the HW params in run time to avoid above
> closing and opening of device.
> But run time HW params configuartion failed.
Thank you very much for keeping the error code a secret.
> Is there any way to change HW params at run time ? {My PCM device are in
> RUNNING state and i want to change HW params at run time}
Stop the device first.
Regards,
Clemens
> SASKEN BUSINESS DISCLAIMER: This message may contain ...
This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public. If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any disclaimers in those e-mails.
Additionally, disclaimers in those e-mails will incur legal processing
fees of $42 per line; you have agreed to this by reading this disclaimer.
prev parent reply other threads:[~2011-10-17 11:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 6:35 snd_pcm_open fails with -16 error irfan shaikh
2011-10-17 11:12 ` Clemens Ladisch [this message]
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=4E9C0D98.7090403@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=irfan.shaikh@sasken.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).