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

@ -42,6 +42,11 @@ static int snd_pcm_null_close(snd_pcm_t *pcm)
return 0;
}
static int snd_pcm_null_card(snd_pcm_t *pcm ATTRIBUTE_UNUSED)
{
return -ENOENT; /* not available */
}
static int snd_pcm_null_nonblock(snd_pcm_t *pcm ATTRIBUTE_UNUSED, int nonblock ATTRIBUTE_UNUSED)
{
return 0;
@ -295,6 +300,7 @@ static void snd_pcm_null_dump(snd_pcm_t *pcm, FILE *fp)
snd_pcm_ops_t snd_pcm_null_ops = {
close: snd_pcm_null_close,
card: snd_pcm_null_card,
info: snd_pcm_null_info,
hw_refine: snd_pcm_null_hw_refine,
hw_params: snd_pcm_null_hw_params,