platform/kernel/linux-amlogic.git
5 years agodvfs: delete unused dts cpi_clocks. [1/1]
Hong Guo [Fri, 21 Jun 2019 08:22:15 +0000 (16:22 +0800)]
dvfs: delete unused dts cpi_clocks. [1/1]

PD#SWPL-10144

Problem:
delete unused dts cpi_clocks

Solution:
delete unused dts cpi_clocks

Verify:
delete unused dts cpi_clocks

Change-Id: I7de8e5188e5f3b11a26b133fa0387069245907cd
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoionvideo: fix latency and crash [1/1]
jintao xu [Tue, 7 May 2019 03:09:04 +0000 (11:09 +0800)]
ionvideo: fix latency and crash [1/1]

PD#SWPL-8069

Problem:
1.about 2ms latency due to sleep
2.crash while poll ionvideo

Solution:
1.use semaphore instead of sleep
2.fix poll function
3.add trace info for ionvideo

Verify:
U212

Change-Id: Idde64151541d826ba6a6cd1abcc901e80f0e4b45
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agogdc: correct max length of config store path [1/1]
Jian Cao [Thu, 20 Jun 2019 13:18:42 +0000 (21:18 +0800)]
gdc: correct max length of config store path [1/1]

PD#SWPL-10123

Problem:
max size of config store path is wrong

Solution:
use macro CONFIG_PATH_LENG to set
max length of config store path

Verify:
verified on g12b-w400

Change-Id: I0e2d09515099f77ff95505706a0c3b588135c083
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agodeinterlace: add api for free mirror mem [1/1]
Jihong Sui [Wed, 12 Jun 2019 12:17:00 +0000 (20:17 +0800)]
deinterlace: add api for free mirror mem [1/1]

PD#SWPL-9678

Problem:
di keep buf for mirror function till next reg

Solution:
1.add api(di_trig_free_mirror_mem) for free mirror mem
after unreg;
2. debug cmd:
echo free_mirror > /sys/class/deinterlace/di0/debug;

Verify:
G12A

Change-Id: If2e5ceb4266cf5df0b79997dbd16f5bd90220ef8
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoge2d: correct ge2d_magic value in CONFIG_COMPAT case [1/1]
Jian Cao [Thu, 20 Jun 2019 12:35:47 +0000 (20:35 +0800)]
ge2d: correct ge2d_magic value in CONFIG_COMPAT case [1/1]

PD#SWPL-10046

Problem:
unexpected conversation result
under 32bit userspace + 64bit kernel

Solution:
use compat_config_para_ex_memtype_s as ge2d_magic
for CONFIG_COMPAT

Verify:
verified on g12b-w400

Change-Id: I5a8fad9c18d9852c4e214c810b910100a30046a9
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoclk: tl1: fix vpu_clkb_composite can not set to 500M [1/1]
Jian Hu [Thu, 20 Jun 2019 04:48:37 +0000 (12:48 +0800)]
clk: tl1: fix vpu_clkb_composite can not set to 500M [1/1]

PD#SWPL-10083

Problem:
vpu_clkb_composite can not set to 500M

Solution:
using CLK_SET_RATE_PARENT to set up relationship
between vpu_clkb_composite and vpu_clkb_tmp_composite,
when change vpu_clkb_composite's rate, it may
change vpu_clkb_tmp_composite'rate to get the best
rate.

Verify:
verified on tl1 sktt

Change-Id: I9a08eab4dd6b2209e0b2589e72e79567589fb217
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agop231: cannot open wifi. [2/2]
Luan Yuan [Thu, 20 Jun 2019 11:32:22 +0000 (19:32 +0800)]
p231: cannot open wifi. [2/2]

PD#SWPL-10117

Problem:
p231 can not enable wifi

Solution:
add pre-assign memory

Verify:
verify by p231

Change-Id: I10c11743033d049be2dbab0555d49f9e470d6f04
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoaudio: Fix audio stuck [1/1]
Shuai Li [Wed, 12 Jun 2019 08:13:45 +0000 (16:13 +0800)]
audio: Fix audio stuck [1/1]

PD#SWPL-9142

Problem:
Audio stuck in stress test.

Solution:
Work around:
Wait until the fifo stops and then stop toddr.

Verify:
Tl1.

Change-Id: I8ce50732a7e23124b4b37374aa4505d79cd68cfe
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agodts: logo addr overflows the max size in 1g platform.[1/1]
Luan Yuan [Mon, 17 Jun 2019 11:13:54 +0000 (19:13 +0800)]
dts: logo addr overflows the max size in 1g platform.[1/1]

PD#SWPL-9938

Problem:
logo addr overflows the max size in 1g platform.

Solution:
fixed it

Verify:
verify by fermi

Change-Id: Ic1edc545c702b10d88cd03ddc4b761f142457b43
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agovpp: add threshold to omit irregular screen AR [1/1]
Brian Zhu [Wed, 19 Jun 2019 19:36:59 +0000 (03:36 +0800)]
vpp: add threshold to omit irregular screen AR [1/1]

PD#TV-3602

Problem:
The irregular aspect ratio of screen will cause that video
position dose not match the axis even if the source aspect
ration matches the display windows's aspect ratio.

Solution:
Add threshold to omit the irregular screen aspect ratio.

Verify:
Verified on X301

Change-Id: Ie375de69e42fc168fb3b5a51d9ab2662789dc807
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoamvecm: fix local constrast open failed [1/1]
Bencheng Jing [Mon, 17 Jun 2019 11:35:46 +0000 (19:35 +0800)]
amvecm: fix local constrast open failed [1/1]

PD#TV-6846

Problem:
local constrast open failed

Solution:
if the register in db is enbale,set lc_en to 1

Verify:
TL1

Change-Id: Id0bde987d3a45056a86dfe2e758d82a509611b10
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agovlock: finetune vlock setting for game mode [1/1]
Yong Qin [Tue, 18 Jun 2019 08:45:48 +0000 (16:45 +0800)]
vlock: finetune vlock setting for game mode [1/1]

PD#TV-6913

Problem:
game mode, hdmi delay time too long

Solution:
fine tune setting, make tune P mode will got
the real phase.

Verify:
tl1 android P

Change-Id: I4c4a1d6d6578c5015b556f5e4cc88a592be4d7fa
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoDolby: garbage images on screen when output 720 [1/1]
yao liu [Mon, 17 Jun 2019 13:50:30 +0000 (21:50 +0800)]
Dolby: garbage images on screen when output 720 [1/1]

PD#SWPL-9805

Problem:
dolby graphics core setting is marginal at 720@50 or 720@60

Solution:
Leave more margin in vertical potch for graphic core
Another modification: force update core2 and core3 reg
when dolby-vision on

Verify:
local build test on dolby tv 720@50/720@60/1080p24hz

Change-Id: I1019d2c1564230b0e42516fe1a7732ba25b2e8bf
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agovdin: horizontal floral stripe 4k afbc mode [1/1]
Yong Qin [Mon, 17 Jun 2019 12:07:26 +0000 (20:07 +0800)]
vdin: horizontal floral stripe 4k afbc mode [1/1]

PD#SWPL-7391

Problem:
4k afbc mode, horizontal floral stripe in the lower half of
the screen when HDMI connect to PS4.

Solution:
when game mode and panel is reverse, vdin must delay
one frame, can't read/write the same buffer

Verify:
tl1

Change-Id: I42bb3271b8dd5972799b3dfda021b5c120710bdd
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agovpp: add interface to force non-afbc path [1/1]
Brian Zhu [Mon, 15 Apr 2019 18:11:02 +0000 (02:11 +0800)]
vpp: add interface to force non-afbc path [1/1]

PD#SWPL-7035

Problem:
When DI switched to use VD AFBC, need vpp force to non-afbc first.
Otherwise, display willl flash.

Solution:
Provide new interface to request the vpp release afbc hardware first.
Then return the current afbc status.

Verify:
verified on x301

Change-Id: Ibb2b897db7d2f2c40006433d63709988992c84f1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agomm: fix cma allocation time too long [1/1]
Tao Zeng [Fri, 14 Jun 2019 07:06:40 +0000 (15:06 +0800)]
mm: fix cma allocation time too long [1/1]

PD#TV-6340

Problem:
When quickly enter live tv just after boot to home, video may display
more than 10 seconds late after sound comeout. The main problem is
cma allocation time too long.

Solution:
1, add a page flag for pages under cma allocating. And do not
increase page-ref count for cma pages under allocating when it
is used by user space again.
2, restrict shmem/swap back pages using cma
3, improve cma using policy check in page allocating process.
4, replace righ page trace for migrated pages.

Change-Id: Ie6b591213a9eda974c3443ca9b491fa8d00cee50
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agocec: cmd read some time will loss msg [1/1]
Yong Qin [Wed, 19 Jun 2019 09:39:42 +0000 (17:39 +0800)]
cec: cmd read some time will loss msg [1/1]

PD#SWPL-9283

Problem:
android read cec, some time will lose msg

Solution:
del hal flag

Verify:
tl1

Change-Id: I2357ff2a09c60e930e64d663650a4d4509688c71
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agosuspend: default suspend adc in freeze mode for power consumption [1/1]
wenbiao zhang [Tue, 4 Jun 2019 07:20:05 +0000 (15:20 +0800)]
suspend: default suspend adc in freeze mode for power consumption [1/1]

PD#SWPL-8587

Problem:
in freeze mode detect adc key cause power consumption problem

Solution:
adckeyswitch from bootargs to decide whether resume by adc key
in freeze mode, default set to POWER_WAKEUP_NONE
adckeyswitch values POWER_WAKEUP_NONE/POWER_WAKEUP_POWER/POWER_WAKEUP_ANY

Verify:
X301

Change-Id: I2726c2ec394e1ffa528acb0862ef302983683b3b
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
5 years agohdmitx: correct hpd trigger [1/1]
Zongdong Jiao [Thu, 13 Jun 2019 08:05:18 +0000 (16:05 +0800)]
hdmitx: correct hpd trigger [1/1]

PD#SWPL-8724

Problem:
When kernel boots up, there will be two irq status.
[    0.602639] hdmitx: system: irq 80000004 0
[    0.622658] hdmitx: system: irq 80000002 0

Solution:
Correct hpd trigger

Verify:
G12/U212

Change-Id: I3c913c6d46ac4e639032134c598050b5c77a047d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agocamera: fix gc2145 mipi camera preview mosaic [1/1]
Guosong Zhou [Tue, 18 Jun 2019 06:51:49 +0000 (14:51 +0800)]
camera: fix gc2145 mipi camera preview mosaic [1/1]

PD#IPTV-3374

Problem:
gc2145 mipi camera preview have mosaic when take picture

Solution:
add delay when camera set setting finished

Verify:
verify on S905D3-AC202

Change-Id: Ieb6c64804ea5cbea9c9c66be57352b6ed5955ed1
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agodtv_demod: TM2,demod comb j83b to fix timeshift issue [1/1]
zhiwei.yuan [Thu, 13 Jun 2019 12:35:36 +0000 (20:35 +0800)]
dtv_demod: TM2,demod comb j83b to fix timeshift issue [1/1]

PD#SWPL-5655

Problem:
j.83b has a lot of mosaic when enable timeshift(clk = 250M)

Solution:
tm2 chip changelist

Verify:
verified by T962E2_AB311 & T962X2_X301

Change-Id: I106626bf7ab5a1997e9c76055a170b30d52a08bb
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: Add pcm slots configs [1/1]
Shuai Li [Thu, 6 Jun 2019 09:25:03 +0000 (17:25 +0800)]
audio: Add pcm slots configs [1/1]

PD#SWPL-4711

Problem:
BT pcm record doesn't work.

Solution:
Add pcm configs in DTS.

Verify:
ampere

Change-Id: I87c2cb62fb803527da089c5a2aea33752939e000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agovout: add dummy_lcd driver support [1/1]
Evoke Zhang [Thu, 6 Jun 2019 02:32:39 +0000 (10:32 +0800)]
vout: add dummy_lcd driver support [1/1]

PD#TV-6485

Problem:
need add dummy_lcd for encp

Solution:
add dummy_lcd driver base on encp

Verify:
x301

Change-Id: Id6e289bb3fc95ff94455f31ae2dcd94985baf9ec
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovout: add vout2 vpu_clkc init if needed [1/1]
Evoke Zhang [Fri, 31 May 2019 09:48:22 +0000 (17:48 +0800)]
vout: add vout2 vpu_clkc init if needed [1/1]

PD#TV-5428

Problem:
need viu2 display support

Solution:
add vout2 init mode support

Verify:
u200

Change-Id: I1a8e0b5b448f5c6052703e59d78090992d5812bf
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoatv_demod: fix atv audio control interface. [1/1]
nengwen.chen [Mon, 17 Jun 2019 11:14:16 +0000 (19:14 +0800)]
atv_demod: fix atv audio control interface. [1/1]

PD#SWPL-9934

Problem:
1.audio control calls crash on a non-tl1 platform.
1.fix atv audio control interface.

Solution:
1.fix atv audio control interface.

Verify:
Verified by r311 and x301.

Change-Id: Ib6d58cec96e7d57e1bfd8ae18524dcb5517c317e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodts: S905D3 gpio keypad [1/1]
Gongwei Chen [Mon, 17 Jun 2019 11:51:04 +0000 (19:51 +0800)]
dts: S905D3 gpio keypad [1/1]

PD#SWPL-9941

Problem:
The camera automatically takes pictures continuously

Solution:
modify S905D3 gpio keypad in dts

Verify:
Verify by Android P u202

Change-Id: I4edd1032ac460db296a8938d15ecd6ba1224f0ce
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agoge2d: ge2d dmabuf multi-process support [1/1]
Pengcheng Chen [Thu, 30 May 2019 07:58:37 +0000 (15:58 +0800)]
ge2d: ge2d dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
ge2d phys have been overwritten when dma fd is same from diff process

Solution:
when get phys addr by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: Idb32bc61d33345d370db4eb6bcb04351d854f069
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: viu2_osd0 logo init [1/1]
Jian Cao [Fri, 31 May 2019 02:56:15 +0000 (10:56 +0800)]
osd: viu2_osd0 logo init [1/1]

PD#TV-5427

Problem:
enable support for parsing VIU2 boot parameters

Solution:
add this support in driver

Verify:
verified on TL1-X301

Change-Id: I2b2dc97bc76a8816a2c1e17ce5689e2679867011
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agogdc: gdc dmabuf multi-process support [1/1]
Pengcheng Chen [Thu, 30 May 2019 08:23:10 +0000 (16:23 +0800)]
gdc: gdc dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
gdc phys have been overwritten when dma fd is same from diff process

Solution:
when get phys by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: I6e990c9fda9245db0d92053cc011fc6f9507db72
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoMerge "common: videosink: add dropping frame mechanism in amvideo [1/1]" into amlogic...
Jianxin Pan [Tue, 18 Jun 2019 07:01:04 +0000 (00:01 -0700)]
Merge "common: videosink: add dropping frame mechanism in amvideo [1/1]" into amlogic-4.9-dev

5 years agoMerge "debug: add more strict checking for show_regs [2/2]" into amlogic-4.9-dev
Jianxin Pan [Tue, 18 Jun 2019 06:14:04 +0000 (23:14 -0700)]
Merge "debug: add more strict checking for show_regs [2/2]" into amlogic-4.9-dev

5 years agotl1: dts: change lcd_tcon memory size default to 0 [1/1]
Sandy Luo [Tue, 18 Jun 2019 05:53:19 +0000 (13:53 +0800)]
tl1: dts: change lcd_tcon memory size default to 0 [1/1]

PD#SWPL-9502

Problem:
save memory

Solution:
change lcd tcon buffer to 0

Verify:
x301

Change-Id: I6ed059e5f8200c0fd8b775466144676ab0611165
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agoge2d: move ge2d canvas_config to ge2d process thread [1/1]
Pengcheng Chen [Tue, 28 May 2019 09:58:42 +0000 (17:58 +0800)]
ge2d: move ge2d canvas_config to ge2d process thread [1/1]

PD#OTT-4320

Problem:
ge2d canvas_config have been overwritten

Solution:
move ge2d canvas_config from ge2d config to ge2d process

Verify:
w400

Change-Id: I6733751435f9185c8f96287c5308145898c8b8a7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodebug: add more strict checking for show_regs [2/2]
Jiamin Ma [Tue, 30 Apr 2019 08:07:17 +0000 (16:07 +0800)]
debug: add more strict checking for show_regs [2/2]

PD#SWPL-7711

Problem:
Executing echo l > /proc/sysrq-trigger each 5 seconds for about
15 minius will trigger hardlockup

Solution:
Add more strict checking for show_regs to filter out addresses
in secure monitor region and ioremap region, deferencing which
triggers external abort on none-linefetch, and finally leading
to hardlockup

Verify:
Locally pass on U200

Change-Id: I6bd219e7dc3ad29904e6bd1b7d2f4cfb3928d8ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agosdio: optimize sdio clk cfg [1/1]
Nan Li [Tue, 11 Jun 2019 06:28:50 +0000 (14:28 +0800)]
sdio: optimize sdio clk cfg [1/1]

PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on().

Verify:
G12A_u211

Change-Id: Iec6e9460ad650001f079844f183d905789aa76e7
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agohdmitx: add SCDC/CED function [1/1]
Zongdong Jiao [Fri, 14 Jun 2019 08:27:19 +0000 (16:27 +0800)]
hdmitx: add SCDC/CED function [1/1]

PD#SWPL-6361

Problem:
Lack SCDC/CED function to check Rx TMDS status

Solution:
Add SCDC/CED function
By default, this function is not open.
Enable it in board dts file like below:
  &amhdmitx {
cedst_en = <1>;
  };
Also, you can manually enable it by
  'echo 1 > /sys/class/amhdmitx/amhdmitx0/cedst_policy'
Then listen '/sys/class/extcon/hdmi_cedst/uevent'
and check 'cat /sys/class/amhdmitx/amhdmitx0/cedst_count'

Verify:
G12/U212

Change-Id: Ic9c90936bad643ea95d418d7b019eb37210d7123
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agocommon: videosink: add dropping frame mechanism in amvideo [1/1]
Rico Yang [Thu, 30 May 2019 07:22:45 +0000 (15:22 +0800)]
common: videosink: add dropping frame mechanism in amvideo [1/1]

PD#OTT-4124

Problem:
video frames cannot be dropped when displayed in video layer

Solution:
add dropping frame mechanism in amvideo

Verify:
verified on franlin

Change-Id: I751883543adc5c840921bd5062484e56cde2c0fa
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
5 years agoosd: add osd blend bypass function [1/1]
Pengcheng Chen [Fri, 31 May 2019 07:06:18 +0000 (15:06 +0800)]
osd: add osd blend bypass function [1/1]

PD#SWPL-9525

Problem:
dv certification need osd blend bypass

Solution:
add osd blend bypass function

Verify:
verified in sm1

Change-Id: Iabf5f8e41329a9220b1f9e5ccd7e0b0ab0dd7a3f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: screen blank when Plugin HDMI after system bootup in 15s [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:27:15 +0000 (18:27 +0800)]
osd: screen blank when Plugin HDMI after system bootup in 15s [1/1]

PD#OTT-4292

Problem:
Root Cause:gralloc set afbcd = 1, but hwcomposer have no frame set,
hdmi plug and uboot logo update and osd_enable_hw() called, in this api,
there is a protection: if afbcd.enable set and phy_addr == 0 will
wait vsync till phy_addr != 0, this section code logic caused screen blank

Solution:
when gralloc set afbcd = 1, don't set afbcd.enable = 1,
it will update with hwcomposer post afbc frame.

Verify:
verify with Raven

Change-Id: I98a88cffd139832a34825adde7c21219937b63ce
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc workqueue [1/1]
Pengcheng Chen [Fri, 17 May 2019 09:18:03 +0000 (17:18 +0800)]
gdc: add gdc workqueue [1/1]

PD#SWPL-9642

Problem:
gdc can't support multi-thread, need add workqueue

Solution:
add gdc workqueue

Verify:
verified by w400

Change-Id: Icbe0b872775c0ab5445d260d49ff244528d8200b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agopicdec: memory pollution caused by GE2D [1/1]
Jian Cao [Tue, 11 Jun 2019 14:32:22 +0000 (22:32 +0800)]
picdec: memory pollution caused by GE2D [1/1]

PD#OTT-4501

Problem:
the dst canvas phy address for ge2d is overwritten
out of bound before processing

Solution:
alloc canvas index dynamically

Verify:
verified on g12b-w400

Change-Id: If021c087125928d5fb146118432c7ff427ea0dbb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agocec: early suspend no report power sts [2/2]
Yong Qin [Mon, 25 Feb 2019 09:19:48 +0000 (17:19 +0800)]
cec: early suspend no report power sts [2/2]

PD#SWPL-5037

Problem:
system enter early suspend, not ack "report power sts"

Solution:
early suspend not called.
not use CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND

Verify:
g12a s905x2 android P

Change-Id: I0e2d691b927575b3a6b5e7c13668de9bbf6519f7
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agolcd: add lcd tv driver when the panel disable in uboot [1/1]
shaochan.liu [Tue, 21 May 2019 07:59:46 +0000 (15:59 +0800)]
lcd: add lcd tv driver when the panel disable in uboot [1/1]

PD#SWPL-5937

Problem:
need screen initialization moved from uboot to kernel

Solution:
1, add lcd tv driver when the panel disable in uboot

Verify:
t962x2-x301

Change-Id: Ia7837db5f6581543b2a093357a264ee63dbd33a9
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agocpufreq: delete 100M and 250M cpu clk for g12b [1/1]
Hong Guo [Thu, 13 Jun 2019 07:38:59 +0000 (15:38 +0800)]
cpufreq: delete 100M and 250M cpu clk for g12b [1/1]

PD#OTT-4558

Problem:
delete 100M and 250M cpu clk for g12b

Solution:
delete 100M and 250M cpu clk for g12b

Verify:
test pass on g12b w400

Change-Id: Id8a858d5c56b44325e750702f1af3ca5cfd247c4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agohdmitx: rewrite multi-purpose VSIF [1/1]
Zongdong Jiao [Tue, 21 May 2019 06:51:08 +0000 (14:51 +0800)]
hdmitx: rewrite multi-purpose VSIF [1/1]

PD#SWPL-8788

Problem:
VSIF has multi-purpose: HDMI_4K, 3D, DV and HDR10+.
Need rewrite VSIF programming.

Solution:
rewrite multi-purpose VSIF

Verify:
G12/U212

Change-Id: I1db21d54c8ae873045661d1f00b930afcad5be60
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agovdin: record video, video display green screen [1/1]
Yong Qin [Thu, 13 Jun 2019 03:02:10 +0000 (11:02 +0800)]
vdin: record video, video display green screen [1/1]

PD#SWPL-9172

Problem:
no more canvas id for vdin1 use

Solution:
the canvas id number need equal with frame number.

Verify:
tl1

Change-Id: Idff362218042c260c28116816d747260708f6355
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agohdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]
Zongdong Jiao [Thu, 23 May 2019 12:59:32 +0000 (20:59 +0800)]
hdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]

PD#OTT-3716

Problem:
In GX, there is the I2C_REACTIVE method to avoid the I2C hangup
issue. But it is fixed in G12, so need replace it.

Solution:
Replace I2C_REACTIVE with I2C_RESET logic

Verify:
G12/U212

Change-Id: I1ca2f77a213db0d7de067745b3701816b7c85c27
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoaudio: fixed cvbs audio pop noise on g12a/b [1/1]
Zhe Wang [Thu, 13 Jun 2019 08:48:09 +0000 (16:48 +0800)]
audio: fixed cvbs audio pop noise on g12a/b [1/1]

PD#OTT-3760, PD#SWPL-8309

Problem:
startup ott, cvbs out with pop noise

Solution:
Set gpio init low

Verify:
verified by franklin

Change-Id: Ieb33e72473055fad69bc8e9a68ed0b0552e9f029
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoosd: display abnormal when 2nd osd laysers scope > 1080 [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:18:12 +0000 (18:18 +0800)]
osd: display abnormal when 2nd osd laysers scope > 1080 [1/1]

PD#OTT-4277

Problem:
osd display abnormal when 2nd osd laysers scope > 1080
default osd scope value in disable channel is too small

Solution:
set default osd scope value in disable channel to 0xffffffff

Verify:
verified by S905D2-U200

Change-Id: I9983928d91c1ac4285f2a5acdffa5438722e4ab4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodtv_demod: Play dtv stuttering when the temperature rising [1/1]
zhiwei.yuan [Thu, 11 Apr 2019 07:53:04 +0000 (15:53 +0800)]
dtv_demod: Play dtv stuttering when the temperature rising [1/1]

PD#SWPL-6985

Problem:
cfo track value is small

Solution:
increase cfo track val to avoid crystal jitter

Verify:
verified by t962x2_x301

Change-Id: Ifcf53f1d06eae204a82dc99154d18c38f370ebc1
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agovdin: vdin write register fail sometimes due to gate clk is off [1/1]
zhiwei.yuan [Wed, 5 Jun 2019 11:48:42 +0000 (19:48 +0800)]
vdin: vdin write register fail sometimes due to gate clk is off [1/1]

PD#SWPL-9372

Problem:
write register after clk off

Solution:
write register after clk on

Verify:
verified by t962x2_x301

Change-Id: Id9639d98a5434a8be22f0de9bf4ed778b9cbeb9f
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agotvafe: modify secam color temperature [1/1]
Evoke Zhang [Thu, 13 Jun 2019 02:54:25 +0000 (10:54 +0800)]
tvafe: modify secam color temperature [1/1]

PD#TV-6741

Problem:
secam color temperature need fine tune

Solution:
modify secam default config

Verify:
x301

Change-Id: Iac5037ac0f46f86753cac539b9afc95ee53cc84c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoamvecm: lc fix black sweater part position whitish [1/2]
Bencheng Jing [Thu, 30 May 2019 14:01:10 +0000 (22:01 +0800)]
amvecm: lc fix black sweater part position whitish [1/2]

PD#SWPL-7279

Problem:
black sweater part position whitish

Solution:
add tune lc curve node patch

Verify:
TL1

Change-Id: Ic3f323d25f005298a07d27f0dbd9f8b7a9427165
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agocamera: add gc2145 mipi camera driver [1/2]
Guosong Zhou [Tue, 11 Jun 2019 06:00:03 +0000 (14:00 +0800)]
camera: add gc2145 mipi camera driver [1/2]

PD#SWPL-8903

Problem:
S905D3 project need bring up gc2145 mipi camera

Solution:
bring up gc2145 mipi camera on S905D3-AC202

Verify:
verify on S905D3-AC202

Change-Id: I5c7c3c551eca7ec20759e724c24d725f89641d96
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agoosd: osd afbc decode err when dv enable and FF/FR [1/1]
Pengcheng Chen [Tue, 11 Jun 2019 09:28:52 +0000 (17:28 +0800)]
osd: osd afbc decode err when dv enable and FF/FR [1/1]

PD#SWPL-9344

Problem:
osd hold line is too small when dv enable

Solution:
enlarge osd hold line from 4 to 8

Verify:
verified by franklin

Change-Id: I81d1fe210fe6e9f9a065d7ff75178ef1807f3e43
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoaudio: bringup project T312 audio [1/1]
Zhe Wang [Wed, 12 Jun 2019 08:35:40 +0000 (16:35 +0800)]
audio: bringup project T312 audio [1/1]

PD#SWPL-9342

Problem:
T312 without audio

Solution:
bringup T312 audio

Verify:
T312.

Change-Id: I8be9a9fd6f09eafdb0425a1ac70cf83d17b30d60
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoatv_demod: fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3". [1/1]
nengwen.chen [Wed, 12 Jun 2019 09:22:30 +0000 (17:22 +0800)]
atv_demod: fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3". [1/1]

PD#TV-6044, PD#TV-6047

Problem:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Solution:
1.fix commit "c12f8957d441e99d3c037dfe1f36029f55421fe3".

Verify:
Verified by x301

Change-Id: I8e8632e608b8e0ddd8757409af6c5509bafd801d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: fix atv non standard signal audio handle [1/1]
nengwen.chen [Mon, 10 Jun 2019 12:04:56 +0000 (20:04 +0800)]
atv_demod: fix atv non standard signal audio handle [1/1]

PD#TV-6044, PD#TV-6047

Problem:
ATV sound output has noise when input non standard signal.

Solution:
1.fix atv non standard signal audio handle.
2.remove atv audio source selection in audio module.
3.atv demod selects audio source according to signal.
4.atv demod version: V2.12.

Verify:
Verified by x301

Change-Id: Ie0fce492f1ce7f5a5866d8674c95c97ee32452c0
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoaudio: atv source selected by atv demod [1/1]
Zhe Wang [Wed, 12 Jun 2019 06:28:10 +0000 (14:28 +0800)]
audio: atv source selected by atv demod [1/1]

PD#TV-6044, PD#TV-6047

Problem:
ATV sound output has noise when input non standard signal.

Solution:
release atv source select function to atv demod

Verify:
x301.

Change-Id: I96e58531150c3f20946ab636d701296328215686
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodefect: fix the errors caused by cross-gcc-4.9 compiler. [1/1]
Jianxiong Pan [Thu, 30 May 2019 12:18:15 +0000 (20:18 +0800)]
defect: fix the errors caused by cross-gcc-4.9 compiler. [1/1]

PD#SWPL-9181

Problem:
have the errors when using the cross-gcc-4.9 compiler.

Solution:
fix it.

Verify:
tm2_ab311.

Change-Id: I3dcc5e982c520baeaf19ca246764db10f36dd079
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agofirmware_drv: should not use AMSTREAM_MAJOR [1/1]
Hanjie Lin [Mon, 10 Jun 2019 08:38:00 +0000 (16:38 +0800)]
firmware_drv: should not use AMSTREAM_MAJOR [1/1]

PD#SWPL-9538

Problem:
firmware_drv and amstream shouldn't use the same AMSTREAM_MAJOR

Solution:
add a dedicated FIRMWARE_MAJOR for firmware_drv

Verify:
ac200

Change-Id: I3f041c220a9d0ea3329296dc81618dd85e8d466c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoaudio: fixed dtv audio clk setting error in samesource [1/1]
Zhe Wang [Tue, 11 Jun 2019 05:55:04 +0000 (13:55 +0800)]
audio: fixed dtv audio clk setting error in samesource [1/1]

PD#SWPL-9593

Problem:
dtv audio is heard slower in spk

Solution:
when mclk is changed, spdif clk changes correspondingly in samesource case

Verify:
X301

Change-Id: I15fcb598ba893762580f0a5aac856376af8c94ec
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: SM1/TM2: bringup EQ/DRC module [1/1]
Zhe Wang [Thu, 6 Jun 2019 12:22:32 +0000 (20:22 +0800)]
audio: SM1/TM2: bringup EQ/DRC module [1/1]

PD#SWPL-7606

