Added ctl_elem_lock and unlock code...

This commit is contained in:
Jaroslav Kysela 2001-04-19 13:53:39 +00:00
parent 192d3c9226
commit 12a47782cb
4 changed files with 74 additions and 0 deletions

View file

@ -229,6 +229,30 @@ int snd_ctl_elem_write(snd_ctl_t *ctl, snd_ctl_elem_value_t *control)
return ctl->ops->element_write(ctl, control);
}
/**
* \brief Lock CTL element
* \param ctl CTL handle
* \param control CTL element id pointer
* \return 0 on success otherwise a negative error code
*/
int snd_ctl_elem_lock(snd_ctl_t *ctl, snd_ctl_elem_id_t *id)
{
assert(ctl && id);
return ctl->ops->element_lock(ctl, id);
}
/**
* \brief Unlock CTL element
* \param ctl CTL handle
* \param control CTL element id pointer
* \return 0 on success otherwise a negative error code
*/
int snd_ctl_elem_unlock(snd_ctl_t *ctl, snd_ctl_elem_id_t *id)
{
assert(ctl && id);
return ctl->ops->element_unlock(ctl, id);
}
/**
* \brief Get next hardware dependent device number
* \param ctl CTL handle