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:
Julian Bouzas 2026-06-11 11:03:11 -04:00 committed by Wim Taymans
parent 590c17cc1c
commit b62a4b6b4c

View file

@ -897,6 +897,11 @@ static void card_props_changed(void *data)
{ {
struct impl *this = data; struct impl *this = data;
spa_log_info(this->log, "card properties changed"); 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) static bool has_device(struct acp_card_profile *pr, uint32_t index)