Problem:
EQ/DRC module is out of work

Solution:
bringup EQ/DRC module

Verify:
verified on ac200

Change-Id: Ibd9b1e65aaed2ecd5f3086e4325d6b92fe34b040
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoosd: mali afbcd memory out of bound [1/1]
Jian Cao [Thu, 6 Jun 2019 11:19:50 +0000 (19:19 +0800)]
osd: mali afbcd memory out of bound [1/1]

PD#TV-6683

Problem:
DMC error log as "ID:VPU READ1, sub: 7"

Solution:
make afbc disable, if afbc phy addr is 0

Verify:
verified on TL1-X301

Change-Id: I111c8e2e922877904dd8b8d1f276f79ca4f68e94
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agolcd: add protection for tcon memory size [1/1]
shaochan.liu [Tue, 11 Jun 2019 06:36:20 +0000 (14:36 +0800)]
lcd: add protection for tcon memory size [1/1]

PD#SWPL-9502

Problem:
need avoid when set error tcon memory size

Solution:
add protection for tcon memory size

Verify:
t962_x301

Change-Id: I40c295c9ebcb26a991dc66b4fb2a7f0d006d4359
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agoosd: set viu2 hold line value to default value [1/1]
Pengcheng Chen [Mon, 3 Jun 2019 07:57:29 +0000 (15:57 +0800)]
osd: set viu2 hold line value to default value [1/1]

PD#TV-6244

Problem:
viu2 hold line too big caused v display offset

Solution:
1.set viu2 hold line value to default value

Verify:
Verified by tl1

Change-Id: Ie39baca7dd729e913735b7806acbc0a9cbb4559b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agolcd: VPU: encl input buffer reset delay and limit input buffer din phase [1/1]
shaochan.liu [Thu, 30 May 2019 06:11:46 +0000 (14:11 +0800)]
lcd: VPU: encl input buffer reset delay and limit input buffer din phase [1/1]

PD#SWPL-6649

Problem:
encl input buffer reset delay and limit input buffer din phase

Solution:
set sync_vpp go filed back to encl_clk

Verify:
t962x3_ab301

Change-Id: I3fc681d408950e7647cfb08bb19bc66f2f8719b6
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agodmc: adding a data to identify violation stauts [1/1]
Tao Zeng [Wed, 5 Jun 2019 08:04:24 +0000 (16:04 +0800)]
dmc: adding a data to identify violation stauts [1/1]

PD#TV-5802

Problem:
irq of dmc violation happens very qiuckly, which may
have some wrong report if violation print in workqueu.

Solution:
Add a data to identify it. If data is null, then it's a
fake violation

Verify:
txhd

Change-Id: I402763fa2d20cfae3dc2d9647f7b2c2fb29ce966
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoatv_demod: fix frequency closer when channel searching [1/1]
nengwen.chen [Thu, 6 Jun 2019 09:35:19 +0000 (17:35 +0800)]
atv_demod: fix frequency closer when channel searching [1/1]

PD#TV-6452, PD#TV-6643, PD#TV-6144

Problem:
fix frequency closer when channel searching.

Solution:
1.fix frequency closer when channel searching.
2.Frequency offset cause errors in CVBS or audio recognition.

Verify:
Verified by x301

Change-Id: Ieab13a5b5d8d901cfc61ea09e5e47eb9e938bf34
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agovlock: finetune encl mode [1/1]
Yong Qin [Tue, 21 May 2019 02:55:50 +0000 (10:55 +0800)]
vlock: finetune encl mode [1/1]

PD#SWPL-8874

Problem:
vlock and phase lock encl mode not works

Solution:
deverlop the function

Verify:
tl1

Change-Id: Ic72fda0a5b31cdcd0d77de688dd46fcce4bb7e29
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodv: The first frame is abnormal when play video [1/1]
yao liu [Fri, 17 May 2019 09:32:59 +0000 (17:32 +0800)]
dv: The first frame is abnormal when play video [1/1]

PD#SWPL-6480

Problem:
core1 reg is set wrong for g12 and tm2

Solution:
correct core1 reg for g12 and tm2

Verify:
verified by u212

Change-Id: Ie9de107fce6f23ded1397827ebe95a00939df8c1
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoatv_demod: enable the nicam switch [1/1]
nengwen.chen [Fri, 7 Jun 2019 02:37:19 +0000 (10:37 +0800)]
atv_demod: enable the nicam switch [1/1]

PD#TV-6144

Problem:
enable the nicam switch.

Solution:
1.enable the nicam switch.

Verify:
Verified by x301

Change-Id: I3961233c6093b372692098ddbb24737063ad59de
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodts: add dts config for P281. [3/3]
Luan Yuan [Mon, 3 Jun 2019 02:51:56 +0000 (10:51 +0800)]
dts: add dts config for P281. [3/3]

PD#SWPL-9298

Problem:
add dts config for P281

Solution:
add dts config for P281(from P212)
the difference as follows:
framebuffer from 1080p to 720p
gpu max freq from 750 to 666

Verify:
verify by p281

Change-Id: Ice6bcbd11fd831daeb6620d1780628494c8a10fa
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoptsserv: add first pts64 check in. [1/1]
shihong.zheng [Sat, 8 Jun 2019 03:45:51 +0000 (11:45 +0800)]
ptsserv: add first pts64 check in. [1/1]

PD#OTT-4173

Problem:
video stuck after seek. first pts64 is
abnormal when lookup failed.

Solution:
add first pts64 checkin for lookup failed.

Verify:
w400

Change-Id: Ibb2a15815311598cf47c242cb4c369da0f0cbdd2
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
5 years agovpp: fix out of one pixel between video and the red frame [1/1]
Peng Yixin [Mon, 27 May 2019 14:00:15 +0000 (22:00 +0800)]
vpp: fix out of one pixel between video and the red frame [1/1]

PD#TV-5764

Problem:
Goto the wrong case when using ext_sar

Solution:
Using the correct case when using ext_sar

Verify:
verified on r311

Change-Id: I181b9e8d21917840729f2e487b3dae3f41cd2c5a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agoemmc: change emmc busmode from hs400 to hs200 [1/1]
Ruixuan Li [Mon, 3 Jun 2019 11:19:03 +0000 (19:19 +0800)]
emmc: change emmc busmode from hs400 to hs200 [1/1]

PD#SWPL-9326

Problem:
hs400 200M not stable on some platform

