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 cc7439187f
commit 1993383ddf

View file

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