mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Added snd_hwdep_ioctl function.
This commit is contained in:
parent
6ab3208c1d
commit
be2d24f3e7
2 changed files with 10 additions and 0 deletions
|
|
@ -119,6 +119,15 @@ int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t * info)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int snd_hwdep_ioctl(snd_hwdep_t *hwdep, int request, void * arg)
|
||||
{
|
||||
if (!hwdep)
|
||||
return -EINVAL;
|
||||
if (ioctl(hwdep->fd, request, arg) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
ssize_t snd_hwdep_write(snd_hwdep_t *hwdep, const void *buffer, size_t size)
|
||||
{
|
||||
ssize_t result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue