Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5ca2df1 authored by Derek Chen's avatar Derek Chen Committed by Michael Bestas
Browse files

hal: return EINVAL by default for presentation_position

Return EINVAL by default for stream get_presentation_position()
to avoid logspam due to HIDL framework requirement.

Change-Id: I33d82f66ccc509ae882263245953ca2fe4699f05
parent 686c92d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2648,7 +2648,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;
    unsigned long dsp_frames;

    /* below piece of code is not guarded against any lock because audioFliner serializes