mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
introspect: Expose card profile available flag
Available flag can be used by clients to disable the selection of profiles unavailable. Update protocol to 29
This commit is contained in:
parent
b76b9c32d9
commit
b98a2e158f
5 changed files with 37 additions and 16 deletions
|
|
@ -3287,6 +3287,9 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
|
|||
pa_tagstruct_putu32(t, p->n_sinks);
|
||||
pa_tagstruct_putu32(t, p->n_sources);
|
||||
pa_tagstruct_putu32(t, p->priority);
|
||||
|
||||
if (c->version >= 29)
|
||||
pa_tagstruct_putu32(t, (p->available != PA_AVAILABLE_NO));
|
||||
}
|
||||
|
||||
pa_tagstruct_puts(t, card->active_profile->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue