[alsa-devel] Error in configuring playback device

Irfan Shaikh irfan.shaikh at sasken.com
Tue Mar 15 14:21:28 CET 2011


Hello all

Problem :

1)   I have an playback thread which i am closing and creating based on certain conditions
      Some times the my thread does not exit grace fully due to which my snd_pcm_close() does not gets executed.

2) Next time when i create thread i get error in configuring playback device

My idea to solve above problem :

         Can i alwayse close the device handle before opening it if pointer to playback handle exists
For eg :

if(playback_handle)
      snd_pcm_close(playback_handle);
snd_pcm_open(playback_handle);


Please suugest me some better method to solve the problem.

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


More information about the Alsa-devel mailing list