vlock: add dynamic switch from pll to enc mdoe
authorDezhi Kong <dezhi.kong@amlogic.com>
Tue, 3 Jul 2018 07:57:01 +0000 (15:57 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 20 Jul 2018 07:33:59 +0000 (00:33 -0700)
commitf66e7afdf8fa2edbfe5cdb64170723055b3b97bb
treec97b6113577e91c9a34464000b6c69ca9d4d5462
parentaadf8893c854a318288f2164a972673bd49ed76b
vlock: add dynamic switch from pll to enc mdoe

PD#169634: vlock: add dynamic switch from pll to enc mode

1.seperate vlock process from amvecm_on_vs,
avoid the influence of repeate call.
2.add dynamic switch from pll to enc mode,
pll adj firstly,then switch to enc mode do fine tuning.
3.seperate vlock reg init from amcm interface,
avoid the influence of rdma mode.
4.decrease enc line adjust limit.
5.add enc adjust range check.

Change-Id: I6352b45e9ec8869be43660c03352d1a406ca8a0a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amvecm.c
drivers/amlogic/media/enhancement/amvecm/amvecm_vlock_regmap.h
drivers/amlogic/media/enhancement/amvecm/vlock.c
drivers/amlogic/media/enhancement/amvecm/vlock.h
drivers/amlogic/media/video_sink/video.c
drivers/amlogic/media/vout/vout_serve/vout_serve.c
include/linux/amlogic/media/amvecm/amvecm.h