Added snd_pcm_hw_params_can_resume

This commit is contained in:
Jaroslav Kysela 2001-10-14 09:08:47 +00:00
parent e4c32ae6d8
commit f8c9bcd465
2 changed files with 14 additions and 0 deletions

View file

@ -398,6 +398,7 @@ int snd_pcm_hw_params_is_batch(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_is_block_transfer(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_can_overrange(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_is_half_duplex(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_is_joint_duplex(const snd_pcm_hw_params_t *params);
int snd_pcm_hw_params_can_sync_start(const snd_pcm_hw_params_t *params);

View file

@ -1608,6 +1608,19 @@ int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params)
return !!(params->info & SNDRV_PCM_INFO_PAUSE);
}
/**
* \brief Check, if hardware supports resume
* \param param Configuration space
* \return Boolean value
* \retval 0 Hardware doesn't support resume
* \retval 1 Hardware supports resume
*/
int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params)
{
assert(params);
return !!(params->info & SNDRV_PCM_INFO_RESUME);
}
/**
* \brief Check, if hardware does half-duplex only
* \param param Configuration space