summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-01 11:35:30 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-01 11:35:30 +0200
commit7a823d6e6f0c7f396393ecb0a28180446dc50651 (patch)
tree7df33ff22df4bdf7f4fa4faddcf0017a1e182b7f
parentbb8bbb1ade9d1512ff7c7c90560ea7154f837d17 (diff)
broke alsamixer
-rw-r--r--src/libasound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libasound.c b/src/libasound.c
index d21f1b9..aae437b 100644
--- a/src/libasound.c
+++ b/src/libasound.c
@@ -144,7 +144,7 @@ int
snd_ctl_open(snd_ctl_t **ctl, const char *name, int mode)
{
int id;
- if ((id = snd_card_get_index(name)) < 0)
+ if ((id = snd_card_get_index((name ? name : "default"))) < 0)
return -1;
if (!(*ctl = calloc(1, sizeof(**ctl)))) {