mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
acp: pass udev PROFILE_SETS to acp device
This commit is contained in:
parent
e478ba7e34
commit
eaf7606e3f
3 changed files with 17 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue