* snd_pcm_open fails with -16 error
@ 2011-10-14 6:35 irfan shaikh
2011-10-17 11:12 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: irfan shaikh @ 2011-10-14 6:35 UTC (permalink / raw)
To: alsa-devel
Hello All,
A)
In my application i am closing and reopening my device to
configure some hw_params for audio frequency change.
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}
How can i avoid above error. {I tried putting usleep between open and
close but doesn't work for me}
B)
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.
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}
Thanks and regards,
Irfan
SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any
virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: snd_pcm_open fails with -16 error
2011-10-14 6:35 snd_pcm_open fails with -16 error irfan shaikh
@ 2011-10-17 11:12 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2011-10-17 11:12 UTC (permalink / raw)
To: irfan shaikh; +Cc: alsa-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-17 11:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 6:35 snd_pcm_open fails with -16 error irfan shaikh
2011-10-17 11:12 ` Clemens Ladisch
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).