summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao_alsa.c')
-rw-r--r--audio/out/ao_alsa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 2cee7170a5..795894a4c6 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -457,10 +457,9 @@ static int init(struct ao *ao)
ao->channels.num);
} else {
device = select_chmap(ao, &implied_chmap);
- if (strcmp(device, "default") != 0 && (ao->format & AF_FORMAT_F)) {
- // hack - use the converter plugin (why the heck?)
+ // Not-default likely means a hw device - enable software conversions.
+ if (strcmp(device, "default") != 0)
device = talloc_asprintf(ao, "plug:%s", device);
- }
}
if (ao->device)
device = ao->device;