Commit c8e8015a authored by Jason Liu's avatar Jason Liu Committed by Nitin Garg
Browse files

MLK-10803 media: mxc: vout: fix the race condition for multiple disaplay



There will some race condition such as the followings:

- multiple open concurrence will cause the vout refer to the stall vout-> v4l_wq
  or the vout-> v4l_wq is not initialized correctly.
- multiple open concurrence will cause the global fb setting race-condition,
  thus, it will have the “set_crop error exceeds width/height” or
  “mxc_v4l2_output v4l2_out.30: can not find output”

This patch fix the above issue by adding the protection for the critical section.

Reviewed-by: default avatarLiu Ying <b17645@freescale.com>
Signed-off-by: default avatarJason Liu <r64343@freescale.com>
parent ad7c1303
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment