alsa: add tsched use to info log

Fixes !1580
This commit is contained in:
Wim Taymans 2023-03-30 17:50:35 +02:00
parent 917d865ea8
commit 108715ebfb

View file

@ -1637,14 +1637,15 @@ int spa_alsa_set_format(struct state *state, struct spa_audio_info *fmt, uint32_
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 "
"headroom %u start-delay:%u",
"headroom %u start-delay:%u tsched:%u",
state->props.device,
state->stream == SND_PCM_STREAM_CAPTURE ? "capture" : "playback",
snd_pcm_format_name(state->format),
state->use_mmap ? "mmap" : "rw",
planar ? "planar" : "interleaved",
state->rate, state->channels, state->buffer_frames, state->period_frames,
periods, state->frame_size, state->headroom, state->start_delay);
periods, state->frame_size, state->headroom, state->start_delay,
!state->disable_tsched);
/* write the parameters to device */
CHECK(snd_pcm_hw_params(hndl, params), "set_hw_params");