mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Added ctl_elem_lock and unlock code...
This commit is contained in:
parent
192d3c9226
commit
12a47782cb
4 changed files with 74 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue