[alsa-devel] Bad file descriptor : -EBADFD

Clemens Ladisch clemens at ladisch.de
Wed Mar 23 16:54:58 CET 2011


Irfan Shaikh wrote:
> I have used following check and it is success.
> 
>  if (snd_pcm_hw_params(alsaParams->playback_handle,                                  \
>                           alsaParams->hwparams_playback) < 0)

Check the device's current state with snd_pcm_state(); it should be PREPARED.


Regards,
Clemens


More information about the Alsa-devel mailing list