summaryrefslogtreecommitdiff
path: root/bat
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2018-08-05 13:59:35 +1000
committerTakashi Iwai <tiwai@suse.de>2018-08-05 18:45:28 +0200
commitf6b59282f7c3bddc6aa4aca93e8e19163955675b (patch)
treee914b92f6f048593a0099ac665e57f07eed2d019 /bat
parenta3d81b6beab1ad33ea02f7d3c19f894490a661b9 (diff)
downloadalsa-utils-f6b59282f7c3bddc6aa4aca93e8e19163955675b.tar.gz
alsabat: Allow custom sample format for round trip latency test
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>
Diffstat (limited to 'bat')
-rw-r--r--bat/latencytest.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bat/latencytest.c b/bat/latencytest.c
index fae191c..ec3abe2 100644
--- a/bat/latencytest.c
+++ b/bat/latencytest.c
@@ -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;
}