summaryrefslogtreecommitdiff
path: root/src/control/control_hw.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-05-12 08:05:50 +0200
committerJaroslav Kysela <perex@perex.cz>2009-05-15 14:18:15 +0200
commitecd6846c88d24f2a03895115b8ebf50679af69f3 (patch)
tree6880963798e200e7dcc3ef962e0149434bf709b1 /src/control/control_hw.c
parent3e30007a19a0904ad7c8965b0883322639e52b82 (diff)
downloadalsa-lib-amixer.tar.gz
Initial amixer implementation + ctl & hctl API mergingamixer
This patch adds new mixer API which simplifies the previous mixer API (removed mixer class). The control and hcontrol APIs were merged into one. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'src/control/control_hw.c')
-rw-r--r--src/control/control_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/control_hw.c b/src/control/control_hw.c
index e9a6be27..c33d8ca9 100644
--- a/src/control/control_hw.c
+++ b/src/control/control_hw.c
@@ -421,7 +421,7 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode)
hw->fd = fd;
hw->protocol = ver;
- err = snd_ctl_new(&ctl, SND_CTL_TYPE_HW, name);
+ err = snd_ctl_new(&ctl, SND_CTL_TYPE_HW, name, mode);
if (err < 0) {
close(fd);
free(hw);