mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-12 03:01:58 -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
593c5d5b07
commit
3a9ffbb56d
1 changed files with 5 additions and 0 deletions
|
|
@ -911,6 +911,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