mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-16 14:33:04 -04:00
alsa: acp: emit route param updates when card properties change
When jack state changes cause port properties to be updated, mark EnumRoute and Route params as changed and call emit_info() so that the device re-emits the route parameters with the updated port properties.
This commit is contained in:
parent
590c17cc1c
commit
b62a4b6b4c
1 changed files with 5 additions and 0 deletions
|
|
@ -897,6 +897,11 @@ static void card_props_changed(void *data)
|
|||
{
|
||||
struct impl *this = data;
|
||||
spa_log_info(this->log, "card properties changed");
|
||||
|
||||
this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
|
||||
this->params[IDX_EnumRoute].user++;
|
||||
this->params[IDX_Route].user++;
|
||||
emit_info(this, false);
|
||||
}
|
||||
|
||||
static bool has_device(struct acp_card_profile *pr, uint32_t index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue