diff options
author | Abramo Bagnara <abramo@alsa-project.org> | 2001-03-26 12:45:48 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo@alsa-project.org> | 2001-03-26 12:45:48 +0000 |
commit | 7893ea238d5ae042dc2e689f049da0f512d3b415 (patch) | |
tree | 6518f242a3da6fa11c439998d0265fd77d0b395f /src/control/hcontrol.c | |
parent | 4bee8c56784d06f08accebf1d2e3656729c1b11c (diff) |
Added mode argument to open functions where it was missing. First part of CTL documentation
Diffstat (limited to 'src/control/hcontrol.c')
-rw-r--r-- | src/control/hcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/hcontrol.c b/src/control/hcontrol.c index 572e45df..81bd5ec3 100644 --- a/src/control/hcontrol.c +++ b/src/control/hcontrol.c @@ -34,7 +34,7 @@ static int snd_hctl_compare_default(const snd_hctl_elem_t *c1, const snd_hctl_elem_t *c2); -int snd_hctl_open(snd_hctl_t **hctlp, const char *name) +int snd_hctl_open(snd_hctl_t **hctlp, const char *name, int mode) { snd_hctl_t *hctl; snd_ctl_t *ctl; @@ -42,7 +42,7 @@ int snd_hctl_open(snd_hctl_t **hctlp, const char *name) assert(hctlp); *hctlp = NULL; - if ((err = snd_ctl_open(&ctl, name)) < 0) + if ((err = snd_ctl_open(&ctl, name, mode)) < 0) return err; if ((hctl = (snd_hctl_t *)calloc(1, sizeof(snd_hctl_t))) == NULL) { snd_ctl_close(ctl); |