Loading hal/audio_hw.c +5 −1 Original line number Diff line number Diff line Loading @@ -6243,7 +6243,7 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer, struct audio_device *adev = in->dev; int ret = -1; size_t bytes_read = 0; size_t bytes_read = 0, frame_size = 0; lock_input_stream(in); Loading Loading @@ -6335,6 +6335,10 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer, memset(buffer, 0, bytes); exit: frame_size = audio_stream_in_frame_size(stream); if (frame_size > 0) in->frames_read += bytes_read/frame_size; if (-ENETRESET == ret) in->card_status = CARD_STATUS_OFFLINE; pthread_mutex_unlock(&in->lock); Loading Loading
hal/audio_hw.c +5 −1 Original line number Diff line number Diff line Loading @@ -6243,7 +6243,7 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer, struct audio_device *adev = in->dev; int ret = -1; size_t bytes_read = 0; size_t bytes_read = 0, frame_size = 0; lock_input_stream(in); Loading Loading @@ -6335,6 +6335,10 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer, memset(buffer, 0, bytes); exit: frame_size = audio_stream_in_frame_size(stream); if (frame_size > 0) in->frames_read += bytes_read/frame_size; if (-ENETRESET == ret) in->card_status = CARD_STATUS_OFFLINE; pthread_mutex_unlock(&in->lock); Loading