From 36cbb947f10411cbe2bd6ed8a0b2263d968a758a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 23 Nov 2018 19:28:47 +0100 Subject: [PATCH] alsa: add media.class to device --- spa/plugins/alsa/alsa-device.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-device.c b/spa/plugins/alsa/alsa-device.c index f210ead85..a86dd6298 100644 --- a/spa/plugins/alsa/alsa-device.c +++ b/spa/plugins/alsa/alsa-device.c @@ -227,9 +227,18 @@ static int impl_set_param(struct spa_device *device, return -ENOTSUP; } +static const struct spa_dict_item info_items[] = { + { "media.class", "Audio/Device" }, +}; + +static const struct spa_dict info = { + info_items, + SPA_N_ELEMENTS(info_items) +}; + static const struct spa_device impl_device = { SPA_VERSION_DEVICE, - NULL, + &info, impl_set_callbacks, impl_enum_params, impl_set_param,