summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa/module-alsa-card.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/alsa/module-alsa-card.c')
-rw-r--r--src/modules/alsa/module-alsa-card.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 2cc8a151..1e3c0c1d 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -90,14 +90,15 @@ static void enumerate_cb(
struct profile_data *d;
if (sink && source) {
- n = pa_sprintf_malloc("%s+%s", sink->name, source->name);
+ n = pa_sprintf_malloc("output-%s+input-%s", sink->name, source->name);
t = pa_sprintf_malloc("Output %s + Input %s", sink->description, source->description);
} else if (sink) {
- n = pa_xstrdup(sink->name);
+ n = pa_sprintf_malloc("output-%s", sink->name);
t = pa_sprintf_malloc("Output %s", sink->description);
} else {
pa_assert(source);
n = pa_xstrdup(source->name);
+ n = pa_sprintf_malloc("input-%s", source->name);
t = pa_sprintf_malloc("Input %s", source->description);
}