acp: pass udev PROFILE_SETS to acp device

This commit is contained in:
Wim Taymans 2020-07-28 13:00:45 +02:00
parent e478ba7e34
commit eaf7606e3f
3 changed files with 17 additions and 4 deletions

View file

@ -190,7 +190,7 @@ static int emit_object_info(struct impl *this, uint32_t id, struct udev_device *
snd_ctl_t *ctl_hndl;
const char *str;
char path[32];
struct spa_dict_item items[22];
struct spa_dict_item items[23];
uint32_t n_items = 0;
int res, pcm;
@ -239,6 +239,9 @@ static int emit_object_info(struct impl *this, uint32_t id, struct udev_device *
if ((str = udev_device_get_property_value(dev, "PULSE_NAME")) && *str)
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_NAME, str);
if ((str = udev_device_get_property_value(dev, "PULSE_PROFILE_SET")) && *str)
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_PROFILE_SET, str);
if ((str = udev_device_get_property_value(dev, "SOUND_CLASS")) && *str)
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_CLASS, str);