mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-16 22:05:30 -05:00
alsa: Use card description in default sink/source prefix when available
When given an explicit device.description in card_properties, prefer this information over other default prefixes (e.g. 'Built-in Audio') when constructing sink/source descriptions. For example, if I manually configure the card description to be "FooBar", I then expect that the sinks and created by the card also have "FooBar" in their description instead of generic "Built-in Audio".
This commit is contained in:
parent
efec98280f
commit
fe6e41d7d2
9 changed files with 19 additions and 14 deletions
|
|
@ -704,7 +704,7 @@ int pa__init(pa_module *m) {
|
|||
pa_alsa_init_proplist_card(m->core, data.proplist, u->alsa_card_index);
|
||||
|
||||
pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, u->device_id);
|
||||
pa_alsa_init_description(data.proplist);
|
||||
pa_alsa_init_description(data.proplist, NULL);
|
||||
set_card_name(&data, u->modargs, u->device_id);
|
||||
|
||||
/* We need to give pa_modargs_get_value_boolean() a pointer to a local
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue