mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 00:58:36 -04:00
Implement new mixer API to return the device pointer based on the mixer pointer.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
8e2e5ae7d1
commit
93e39e2325
2 changed files with 9 additions and 0 deletions
|
|
@ -1032,6 +1032,14 @@ mix_get_type(struct snd_mixer *m)
|
|||
return (m->type);
|
||||
}
|
||||
|
||||
device_t
|
||||
mix_get_dev(struct snd_mixer *m)
|
||||
{
|
||||
KASSERT(m != NULL, ("NULL snd_mixer"));
|
||||
|
||||
return (m->dev);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ int mix_get(struct snd_mixer *m, u_int dev);
|
|||
int mix_setrecsrc(struct snd_mixer *m, u_int32_t src);
|
||||
u_int32_t mix_getrecsrc(struct snd_mixer *m);
|
||||
int mix_get_type(struct snd_mixer *m);
|
||||
device_t mix_get_dev(struct snd_mixer *m);
|
||||
|
||||
void mix_setdevs(struct snd_mixer *m, u_int32_t v);
|
||||
void mix_setrecdevs(struct snd_mixer *m, u_int32_t v);
|
||||
|
|
|
|||
Loading…
Reference in a new issue