[alsa-devel] snd_pcm_prepare FAILS

Irfan Shaikh irfan.shaikh at sasken.com
Tue Mar 1 09:58:32 CET 2011


        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().

    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.


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

More information about the Alsa-devel mailing list