]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsabat: Allow custom sample format for round trip latency test
authorJonathan Liu <net147@gmail.com>
Sun, 5 Aug 2018 03:59:35 +0000 (13:59 +1000)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Aug 2018 16:45:28 +0000 (18:45 +0200)
Setting the format to BAT_PCM_FORMAT_S16_LE in the round trip latency
test initialization is redundant as it is already set by default to
BAT_PCM_FORMAT_S16_LE unless a sample format is specified on the command
line.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
bat/latencytest.c

index fae191c8c4b84561feb4d50ac43987243b5c95ab..ec3abe2a2d6ba9065a9322387f5a60b3929aa3f2 100644 (file)
@@ -178,7 +178,6 @@ void roundtrip_latency_init(struct bat *bat)
        bat->latency.is_playing = false;
        bat->latency.error = 0;
        bat->latency.xrun_error = false;
-       bat->format = BAT_PCM_FORMAT_S16_LE;
        bat->frames = LATENCY_TEST_TIME_LIMIT * bat->rate;
        bat->periods_played = 0;
 }