summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/out/ao_alsa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index e2f9130f98..f7f9a1a555 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1143,7 +1143,6 @@ alsa_error:
static bool is_useless_device(char *name)
{
- return false;
char *crap[] = {"rear", "center_lfe", "side", "pulse", "null", "dsnoop", "hw"};
for (int i = 0; i < MP_ARRAY_SIZE(crap); i++) {
int l = strlen(crap[i]);
@@ -1151,6 +1150,9 @@ static bool is_useless_device(char *name)
(!name[l] || name[l] == ':'))
return true;
}
+ // The standard default entry will achieve exactly the same.
+ if (name && strcmp(name, "default") == 0)
+ return true;
return false;
}