Commit Graph

649457 Commits

Author SHA1 Message Date
wenbiao zhang
ff6f0ffe80 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>
2019-06-19 20:09:15 -07:00
Zongdong Jiao
81117f551d 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>
2019-06-19 02:39:32 -07:00
Guosong Zhou
691d51a821 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>
2019-06-19 01:37:57 -07:00
zhiwei.yuan
d437dc1927 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>
2019-06-19 00:39:06 -07:00
Shuai Li
9b87913467 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>
2019-06-18 20:06:03 -07:00
Evoke Zhang
a425e81dcf 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>
2019-06-18 19:00:49 -07:00
Evoke Zhang
775fc0ac6f 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>
2019-06-18 18:24:17 -07:00
nengwen.chen
c2d76851f4 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>
2019-06-18 01:02:43 -07:00
Gongwei Chen
54cbbad955 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>
2019-06-18 00:48:52 -07:00
Pengcheng Chen
6fb7f1d940 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>
2019-06-18 00:48:28 -07:00
Jian Cao
ff4781564f 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>
2019-06-18 00:29:10 -07:00
Pengcheng Chen
264f6ba86c 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>
2019-06-18 00:09:00 -07:00
Jianxin Pan
f8ee75f300 Merge "common: videosink: add dropping frame mechanism in amvideo [1/1]" into amlogic-4.9-dev 2019-06-18 00:01:04 -07:00
Jianxin Pan
7083548572 Merge "debug: add more strict checking for show_regs [2/2]" into amlogic-4.9-dev 2019-06-17 23:14:04 -07:00
Sandy Luo
f86d4e9284 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>
2019-06-17 22:57:11 -07:00
Pengcheng Chen
8fba80c121 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>
2019-06-17 22:44:16 -07:00
Jiamin Ma
35ffe6082f 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>
2019-06-17 22:36:36 -07:00
Nan Li
b0c30ab5a4 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>
2019-06-17 20:44:05 -07:00
Zongdong Jiao
ae37069da5 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>
2019-06-17 02:45:04 -07:00
Rico Yang
289e509be4 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>
2019-06-17 15:09:50 +08:00
Pengcheng Chen
cff6c82182 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>
2019-06-16 23:06:15 -07:00
Pengcheng Chen
02e8c0eb3c 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>
2019-06-16 23:05:03 -07:00
Pengcheng Chen
e74584708a 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>
2019-06-17 10:40:43 +08:00
Jian Cao
77d3281bf7 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>
2019-06-14 06:23:58 -07:00
Yong Qin
879c56a477 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>
2019-06-14 05:09:58 -07:00
shaochan.liu
3bb3943ab4 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>
2019-06-14 01:40:53 -07:00
Hong Guo
7b2133a888 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>
2019-06-14 01:17:27 -07:00
Zongdong Jiao
f573b98b63 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>
2019-06-14 00:05:18 -07:00
Yong Qin
d72825a65d 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>
2019-06-13 23:58:54 -07:00
Zongdong Jiao
bb681811fe 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>
2019-06-13 23:11:01 -07:00
Zhe Wang
a7e7bad328 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>
2019-06-13 22:52:23 -07:00
Pengcheng Chen
dc14a5eac8 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>
2019-06-13 22:51:45 -07:00
zhiwei.yuan
8a2132841f 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>
2019-06-13 22:49:29 -07:00
zhiwei.yuan
1feb7fa1e0 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>
2019-06-13 22:48:18 -07:00
Evoke Zhang
34d10b8c1a 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>
2019-06-13 22:44:23 -07:00
Bencheng Jing
b8e070a081 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>
2019-06-13 02:46:28 -07:00
Guosong Zhou
f52477a9d5 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>
2019-06-13 00:46:03 -07:00
Pengcheng Chen
441f4e66b6 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>
2019-06-12 22:34:08 -07:00
Zhe Wang
1145e1ffba 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>
2019-06-12 19:31:28 -07:00
nengwen.chen
fb0dc0acf8 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>
2019-06-12 17:26:54 +08:00
nengwen.chen
c12f8957d4 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>
2019-06-12 01:19:07 -07:00
Zhe Wang
e777da8862 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>
2019-06-12 14:38:46 +08:00
Jianxiong Pan
f20028e059 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>
2019-06-11 19:05:35 -07:00
Hanjie Lin
0abf9870aa 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>
2019-06-11 04:04:06 -07:00
Zhe Wang
7b18ac567c 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>
2019-06-11 03:50:22 -07:00
Zhe Wang
c94668b9d9 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>
2019-06-11 03:49:32 -07:00
Jian Cao
071d1368a6 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>
2019-06-11 02:42:00 -07:00
shaochan.liu
98d7562b34 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>
2019-06-11 02:04:41 -07:00
Pengcheng Chen
588a79245a 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>
2019-06-11 16:46:29 +08:00
shaochan.liu
556ba87a2a 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>
2019-06-10 23:30:08 -07:00