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

Skip to content
Commit 471182d7 authored by Ashray Kulkarni's avatar Ashray Kulkarni Committed by Stephen Boyd
Browse files

v4l2: Add mutex to streamon() and dqbuf()in v4l2 framework.



When v4l2 streamon() is called the framework moves to streamon state,
after queueing the buffer. A state check is performed during dqbuf().
Sometimes when dqbuf() is called streamon() function has not completed
setting the state transisiton flag. This results in failure to dqbuf() as
the framework has not moved to streamon. This patch adds a mutex
around state transitions and dqbuf() calls.

Change-Id: I0eadc4aaffbed62facd7dd250893e50448d7e52b
Signed-off-by: default avatarAshray Kulkarni <ashrayk@codeaurora.org>
parent 5ffde09a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment