summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'audio/legacy/audio_hw.c')
-rw-r--r--audio/legacy/audio_hw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c
index e9763f0..12459e5 100644
--- a/audio/legacy/audio_hw.c
+++ b/audio/legacy/audio_hw.c
@@ -418,7 +418,6 @@ static void *voice_thread_func(void *arg)
418{ 418{
419 struct j6_voice_stream *stream = (struct j6_voice_stream *)arg; 419 struct j6_voice_stream *stream = (struct j6_voice_stream *)arg;
420 struct j6_audio_device *adev = stream->dev; 420 struct j6_audio_device *adev = stream->dev;
421 struct timespec now;
422 size_t frames = stream->out_frames; 421 size_t frames = stream->out_frames;
423 uint32_t periods = 0; 422 uint32_t periods = 0;
424 uint32_t avail; 423 uint32_t avail;
@@ -437,8 +436,8 @@ static void *voice_thread_func(void *arg)
437 stream->out_buffer, 436 stream->out_buffer,
438 &frames); 437 &frames);
439 } else { 438 } else {
440 ret = pcm_get_htimestamp(stream->pcm_in, &avail, &now); 439 avail = pcm_avail_update(stream->pcm_in);
441 if (!ret && (avail > 0)) { 440 if (avail > 0) {
442 in_steady = true; 441 in_steady = true;
443 continue; 442 continue;
444 } 443 }