From 618d60a1f2766e9e3a7d662b3b51adbd67496c70 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 9 Aug 2025 12:53:41 +0300 Subject: [PATCH] alsa: show correct value in api.alsa.period-num --- spa/plugins/alsa/alsa-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index fad4e0852..559c3fec8 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -3883,7 +3883,7 @@ void spa_alsa_emit_node_info(struct state *state, bool full) snprintf(nperiods, sizeof(nperiods), "%lu", state->period_frames != 0 ? state->buffer_frames / state->period_frames : 0); else if (state->default_period_num) - snprintf(nperiods, sizeof(nperiods), "%u", state->default_period_size); + snprintf(nperiods, sizeof(nperiods), "%u", state->default_period_num); items[n_items++] = SPA_DICT_ITEM_INIT("api.alsa.period-num", nperiods[0] ? nperiods : NULL); if (state->have_format)