diff options
Diffstat (limited to 'audio/legacy/audio_hw.c')
-rw-r--r-- | audio/legacy/audio_hw.c | 5 |
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) { struct j6_voice_stream *stream = (struct j6_voice_stream *)arg; struct j6_audio_device *adev = stream->dev; - struct timespec now; size_t frames = stream->out_frames; uint32_t periods = 0; uint32_t avail; @@ -437,8 +436,8 @@ static void *voice_thread_func(void *arg) stream->out_buffer, &frames); } else { - ret = pcm_get_htimestamp(stream->pcm_in, &avail, &now); - if (!ret && (avail > 0)) { + avail = pcm_avail_update(stream->pcm_in); + if (avail > 0) { in_steady = true; continue; } |