From 1bd580fcba8f8dc4587d5d8c42edd85857b11b65 Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Thu, 2 Jun 2011 15:58:41 -0700 Subject: Support multiple cards and devices --- include/tinyalsa/asoundlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 38d3af1..f9920ce 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -57,7 +57,8 @@ struct pcm_config { }; /* Open and close a stream */ -struct pcm *pcm_open(unsigned int device, unsigned int flags, struct pcm_config *config); +struct pcm *pcm_open(unsigned int card, unsigned int device, + unsigned int flags, struct pcm_config *config); int pcm_close(struct pcm *pcm); int pcm_is_ready(struct pcm *pcm); @@ -92,7 +93,7 @@ struct mixer; struct mixer_ctl; /* Open and close a mixer */ -struct mixer *mixer_open(unsigned int device); +struct mixer *mixer_open(unsigned int card); void mixer_close(struct mixer *mixer); /* Obtain mixer controls */ -- cgit v1.2.3