aplay: status dumps are called only in verbose mode

Do not enable timestamps for the normal operation.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-12-12 15:07:06 +01:00
parent 35f45c50ee
commit 827905c002

View file

@ -1494,6 +1494,7 @@ static void set_params(void)
err = snd_pcm_sw_params_set_stop_threshold(handle, swparams, stop_threshold);
assert(err >= 0);
if (verbose) {
err = snd_pcm_sw_params_set_tstamp_mode(handle, swparams, SND_PCM_TSTAMP_ENABLE);
assert(err >= 0);
@ -1502,6 +1503,7 @@ static void set_params(void)
else
err = snd_pcm_sw_params_set_tstamp_type(handle, swparams, SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY);
assert(err >= 0);
}
if (snd_pcm_sw_params(handle, swparams) < 0) {
error(_("unable to install sw params:"));