Solution:
modify dts to hs200 mode

Verify:
passed on g12b_revb tl1 sm1 tm2

Change-Id: I45670c979b62a2caeed1e7ebc35b035bbbf8968c
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agodts: tm2: add new board [1/1]
pan.yang [Wed, 5 Jun 2019 09:18:18 +0000 (17:18 +0800)]
dts: tm2: add new board [1/1]

PD#SWPL-9342

Problem:
new board requirement for tm2_t962x3_t312

Solution:
add tm2_t962x3_t312

Verify:
tm2_t962x3_t312

Change-Id: Ifb62e1c40c6eb5dc68da1e2aac5fca391c3143bf
Signed-off-by: pan.yang<pan.yang@amlogic.com>
5 years agodefconfig: enable CONFIG_BLK_DEV_RAM [1/1]
Hanjie Lin [Tue, 4 Jun 2019 10:38:30 +0000 (18:38 +0800)]
defconfig: enable CONFIG_BLK_DEV_RAM [1/1]

PD#SWPL-8728

Problem:
{vts}[SEI 510] VtsKernelLtp module 2 fail
fgetxattr02 test failed

Solution:
enable CONFIG_BLK_DEV_RAM

Verify:
u212

Change-Id: I81c42803757f830f4da11fcb18baeaf28074cf26
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoDV: playback bl+el black screen [1/1]
yao liu [Tue, 4 Jun 2019 14:22:58 +0000 (22:22 +0800)]
DV: playback bl+el black screen [1/1]

PD#SWPL-7872

Problem:
TM2 special case , vd2 afbc can't work on TM2

Solution:
Process bl+el as SDR on TM2

Verify:
T962e2

Change-Id: I2433b72c4b5548e75665aba9623a29cd5f12d202
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agohdmitx: edid: add suitable case for DolbyVision [1/1]
Zongdong Jiao [Thu, 30 May 2019 12:08:41 +0000 (20:08 +0800)]
hdmitx: edid: add suitable case for DolbyVision [1/1]

PD#SWPL-7888

Problem:
DV tests add more EDID cases
v2_yuv444_2_yuv422_0_int_3_12Byte.xml
v2_yuv444_0_yuv422_0_int_2_13Byte.xml
v2_yuv444_0_yuv422_0_int_2_16Byte.xml

Solution:
add suitable case for DolbyVision

Verify:
G12/U212

Change-Id: I323d49ad34b12b6a12ba93f0349f0398f2516bcb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agousb: panel type-c need support adb and u-disk [1/1]
he.he [Thu, 30 May 2019 06:54:52 +0000 (14:54 +0800)]
usb: panel type-c need support adb and u-disk [1/1]

PD#SWPL-9127

Problem:
the id pin of the type-c is aways high, whether it is connected to u disk
or usb cable.

Solution:
It need set vbus high when the usb mode is host only.

Verify:
test passed on sm1

Change-Id: I4ff8a9b5419b54828ecd797a78d149da98535dee
Signed-off-by: he.he <he.he@amlogic.com>
5 years agoaudio: audio ABUS stuck issue [1/1]
Shuai Li [Tue, 4 Jun 2019 05:41:43 +0000 (13:41 +0800)]
audio: audio ABUS stuck issue [1/1]

PD#SWPL-9142

Problem:
Audio Abus may be stuck if it is stopped
when the burst is not finished.
And the stuck can't be recovered
unless reboot the system.

Solution:
Add check to make sure that the transfer
is over then start to disable the toddr fifo.

Verify:
TL1 stress test.

Change-Id: I28dcf84ddec421bc70370b2544f0bf1f3272e7b4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agodts: reduce isp reserved mem [1/1]
Jiacheng Mei [Tue, 4 Jun 2019 09:33:02 +0000 (17:33 +0800)]
dts: reduce isp reserved mem [1/1]

PD#SWPL-70

Problem:
arm isp can't get reserved mem

Solution:
reduce isp reserved mem

Verify:
w400

Test: camera preview and capture OK

Change-Id: Icaf630a25a55d31ec3ed68cae48fb840017c9fc0
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoavsync: tsync: fix avsync issue when streams replayed [2/2]
Xiaoming Sui [Thu, 30 May 2019 11:25:35 +0000 (19:25 +0800)]
avsync: tsync: fix avsync issue when streams replayed [2/2]

PD#TV-6448

Problem:
when streams replayed, the video is blocked about 6s sometimes.

Solution:
when streams replayed,  if pcr clock enable, then recalculate the
pcr clock for system clock from the stream to sync the video and audio.

Verify:
X301

Change-Id: Ic414fdc102753e1e1dcedfef2a5cb76ddddf6383
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agodts: change codec mm size to 192M. [1/1]
Luan Yuan [Thu, 30 May 2019 06:22:18 +0000 (14:22 +0800)]
dts: change codec mm size to 192M. [1/1]

PD#SWPL-9156

Problem:
memory overread error

Solution:
fixed play movie error

Verify:
verify by ac202/u202

Change-Id: I15e459a4fe044b02a5e958293c1516f8b7795096
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agotvafe: change force_nostd adjust to sysfs node [1/1]
Evoke Zhang [Fri, 24 May 2019 07:40:34 +0000 (15:40 +0800)]
tvafe: change force_nostd adjust to sysfs node [1/1]

PD#TV-5482

Problem:
Image flicker for non-std avin,
because the force_nostd parameter is modified to a unsuitable value.

Solution:
remove force_nostd paramete,
add sysfs node support for force_nostd

Verify:
x301

Change-Id: Ic50a311c6b5a63bcbd1d56651713de5be60a38a2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoemmc: modify the emmc device driver strength to type 0 [1/1]
Ruixuan Li [Tue, 21 May 2019 11:32:48 +0000 (19:32 +0800)]
emmc: modify the emmc device driver strength to type 0 [1/1]

PD#SWPL-8806

Problem:
the driver strength is type 1 on sm1

Solution:
modify sm1 dts

Verify:
passed on sm1_ac213

Change-Id: Iea5093541dc0bbd08954e78827309a45a84efc60
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoaudio: enable clk before extern codec init when system resume [1/1]
Zhe Wang [Wed, 22 May 2019 10:40:17 +0000 (18:40 +0800)]
audio: enable clk before extern codec init when system resume [1/1]

PD#TV-6005

