Skip to contentSkip to conversation

alsabat: Allow custom sample format for round trip latency test

PATCH Applied [email protected] 2 participants 2 messages Aug 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsabat: Allow custom sample format for round trip latency test

From: Jonathan Liu <[email protected]>

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.

---
 bat/latencytest.c | 1 -
 1 file changed, 1 deletion(-)
bat/latencytest.c +0 -1
index fae191c..ec3abe2 100644
@@ -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;
 }
Signature · 1 line
2.18.0
Applied
#1 lore raw
Quoted 9 lines · On Sun, 05 Aug 2018 05:59:35 +0200, [email protected] wrote:

From: Jonathan Liu <[email protected]>

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.

Applied, thanks.

Takashi