spa: alsa: Fix key name suggestion in log message

We use api.alsa.pcm.card to look up the PCM's card if we don't know it
by other means.
This commit is contained in:
Arun Raghavan 2024-11-29 10:54:18 -05:00
parent 371781e214
commit 4c09451e77

View file

@ -998,7 +998,7 @@ int spa_alsa_init(struct state *state, const struct spa_dict *info)
sscanf(state->props.device, "%*[^:]:%u", &state->card_index);
if (state->card_index == SPA_ID_INVALID) {
spa_log_error(state->log, "Could not determine card index, maybe set %s",
SPA_KEY_API_ALSA_CARD);
SPA_KEY_API_ALSA_PCM_CARD);
return -EINVAL;
}
}