* snd_pcm_prepare FAILS
@ 2011-03-01 8:58 Irfan Shaikh
2011-03-01 13:48 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: Irfan Shaikh @ 2011-03-01 8:58 UTC (permalink / raw)
To: alsa-devel@alsa-project.org
Hello,
I have been using following section of code, my snd_pcm_prepare() always fails and i am not able to play audio using snd_pcm_writei().
/******************************Code*********************************/
err=snd_pcm_prepare(handle);
if (err < 0)
RSE_TRACE_ERROR(MP_ALSA_TRACE,("Can't recovery from underrun, prepare failed: %s\n", snd_strerror(err)));
/**********************************************************************/
$$$$$$$$$$$$ Output : Can't recovery from underrun, prepare failed: Device or resource busy $$$$$$$$$$$$$
Can some one please share there comments on the above. What is going run above.
Regards,
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_prepare FAILS
2011-03-01 8:58 snd_pcm_prepare FAILS Irfan Shaikh
@ 2011-03-01 13:48 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2011-03-01 13:48 UTC (permalink / raw)
To: Irfan Shaikh; +Cc: alsa-devel@alsa-project.org
Irfan Shaikh wrote:
> err=snd_pcm_prepare(handle);
> if (err < 0)
> RSE_TRACE_ERROR(MP_ALSA_TRACE,("Can't recovery from underrun, prepare failed: %s\n", snd_strerror(err)));
>
> Output : Can't recovery from underrun, prepare failed: Device or resource busy
This error comes from the device driver (whatever it is).
Regards,
Clemens
> SASKEN BUSINESS DISCLAIMER: ...
EVEN MORE IMPORTANT DISCLAIMER:
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-03-01 13:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 8:58 snd_pcm_prepare FAILS Irfan Shaikh
2011-03-01 13:48 ` 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).