mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added snd_pcm_hw_params_can_resume
This commit is contained in:
parent
e4c32ae6d8
commit
f8c9bcd465
2 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue