mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:15:43 +01:00
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:
parent
35f45c50ee
commit
827905c002
1 changed files with 9 additions and 7 deletions
|
@ -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:"));
|
||||
|
|
Loading…
Reference in a new issue