Added snd_*_card() functions.

This commit is contained in:
Jaroslav Kysela 2000-12-22 14:03:01 +00:00
parent c268a4bf56
commit 9acdef38c9
31 changed files with 140 additions and 12 deletions

View file

@ -48,6 +48,12 @@ static int snd_ctl_hw_close(snd_ctl_t *handle)
return res;
}
static int snd_ctl_hw_card(snd_ctl_t *handle)
{
snd_ctl_hw_t *hw = handle->private;
return hw->card;
}
static int snd_ctl_hw_poll_descriptor(snd_ctl_t *handle)
{
snd_ctl_hw_t *hw = handle->private;
@ -166,6 +172,7 @@ static int snd_ctl_hw_read(snd_ctl_t *handle, snd_ctl_event_t *event)
snd_ctl_ops_t snd_ctl_hw_ops = {
close: snd_ctl_hw_close,
card: snd_ctl_hw_card,
poll_descriptor: snd_ctl_hw_poll_descriptor,
hw_info: snd_ctl_hw_hw_info,
clist: snd_ctl_hw_clist,