summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorVictor Lourme <l0w@protonmail.ch>2018-03-26 19:36:07 +0200
committerVictor Lourme <l0w@protonmail.ch>2018-04-01 02:23:39 +0200
commit5869cd357e9b0bd9dffe70ac207cda4ec266b73c (patch)
treed769506fa9d809250885d64cb583dd0e6b8afc04 /audio
parentd5b988f3b2361e0a189310fa4328e45202ce12aa (diff)
downloadhardware_samsung-5869cd357e9b0bd9dffe70ac207cda4ec266b73c.tar.gz
hardware_samsung-5869cd357e9b0bd9dffe70ac207cda4ec266b73c.tar.bz2
hardware_samsung-5869cd357e9b0bd9dffe70ac207cda4ec266b73c.zip
audio: return EINVAL to avoid get_presentation_position spamming logs
Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 94650dc..9aa5989 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -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;
}
}
}