Loading hal/audio_hw.c +9 −2 Original line number Diff line number Diff line Loading @@ -2246,9 +2246,13 @@ static int out_get_render_position(const struct audio_stream_out *stream, { struct stream_out *out = (struct stream_out *)stream; struct audio_device *adev = out->dev; if (is_offload_usecase(out->usecase) && (dsp_frames != NULL)) { ssize_t ret = 0; if (dsp_frames == NULL) return -EINVAL; *dsp_frames = 0; if (is_offload_usecase(out->usecase)) { ssize_t ret = 0; pthread_mutex_lock(&out->lock); if (out->compr != NULL) { ret = compress_get_tstamp(out->compr, (unsigned long *)dsp_frames, Loading Loading @@ -2276,6 +2280,9 @@ static int out_get_render_position(const struct audio_stream_out *stream, } else { return 0; } } else if (audio_is_linear_pcm(out->format)) { *dsp_frames = out->written; return 0; } else return -EINVAL; } Loading Loading
hal/audio_hw.c +9 −2 Original line number Diff line number Diff line Loading @@ -2246,9 +2246,13 @@ static int out_get_render_position(const struct audio_stream_out *stream, { struct stream_out *out = (struct stream_out *)stream; struct audio_device *adev = out->dev; if (is_offload_usecase(out->usecase) && (dsp_frames != NULL)) { ssize_t ret = 0; if (dsp_frames == NULL) return -EINVAL; *dsp_frames = 0; if (is_offload_usecase(out->usecase)) { ssize_t ret = 0; pthread_mutex_lock(&out->lock); if (out->compr != NULL) { ret = compress_get_tstamp(out->compr, (unsigned long *)dsp_frames, Loading Loading @@ -2276,6 +2280,9 @@ static int out_get_render_position(const struct audio_stream_out *stream, } else { return 0; } } else if (audio_is_linear_pcm(out->format)) { *dsp_frames = out->written; return 0; } else return -EINVAL; } Loading