aboutsummaryrefslogtreecommitdiff
path: root/include/tinyalsa/asoundlib.h
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-06-02 15:58:41 -0700
committerSimon Wilson <simonwilson@google.com>2011-06-02 15:58:41 -0700
commit1bd580fcba8f8dc4587d5d8c42edd85857b11b65 (patch)
tree73f41a41500cef31d7782bf788fc17dd5dc71314 /include/tinyalsa/asoundlib.h
parent851aa5cc1596af6236c6105a92fb3b575ecb5c1c (diff)
Support multiple cards and devices
Diffstat (limited to 'include/tinyalsa/asoundlib.h')
-rw-r--r--include/tinyalsa/asoundlib.h5
1 files changed, 3 insertions, 2 deletions
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 */