alsa: report latency in the samplerate domain of the graph

This commit is contained in:
George Kiagiadakis 2023-09-01 00:30:14 +03:00
parent 21392d898e
commit af020bc425

View file

@ -1739,7 +1739,9 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
state->latency[state->port_direction].min_rate = state->latency[state->port_direction].min_rate =
state->latency[state->port_direction].max_rate = state->latency[state->port_direction].max_rate =
SPA_MAX(state->min_delay, SPA_MIN(state->max_delay, state->headroom)); SPA_SCALE32_UP(
SPA_MAX(state->min_delay, SPA_MIN(state->max_delay, state->headroom)),
state->clock->rate.denom, state->rate);
spa_log_info(state->log, "%s (%s): format:%s access:%s-%s rate:%d channels:%d " spa_log_info(state->log, "%s (%s): format:%s access:%s-%s rate:%d channels:%d "
"buffer frames %lu, period frames %lu, periods %u, frame_size %zd " "buffer frames %lu, period frames %lu, periods %u, frame_size %zd "