vout: optimize tvout monitor function
authorEvoke Zhang <evoke.zhang@amlogic.com>
Fri, 25 Aug 2017 16:12:38 +0000 (00:12 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 30 Aug 2017 04:28:48 +0000 (21:28 -0700)
commiteb484d7d1eb74bf457596ec57e76e447936a1a6b
treea32536f9685de44a1ba49588926358c3cc0e508f
parentdab18a1896d9cde4667fb6f1c62644a141b66b61
vout: optimize tvout monitor function

PD#149868: vout: optimize tvout monitor function as below:
1.add vout_mutex lock to prevent tvout_monitor and vout_mode_store
  running at the same time;
2.vout_mode_store operation will stop tvout_monitor running.

Change-Id: Ic2578357edb17cf471b90bec50ba11eb9178a8e9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/vout/vout_serve/vout_serve.c