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