Commit 5869cd35 authored by Victor Lourme's avatar Victor Lourme

audio: return EINVAL to avoid get_presentation_position spamming logs

Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977
parent d5b988f3
......@@ -3303,7 +3303,7 @@ static int out_get_presentation_position(const struct audio_stream_out *stream,
uint64_t *frames, struct timespec *timestamp)
{
struct stream_out *out = (struct stream_out *)stream;
int ret = -1;
int ret = -EINVAL;
lock_output_stream(out);
......@@ -3342,7 +3342,6 @@ static int out_get_presentation_position(const struct audio_stream_out *stream,
ret = 0;
goto done;
}
ret = -1;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment