diff options
author | qctecmdr <qctecmdr@localhost> | 2022-06-20 22:30:41 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-06-20 22:30:41 -0700 |
commit | f8d36c666ba867001ed409e3469470c4a4619091 (patch) | |
tree | 1f88a713d44169682bbb3c1ab3e2dad70a45b5ea | |
parent | bfa4b49e21a811e057916e5444848957e26d1c06 (diff) | |
parent | 90bfae92b2558dccc322ad158157ff70ee0c9623 (diff) |
Merge "hal: TypeCast the return value of GetFramesWritten API."
-rw-r--r-- | hal/AudioStream.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hal/AudioStream.cpp b/hal/AudioStream.cpp index 11495923..e1ac2bf9 100644 --- a/hal/AudioStream.cpp +++ b/hal/AudioStream.cpp @@ -755,12 +755,8 @@ static int out_get_render_position(const struct audio_stream_out *stream, break; case PAL_STREAM_LOW_LATENCY: case PAL_STREAM_DEEP_BUFFER: - ret = astream_out->GetFramesWritten(NULL); - if (ret < 0) { - AHAL_ERR("Get DSP Frames failed %d", ret); - return ret; - } - *dsp_frames = ret; + frames = astream_out->GetFramesWritten(NULL); + *dsp_frames = (uint32_t) frames; break; default: break; |