Problem:
change time sequence for extern AMP

Solution:
1) enable tdm clk before codec init, when system resume

Verify:
test on X301

Change-Id: I3d6411cd32fbc3496bed942c72b7bec408d66959
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agostaging: android: ion: Call dma_map_sg for syncing and mapping [2/2]
Laura Abbott [Mon, 3 Apr 2017 18:57:48 +0000 (11:57 -0700)]
staging: android: ion: Call dma_map_sg for syncing and mapping [2/2]

PD#SWPL-9254

Problem:
uncached display unexpectly.

Solution:
Technically, calling dma_buf_map_attachment should return a buffer
properly dma_mapped. Add calls to dma_map_sg to begin_cpu_access to
ensure this happens. As a side effect, this lets Ion buffers take
advantage of the dma_buf sync ioctls.

Verify:
galilei, franklin

Change-Id: Ib6ca06e59e81031d3c65c2df8824b46baaba6c9f
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agostaging: android: ion: Duplicate sg_table [1/2]
Laura Abbott [Mon, 3 Apr 2017 18:57:47 +0000 (11:57 -0700)]
staging: android: ion: Duplicate sg_table [1/2]

PD#SWPL-9254

Problem:
Ion currently returns a single sg_table on each dma_map call. This is
incorrect for later usage.

Solution:
dup sg table on each dma_map call

Verify:
galilei, franklin

Change-Id: I6df2baa33bba9303b2ac25210ebaf56a337d56a2
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
5 years agovpp: create a variable for cm input size [1/2]
Brian Zhu [Wed, 29 May 2019 09:44:03 +0000 (17:44 +0800)]
vpp: create a variable for cm input size [1/2]

PD#TV-5968

Problem:
Too many case for cm input size with differnet chips.
SR0+SR1+PPS.

Solution:
Add a variable to indicate the cm input size.

Verify:
on r311

Change-Id: I5f1024340c67edbdf646c1b5bb7cad95b93b7b92
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agopipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]
jintao xu [Fri, 31 May 2019 06:33:13 +0000 (14:33 +0800)]
pipvideo: fix cur_pipbuf not set to NULL when disable video before unreg [1/1]

PD#OTT-4262

Problem:
When disable video before unreg, cur_pipbuf will not set to NULL.
Next time playback will tog this buffer.

Solution:
Free cur_pipbuf when vd2 is closed in unreg.

Verify:
U212

Change-Id: Ie381ae9feda8a5d23a93b3a5974d9c0af87e6d6e
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agodtv_demod: mosaic is seen when cable pulg/unplug several times [1/1]
zhiwei.yuan [Fri, 31 May 2019 11:30:31 +0000 (19:30 +0800)]
dtv_demod: mosaic is seen when cable pulg/unplug several times [1/1]

PD#SWPL-8182

Problem:
signal has problem after fec lock during cable plug-in

Solution:
delay fec lock

Verify:
verified by t962x2_x301

Change-Id: I7ec8c8651ecb25cc91673829bd17d4d70dd8b6a3
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: set resample clk to mclk of tdm [1/2]
Zhe Wang [Mon, 3 Jun 2019 09:33:07 +0000 (17:33 +0800)]
audio: set resample clk to mclk of tdm [1/2]

PD#TV-5865

Problem:
hdmiin frequency responds test fail.

Solution:
set resample clk to mclk of tdm

Verify:
X301

Change-Id: I22c92219bcea534bdec2bc526d535cacd971faa5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoclk: sm1: add sm1 dsu clk notify for change dsu freq [1/1]
Shunzhou Jiang [Tue, 14 May 2019 01:47:43 +0000 (09:47 +0800)]
clk: sm1: add sm1 dsu clk notify for change dsu freq [1/1]

PD#SWPL-8145

Problem:
dsu clk can't change freq

Solution:
add sm1 dsu clk notify

Verify:
sm1_skt

Change-Id: If3ecf1066b49c07e6af69ce342956cb0469a5f87
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agotvafe: optimize display for line frequency scan range [1/1]
Evoke Zhang [Thu, 30 May 2019 08:45:03 +0000 (16:45 +0800)]
tvafe: optimize display for line frequency scan range [1/1]

PD#TV-5770

Problem:
atv line freq offset -220hz display abnormal

Solution:
optimize acd_64/66 reg setting

Verify:
x301

Change-Id: I41fec1513a735ea6cd5975b18f01e8f80afe4f51
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo: Some interlace stream will stuck when pts rebound [1/1]
Lifeng Cao [Wed, 29 May 2019 08:03:04 +0000 (16:03 +0800)]
video: Some interlace stream will stuck when pts rebound [1/1]

PD#TV-6236

Problem:
Some interlace stream di has buffer count more than 16
If video pts rebound in this stream. The condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16) is
not true. So this frame can not toggle always.

Solution:
Delete this condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16)

Verify:
verify TL1

Change-Id: I7e8c12ec72d086b0516f7c7490b492e16e36e8fe
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
5 years agotvafe: vbi: optimize search_table performance [1/1]
Evoke Zhang [Thu, 23 May 2019 06:37:40 +0000 (14:37 +0800)]
tvafe: vbi: optimize search_table performance [1/1]

PD#TV-4910

Problem:
vbi search_table for invalid data will cost more cpu resource

Solution:
optimze search_table performance to save cpu resource

Verify:
x301

Change-Id: If92aa4e6d58894c6b78833cd367eacd8e9a76d5b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo: clear pcr in video stop [1/1]
shuanglong.wang [Mon, 3 Jun 2019 01:56:30 +0000 (09:56 +0800)]
video: clear pcr in video stop [1/1]

PD#SWPL-6903

Problem:
pcr increase automatic after system reset

Solution:
in non-tunnel mode, only after video stop post will adjust pcr
in omx_secret_mode. Also clear pcr in video stop

Verify:
verify by nts

Change-Id: I528229e8121a99e50c7b8313bd8dc867e3710ad8
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agomedia: add interface for checks the video profile. [1/2]
Nanxin Qin [Sun, 26 May 2019 16:22:30 +0000 (00:22 +0800)]
media: add interface for checks the video profile. [1/2]

PD#SWPL-8648

Problem:
add interface for checks the video profile

Solution:
add interface for checks the video profile

Verify:
u212

Change-Id: I95d0df62fae2debc6c0cc5a4d2adf002122b7630
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>