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
parent 593c5d5b07
commit 3a9ffbb56d

View file

@ -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)