shaochan.liu [Thu, 8 Aug 2019 04:16:31 +0000 (12:16 +0800)]
lcd: add lvds phy pull down sequence to avoid 1.8V power on pluse [2/2]
PD#SWPL-9313
Problem:
need add lvds phy pull down sequence
Solution:
add lvds phy pull down sequence
Verify:
t962x2_x301
Change-Id: Id8725bfe4de99afed14fee956dc3be3f73e72220
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Jihong Sui [Fri, 9 Aug 2019 06:43:35 +0000 (14:43 +0800)]
deinterlace: disable afbc for tl1/tm2 [1/1]
PD#TV-8024
Problem:
abnormal display in small window.
Solution:
turn off afbc temporary.
Verify:
tl1
Change-Id: I6f863330ed9261ef00b0d1c7bdeaa341a9aaa2ca
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
zhiwei.yuan [Fri, 9 Aug 2019 08:10:36 +0000 (16:10 +0800)]
dtv_demod: tl1 DTMB, 674M frequency, not searchable [1/1]
PD#SWPL-12576
Problem:
dmd & dmx ts can't be synced
Solution:
change dmd ts sync to "searched"
Verify:
verified by t962x2_x301
Change-Id: I75014f746456b1dc8c7ffc57b98c92f5d001a6ec
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
cancan.chang [Tue, 13 Aug 2019 03:30:13 +0000 (11:30 +0800)]
galcore: resolve the conflict between usb module and nn module [1/1]
PD#SH-986
Problem:
nn module and usb module confilct
Solution:
add a label in galcore
Verify:
w411
Change-Id: I11c0c7ea3c8ce251a4dc937d76085c75d267372d
Signed-off-by: "cancan.chang" <cancan.chang@amlogic.com>
xianjun.liu [Wed, 26 Jun 2019 08:42:23 +0000 (16:42 +0800)]
mtd: nand: support new slc nand [2/2]
PD#SWPL-10125
Problem:
2Gb SLC Nand GD9FU2G8F2AMGI requested by Marketing
Solution:
add the nand id into amlogic nand flash id table
Verify:
AXG_S400
Change-Id: I0ebaa8322d471af7c01857ed2b39046917aad7ab
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
cancan.chang [Thu, 8 Aug 2019 04:46:00 +0000 (12:46 +0800)]
galcore: resolve the conflict between usb module and nn module [1/1]
PD#SH-986
Problem:
nn module and usb module confilct
Solution:
add a label in galcore
Verify:
s905d3 w400
Change-Id: I3f5b8738aa8924c7a292fc1da6dda1d2002a77ae
Signed-off-by: "cancan.chang" <cancan.chang@amlogic.com>
Evoke Zhang [Thu, 8 Aug 2019 11:02:26 +0000 (19:02 +0800)]
tvafe: optimize avin NTSC Purple and green junctions display for tl1 [1/1]
PD#SWPL-8326
Problem:
Purple and green junctions the bright side is wider
Solution:
change UV_FILTER_TYPE setting
Verify:
x301
Change-Id: Ib42f311b637f0bbf8224adbb19105f728adfad88
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
lingjie li [Mon, 5 Aug 2019 07:50:39 +0000 (15:50 +0800)]
DTS: Change p212_tdk to wayland+drm [1/2]
PD#SWPL-12278
Problem:
Need change p212_tdk to wayland+drm
Solution:
modify the dts to enable drm.
Verify:
local p212
Change-Id: I642ef0495933de7a1daa34554c8fea27fab2ec09
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
Cheng Wang [Thu, 1 Aug 2019 07:53:18 +0000 (15:53 +0800)]
amvecm: DNLP enable/disable abnormal [1/1]
PD#SWPL-10799
Problem:
dnlp enable effect is the same with disable.
Solution:
refresh vframe
Verify:
on x301
Change-Id: Ic133e10aa1faa5a6838dd05afc9e350498b01892
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
Kai Song [Thu, 28 Feb 2019 07:48:06 +0000 (15:48 +0800)]
dvb: Enable dvb demux support for ampere and franklin platform. [1/1]
PD#SWPL-11209
Problem:
1.Need support widevineCAS with drmplayer.
2.The ampere and franklin debugging platforms do not
support dvb demux by default, we need to modify the dts
configuration files.
Solution:
1.Refer to http://scgit.amlogic.com:8080/#/c/59242/
2.Refer to http://scgit.amlogic.com:8080/#/c/59702/3
3.Enable dvb demux support for ampere and franklin platform (arch/arm).
Verify:
Verified by ampere & franklin with android-p.
Change-Id: I0eb9393439b532f88beaf33479bb88da1ef5ea31
Signed-off-by: Kai Song <kai.song@amlogic.com>
shihong.zheng [Sun, 4 Aug 2019 06:54:05 +0000 (14:54 +0800)]
amstream: add dec crc interface in amstream. [1/3]
PD#OPS-679
Problem:
add decoder slt test code.
Solution:
add crc check interlace in amstream.
Verify:
x301
Change-Id: Ie7c82140bc4e1fa4c470d0e133a12afee14d9ca8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Shuai Li [Thu, 8 Aug 2019 08:17:32 +0000 (16:17 +0800)]
audio: add enable count for PDM module [1/1]
PD#IPTV-3723
Problem:
One use case is PDM module is sendig data
to both PDM device and LOOPBACK device.
Close one will make another useless.
Solution:
Add management of the PDM module by
a enable count.
Verify:
SM1.
Change-Id: Iceeb756c02671b16dbc3c49a9b793a50e6e559b5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
MingLiang Dong [Mon, 5 Aug 2019 11:16:32 +0000 (07:16 -0400)]
hdr: fix hdr too dark [1/1]
PD#SWPL-12292
Problem:
hdr video is too dark
Solution:
correct hdr adps shift
Verify:
verify on TM2
Change-Id: Iabd91d7b5910384c7de34596c3804b07b6eaf203
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Guosong Zhou [Tue, 6 Aug 2019 06:32:20 +0000 (02:32 -0400)]
camera: fix take picture stuck when camera recording [1/1]
PD#SWPL-12300
Problem:
gc2145 mipi camera take picture will stuck when recording
Solution:
add the right size to picture array
Verify:
verify on S905D3
Change-Id: Iee797d59053050d41448fda601a3bd7226cf9f37
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
zhiwei.yuan [Wed, 7 Aug 2019 07:45:40 +0000 (15:45 +0800)]
dtv_demod: C/N and three-path performane isn't up to std [1/1]
PD#SWPL-12431
Problem:
fec lost lock is too slower
Solution:
delay fec lock & make fec lost faster
Verify:
verified by t962x2_x301
Change-Id: I00de0a0c764f2fa598a867297acc0d90beddf188
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
Pengcheng Chen [Wed, 31 Jul 2019 06:22:19 +0000 (14:22 +0800)]
hdr: fix cvbsout display green screen [1/1]
PD#SWPL-11964
Problem:
cvbsout display green screen
Solution:
add mtx_setting in video_post_process
Verify:
tm2 ab301
Change-Id: I6de1b4aeb08583a67f20317ee4ac6b3bc577d03b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Zongdong Jiao [Sat, 27 Jul 2019 09:58:38 +0000 (17:58 +0800)]
hdmitx: update phy parameters [2/2]
PD#OTT-5448
Problem:
need update phy parameters
Solution:
regress raven parameters to trunk
Verify:
g12/u212
Change-Id: I84149dd900b584c209dd052e22b6dc60162e6c16
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Jihong Sui [Tue, 6 Aug 2019 09:57:09 +0000 (17:57 +0800)]
deinterlace: reduce working frequency to 500M for tl1 [1/1]
PD#SWPL-12359
Problem:
Reduce DI's working frequency from 667 to 500 for tl1,
according to brian's suggestion.
to avoid affecting output.
Solution:
change dts's cfg
Verify:
x301
Change-Id: I6506f6a222cfe30f478902033349e48c9c678c59
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Cao Jian [Tue, 6 Aug 2019 13:27:24 +0000 (21:27 +0800)]
picdec: fix no scale support [1/1]
PD#TV-8145
Problem:
no scale display issue for picdec
Solution:
p2p_mode can be set to 1 to support no scale
Verify:
verified on g12b-w400
Change-Id: I2121bb39019675da78e626bb6cf40bf51486c765
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
jian.zhou [Tue, 6 Aug 2019 11:33:19 +0000 (07:33 -0400)]
audio: fixed the WARNING caused by audio driver [1/1]
PD#SWPL-12161
Problem:
Power on the DUT, look at the printing log,
it will prompt WARNING:gpio/gpiolib.c:106
Solution:
when get gpio below 0,
no need to call devm_gpio_request_one function
as 2
ad82584f use the same gpio
Verify:
T962E2 AB311
Change-Id: Iad8ded3a8a0e94229281aa50462b7c09c627a70f
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
Xihai Zhu [Wed, 7 Aug 2019 04:00:01 +0000 (00:00 -0400)]
amvecm: fix LC illegal mem access issue [1/1]
PD#SWPL-12386
Problem:
LC access illegal mem while system shutdown
Solution:
avoid such accessing after mem is freed
Verify:
tl1
Change-Id: Ia817c5054ce863403ea4301c1728e16c4c033986
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
Ruixuan Li [Tue, 23 Jul 2019 06:44:53 +0000 (14:44 +0800)]
emmc: run hs400 200M busmode on tl1 [1/1]
PD#SWPL-11266
Problem:
tl1 is running hs200 200M
Solution:
modify dts
Verify:
passed on tl1_t962x2_x301
Change-Id: Ib515d62e92564bb71980bb8122de7dc54a89a2fb
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
MingLiang Dong [Thu, 18 Jul 2019 09:26:25 +0000 (05:26 -0400)]
amvecm: add pulldown combing fix patch [2/2]
PD#SWPL-11389
Problem:
1080i input, there is combing when detect pulldown
Solution:
1. di add pulldown detect
2. amvecm set dejaggy according to pulldown detect
Verify:
verify on TL1
Change-Id: I146666b19ab393d610e66e9cb450b74b185f76e1
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Jihong Sui [Wed, 17 Jul 2019 07:15:44 +0000 (15:15 +0800)]
deinterlace: add pulldown info to vframe. [1/2]
PD#SWPL-11389
Problem:
PQ need work around for 1080i(based on VLSI's suggestions)
co-work with yanling/mingliang
Solution:
add pulldown information to vframe;
u32 di_pulldown:
-bit 3: interlace
-bit 2: flmxx
-bit 1: flm22
-bit 0: flm32
Verify:
TL1
Change-Id: I9ff06ffa7aaa9516a3e64cec9768272499678fd5
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
shaochan.liu [Mon, 5 Aug 2019 11:20:10 +0000 (19:20 +0800)]
lcd: update hw_filter_time bypass config [1/1]
PD#SWPL-8848
Problem:
need update compatible filter bypass config
Solution:
update compatible filter bypass config
Verify:
t962x2_x301
Change-Id: I29a9642f2524da5106da8de78d99a9d4ceeeb0c8
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Xihai Zhu [Mon, 5 Aug 2019 01:57:24 +0000 (21:57 -0400)]
amvecm: support 9 color CM [1/1]
PD#SWPL-11788
Problem:
customer require 9 color adjustment
Solution:
expand currently 7 color to 9 color
based on FAE's info
Verify:
tl1
Change-Id: Id5dcc01b955ffb461d6fa01efdc16bff92822729
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
Evoke Zhang [Thu, 25 Jul 2019 07:22:58 +0000 (15:22 +0800)]
tvafe: add tvafe_mode to separate avt playing or search [1/1]
PD#TV-8035
Problem:
snowflake display is not stable when no signal
Solution:
separate avt playing or search
Verify:
x301
Change-Id: I4364d4af533704074a74e7d3b9522df461233f48
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Evoke Zhang [Fri, 5 Jul 2019 07:26:58 +0000 (15:26 +0800)]
tvafe: optimize avin ntsc_m, pal_m and secam display [1/1]
PD#SWPL-12091
Problem:
COLOR BAR+CROSS+DOT pattern is not good under avin ntsc_m
Solution:
update cvd 0xb2, 0xb5 reg for ntsc_m, pal_m, secam
Verify:
x301
Change-Id: I1610165689321d7cc60b883a4e44e86a6c352f18
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Shuai Li [Wed, 31 Jul 2019 11:25:39 +0000 (19:25 +0800)]
audio: SM1 tdmouta gated by earc [1/1]
PD#IPTV-3732
Problem:
TMDOUTA is gated by earc clk gate.
There is a bug in sm1 clk gating.
Solution:
Fix the wrong map of clk mapping.
Verify:
SM1.
Change-Id: Ia395d3307c249ef0cd64b715bb936dea3e2925ac
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Brian Zhu [Fri, 2 Aug 2019 17:58:29 +0000 (01:58 +0800)]
vpp: sr: disable more latch ctrl for SR0 [1/1]
PD#TV-7673
Problem:
SR0 register enabled the latch function, it will cause
frame size setting out of sync when bypass sr0.
Solution:
Disable the latch option.
Verify:
Verified with X301
Change-Id: Ibfc4c5f8f695757ddd7d7d9e50e4b5be23268388
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Cao Jian [Mon, 29 Jul 2019 07:10:03 +0000 (15:10 +0800)]
dolby: add limitation check for crc_output_buff_off [1/1]
PD#OTT-5433
Problem:
potential kernel memory diclosure in amdolby_vision
due to race condition on crc_output_buff_off
Solution:
add length check for crc_output_buff_off
Verify:
Verfied on raven
Change-Id: I1d7a445ea7972276d3975f8ccc36b186ef8736e3
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Xihai Zhu [Wed, 10 Jul 2019 01:50:40 +0000 (21:50 -0400)]
vdin: add bin info to vdin1 histogram dump [1/1]
PD#SWPL-11289
Problem:
bin data is missing from vdin1 histogram
Solution:
have histogram bin data copied
Verify:
TL1
Change-Id: I080448b2278e265d7a1649fb57fd6aacc0e6e576
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
Yong Qin [Fri, 2 Aug 2019 09:24:43 +0000 (17:24 +0800)]
vdin: hdmi 422 mode vdin set 10bit [1/1]
PD#SWPL-12219
Problem:
HDMI 422 mode, 8 or 10 bit valid is unknown.
when 10bit valid, there will cause PQ problem
Solution:
HDMI 422 mode vdin set 10bit
Verify:
tl1
Change-Id: Iaee6545dfe3ebbb92a23d23515509c8e8a053a91
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Long Yu [Thu, 1 Aug 2019 08:08:29 +0000 (16:08 +0800)]
emmc: Fixed adj mode for HS200 uses 1G clock source [1/1]
PD#SWPL-12162
Problem:
1)no use 1G source clock
Solution:
1)use 1G
Verify:
TL1
Change-Id: I4bf9036cb8223e9adf865c9cbdc64a8f6031ec05
Signed-off-by: Long Yu <long.yu@amlogic.com>
MingLiang Dong [Tue, 9 Jul 2019 03:21:03 +0000 (23:21 -0400)]
pq: add pq demo interface [1/1]
PD#TV-7491
Problem:
pq demo function
Solution:
add pq demo interface
Verify:
verify on TL1
Change-Id: If53fbba5f59a278394f71420e5cdc9c481abc0f7
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Long Yu [Mon, 5 Aug 2019 03:10:08 +0000 (11:10 +0800)]
emmc: Set a flag when all sampling points are valid [1/1]
PD#SWPL-12209
Problem:
fixed SWPL-11917
When all the sample points are valid,
they fall into the changes of 111917
Solution:
flag is set when all sampling points are valid
so tuning does not enter the changes of 11197
Verify:
txlx
Change-Id: I591993f3007db913b0030b108dcb18c304bf1042
Signed-off-by: Long Yu <long.yu@amlogic.com>
yao liu [Thu, 1 Aug 2019 07:35:10 +0000 (03:35 -0400)]
Dolby: Metadata Conformance test mismatch [1/1]
PD#SWPL-11390
Problem:
No 227/228/229/230 fail
Solution:
1.Set video priotiry, to prevent num_ext_blocks is set to 0
2.Turn off osd, to make gmax=gmin=0
3.Update md_tool.exe to version 0.4.1
4.Add padding data 0 to 512 bytes for metadata
By the way, fix some coverity check error
Verify:
sm1
Change-Id: I316e33bac3d84bb3bd7763031c28b33cfe7762ac
Signed-off-by: yao liu <yao.liu@amlogic.com>
Zhe Wang [Wed, 31 Jul 2019 02:13:26 +0000 (10:13 +0800)]
audio: when audio hdmirx is unstable, mute all input buffer [1/2]
PD#SWPL-12104
Problem:
when hdmirx timing switching, pop noise.
Solution:
when audio hdmirx is unstable, mute all input buffer
Verify:
T962x2 x301
Change-Id: I594b5bf9c1f4af45bb3653a7bfef5e0c7dab2825
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Evoke Zhang [Mon, 5 Aug 2019 02:15:43 +0000 (10:15 +0800)]
tvafe: optimize atv pali grayscale high-order saturation [1/1]
PD#TV-7291
Problem:
ATV source limit eight grayscale high-order saturation
Solution:
change agc_peak_nominal 0x10=0x8
Verify:
x301
Change-Id: I93c2257e3366b69d59e1b9f89ce0ed7f63e661ed
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Hang Cheng [Fri, 5 Jul 2019 08:29:59 +0000 (16:29 +0800)]
hdmirx: pull hpd low when cec auto power on is disabled [2/3]
PD#TV-7049
Problem:
hpd keeps high when cec auto power on disabled, not
match the requirement of CVTE hotplug function test
Solution:
pull hpd low when cec auto power on is disabled
Verify:
tl1
Change-Id: I7ab885894585b62d76f5dad8cdcbec9d754ef274
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
zhiwei.yuan [Thu, 25 Jul 2019 08:52:37 +0000 (16:52 +0800)]
vdin: cvbs vsync + 3Hz,picture shakes [1/1]
PD#SWPL-11923
Problem:
input vsync frequence is faster than output
Solution:
drop 2 fields for interlace source.
Verify:
verified by t962x2_x301
Change-Id: I55f6154e9f85a9890669fa8951a8608555b912ba
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
shaochan.liu [Fri, 26 Jul 2019 03:23:49 +0000 (11:23 +0800)]
lcd: set default hw_filter_time config [1/1]
PD#SWPL-8848
Problem:
need set a better compatible filter config
Solution:
set a better compatible filter config
Verify:
t962x2_x301
Change-Id: I298d22dff1185653ceac7e05633de3704b2fdb2f
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Jiamin Ma [Sun, 4 Aug 2019 07:07:01 +0000 (15:07 +0800)]
DTS: fix compile warnings [1/1]
PD#SWPL-12245
Problem:
Warning (resets_property): Missing property '#reset-cells'
Solution:
Add #reset-cells to node clock-controller
Verify:
P212
Change-Id: I5bc01ab88774be2088764ee6fb0eb9a863894ca2
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
Yong Qin [Mon, 29 Jul 2019 06:33:30 +0000 (14:33 +0800)]
vlock: cvbs out mode not enable vlock [1/1]
PD#SWPL-11885
Problem:
vlock changed the cvbs out FRQ
Solution:
VOUT_FR_ADJ_NONE cvbs out mode not support vlock
Verify:
TL1
Change-Id: Ic8891e4f63ae36839bc1c8b6c7b1552ad7bc0994
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
yao liu [Thu, 1 Aug 2019 06:52:53 +0000 (02:52 -0400)]
dolby: TM2 black screen on 4k60hz [1/1]
PD#SWPL-11431
Problem:
black screen on 4k60hz
display abnormal on 1080p24hz/1080i/576p/480p
Solution:
1.Adjust potch according to resolution
2.Add tm2 in is_graphics_output_off
3.Move osd sc to the back of core2
Verify:
Verified on TM2
Change-Id: Ida1b4a67b3a7233d3a03b0536d246a0bd677e90c
Signed-off-by: yao liu <yao.liu@amlogic.com>
Zongdong Jiao [Tue, 2 Jul 2019 06:23:38 +0000 (14:23 +0800)]
hdmitx: optimise the mode setting sequence [2/2]
PD#SWPL-10600
Problem:
When hdmitx output deep color modes (30 or 36 bits), the Hactive
may set wrong values, offset +1.
Solution:
Optimise the mode setting sequence: disable VENC, PHY configure,
core configure / reset, enable VENC
Verify:
G12B/W400
Change-Id: Id19b4441ccee3a7d3d81c3d55dbd9102762fe992
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Pengcheng Chen [Wed, 24 Jul 2019 08:18:17 +0000 (16:18 +0800)]
rdma: add rdma conflict check [1/1]
PD#SWPL-12134
Problem:
fix rdma write error caused display abnormal
Solution:
add rdma conflict check,correct rdma register error.
Verify:
verify on w400
Change-Id: I6a8866f517ed5b379729e348d34615c77553844a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Gongwei Chen [Fri, 2 Aug 2019 06:29:29 +0000 (14:29 +0800)]
dts: Multi-screen enable [2/3]
PD#SWPL-12213
Problem:
Multi-screen support.
Solution:
Display is blank when panel use the same clk with cvbs.
Verify:
1. Primary screen display with HDMI.
2. Extend screen display with panel.
3. Primary and extend screen can display the same UI or difference.
Change-Id: Id2189c32a8ee4bb0c1384352d91536c7310d5670
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
Bencheng Jing [Wed, 31 Jul 2019 09:48:48 +0000 (17:48 +0800)]
di: fix pulldown 22 enter slow patch from vlsi-LiuYanling [1/1]
PD#SWPL-12061
Problem:
film 22 detection threshold is high
Solution:
adjust the threshold lower
Verify:
sm1
Change-Id: I8e01e910b4a08aefdbde18fe1033bcb45e85b338
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Pengcheng Chen [Thu, 1 Aug 2019 08:16:24 +0000 (16:16 +0800)]
vpp: if vinfo mode is null or invalid, not update post2_matirx [1/1]
PD#SWPL-11561
Problem:
UI display abnormal when switch from sdr tv to dv tv,
issue happened when dv tv support hdr also, it first
switch to hdr mode, then switch agian to dv mode.
Solution:
if vinfo mode is null or invalid, not update post2_matirx
Verify:
Verify on sm1
Change-Id: I6cc87ae2d5569d66b312bf47508e626298f9f98a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Yan Wang [Mon, 27 May 2019 06:56:47 +0000 (14:56 +0800)]
dolbyfw: axg: update for sonos dolby fw [1/1]
PD#SH-561
Problem:
sonos dolby fw request
Solution:
update critical data interface for dolby fw request;
compatible with trunk dolby fw.
Verify:
S400
Change-Id: Id20d9c9867f3e5de4ea5ca9bb260cbac152a99df
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
Cao Jian [Tue, 30 Jul 2019 13:51:34 +0000 (21:51 +0800)]
osd: overflow on 4k src height/width left-shift [1/1]
PD#SWPL-10952
Problem:
osd for 4k native UI
Solution:
modify u32 to u64 for left-shift
Verify:
verified on g12b-w400
Change-Id: I9e98e3b5769d61132570f3f4bb1f47694cffde8f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Xihai Zhu [Wed, 3 Jul 2019 11:47:12 +0000 (07:47 -0400)]
amvecm: add option for applying gamma [1/1]
PD#SWPL-11288
Problem:
we'd better provide the flexibility
for gamma applying protection
Solution:
add option to let user to choose
if the applying protection is needed
or not
Verify:
tl1
Change-Id: I3f215545c7921134a282571d7f734bb8b42d553e
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
Jian Hu [Wed, 8 May 2019 11:52:28 +0000 (19:52 +0800)]
clk: tl1: add clk81 mux clock [1/1]
PD#SWPL-8215
Problem:
1.clk81 can not switch to 24M
2.fixed pll can set rate
call clk_prepare_enable to open it
call clk_disable_unprepare to close it
Solution:
1.add clk81 mux clock
2.change fixed pll callback Read only to R/W
Verify:
test passed on tm2 ab301
Change-Id: I426d4307f19647afcb0166a23c1988df1b504807
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Shunzhou Jiang [Thu, 14 Feb 2019 02:09:50 +0000 (10:09 +0800)]
clk: tl1: fix hifi clk can not work issue [1/1]
PD#SWPL-3825
Problem:
hifi clk can not work
Solution:
add hifi clk table
Verify:
X301
Change-Id: I89699e14077b9046900fec5665b76fb6bb4e080a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
Zongdong Jiao [Thu, 1 Aug 2019 06:43:18 +0000 (14:43 +0800)]
eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861
Problem:
Wrong val for init bandgap
Solution:
If PHY_CNTL0 is 0, then enable it, otherwise no need.
Verify:
SM1/AC200
Change-Id: I9e4a7bbe5d4b02cd8e9b2d5da87b4e572bdeb67e
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Yingyuan Zhu [Mon, 29 Jul 2019 06:54:57 +0000 (14:54 +0800)]
gpio_key: fix request gpio failed issue [1/1]
PD#SWPL-11929
Problem:
request gpio failed but the probe function continued
to execute successfully.
Solution:
add return value judgment.
Verify:
test pass on g12a
Change-Id: Iab04b8440a4ecb340d98baee7b1e0df5692739e7
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
Yong Qin [Thu, 25 Jul 2019 06:18:52 +0000 (14:18 +0800)]
vdin: 1080p 444 10bit mode buffer size not right [1/1]
PD#TV-7702
Problem:
1.1080p 444 10bit mode, buffer size is not big enough.
alloc as 444 8bit mode.
2.4k afbc not support 10bit mode
Solution:
hdr mode 4k, disable afbc mode.
Verify:
tl1 ref board
Change-Id: I3284a5279c08f360faaeaaf4e6ab47a9008f0da6
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Xihai Zhu [Thu, 25 Jul 2019 06:28:36 +0000 (02:28 -0400)]
amvecm: fix LC noise under SD blue pattern [1/1]
PD#SWPL-11532
Problem:
blue raster pattern show heavy noise
under sd HDMI input
Solution:
it is cuased by incorrect color matrix
set matrix based on the signal type
Verify:
tl1
Change-Id: I36ae74fd0f7762d270c5ea908a817dabb9516d56
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
Zongdong Jiao [Wed, 31 Jul 2019 07:30:56 +0000 (15:30 +0800)]
eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861
Problem:
Lack hdmitx hpd event notify to eARC
Solution:
Add hdmitx hpd event notify to eARC in HPD interrupt handler
w/o any delay.
Verify:
TBD
Change-Id: Ic7f35365a2af634dee604f7121d62738b4b17a8d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Jianxin Pan [Wed, 31 Jul 2019 07:19:06 +0000 (00:19 -0700)]
Revert "eARCrx: add hdmitx hpd notify [1/1]"
This reverts commit
93343170955d94aa45518edca907ba85a917e6ce.
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Change-Id: I198c244e0d6877776c966983d00fb554767f3fe0
Zongdong Jiao [Wed, 10 Apr 2019 01:58:59 +0000 (09:58 +0800)]
eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861
Problem:
Lack hdmitx hpd event notify to eARC
Solution:
Add hdmitx hpd event notify to eARC in HPD interrupt handler w/o
any delay.
Verify:
TBD
Change-Id: Iaff59f3144e4a03db32110d438d14012ab2fed81
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Bencheng Jing [Fri, 26 Jul 2019 09:22:43 +0000 (17:22 +0800)]
di: fix the abnormal white color noise [1/2]
PD#SWPL-7049
Problem:
abnormal white color noise
Solution:
add G12a/G12b/sm1 chip in the deghost patch
Verify:
sm1
Change-Id: Ib3f4f0500712ff2aac8d5eb9cd137f8a3d3fe0f1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Bencheng Jing [Sat, 6 Apr 2019 10:40:06 +0000 (18:40 +0800)]
amvecm: add 3x65 bin gamma setting function [1/1]
PD#SWPL-6644
Problem:
add 3x65 bin gamma function
Solution:
add 3x65 bin gamma function
Verify:
tm2
Change-Id: I1f70af4b7ad6b5906004c1912e2b8f5e4366da4e
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Bencheng Jing [Mon, 29 Jul 2019 12:17:08 +0000 (20:17 +0800)]
di: fix the sawtooth because of not into pulldown 22 timely [1/1]
PD#SWPL-10382
Problem:
not into pulldown 22 timely
Solution:
The judgment condition is wider for pulldown 22
Verify:
sm1
Change-Id: Id99c0c997b0954dee0a06b7e6dfd60feded73b30
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
nengwen.chen [Tue, 23 Jul 2019 07:21:05 +0000 (15:21 +0800)]
atv_demod: fix synchronization problem when get frontend [1/1]
PD#TV-8131
Problem:
fix synchronization problem when get frontend.
Solution:
1.fix synchronization problem when get frontend.
Verify:
Verified by x301
Change-Id: Ic0580a83448fe75529615ffa08cb526e205ef9a8
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Bencheng Jing [Thu, 25 Jul 2019 13:02:20 +0000 (21:02 +0800)]
di: fix the flash mosaic caused by cue [1/1]
PD#SWPL-11034
Problem:
flash mosaic when play VTS_13_1.VOB
Solution:
adjust cue function
Verify:
sm1
Change-Id: If188f49f3972e5da2b2fe4e917bb6e1b14163569
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
Sunny Luo [Tue, 30 Jul 2019 08:02:11 +0000 (16:02 +0800)]
spi: export the spi_register_board_info for ko [1/1]
PD#SWPL-9815
Problem:
spi_register_board_info's export has been removed in kernel 4.9,
but TV need to use it in ko.
Solution:
package it in a new dirspi_register_board_info and export
Verify:
T312
Change-Id: Ic7e5d8cef6840551e2925eda6162156320877833
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
shuanglong.wang [Mon, 22 Jul 2019 11:03:25 +0000 (19:03 +0800)]
video: do not update omx_pts if not continus drop [1/1]
PD#SWPL-9676
Problem:
netflix pause for a relative long time and resume, will occur freeze
Solution:
1.do not update omx_pts if not continus drop
2.omxpts not update for while, no compensate omxpts
Verify:
verify by nts
Change-Id: I4eef7b6aff44077e78fc704e26d8bab441a1b36b
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
Hang Cheng [Fri, 26 Jul 2019 09:29:14 +0000 (17:29 +0800)]
hdmitx: modify fractional part of hpll for gxtvbb [1/1]
PD#TV-8224
Problem:
hdmitx output clk is not right, actually output 145Mhz
when expect to output 148.5Mhz. for gxtvbb, bit[11]
of DIV_FRAC bit[11:0] is used for +/- symbol, but now
is used for fractional weight by mistake.
Solution:
change back to original setting for DIV_FRAC
Verify:
TCL-T966
Change-Id: Idd34a745d4b74a0bd9e6f2b3542af94731d5badd
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Yan Wang [Mon, 24 Dec 2018 06:51:28 +0000 (14:51 +0800)]
idle: power: tl1 need support CPU idle [1/1]
PD#SWPL-3525
Problem:
tl1 need support cpu idle.
Solution:
tl1 enable cpu idle.
Verify:
T962x2 x301
Change-Id: I14179975bbc1856418abbf32bccbfbf8d8462e4f
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
Long Yu [Tue, 30 Jul 2019 02:26:02 +0000 (10:26 +0800)]
emmc: modified the fixed adj tuning mode for HS200 [1/1]
PD#SWPL-11917
Problem:
Data sampling window has discontinuity
Solution:
Move the data as a whole to find a continuous data window
Verify:
txlx
Change-Id: I76fd41c22ff4c9e2e40b2b47580e25e0284ffbfa
Signed-off-by: Long Yu <long.yu@amlogic.com>
Maarten Lankhorst [Thu, 23 Nov 2017 10:37:37 +0000 (11:37 +0100)]
drm/vblank: Pass crtc_id to page_flip_ioctl.
PD#SWPL-4863
We added crtc_id to the atomic ioctl, but forgot to add it for vblank
and page flip events. Commit
bd386e518056 ("drm: Reorganize
drm_pending_event to support future event types [v2]") added it to
the vblank event, but page flip event was still missing.
Correct this and add a test for making sure we always set crtc_id correctly.
Change-Id: Idd1070005d88529500a8be868f714c8bb345ddee
Fixes:
bd386e518056 ("drm: Reorganize drm_pending_event to support future event types [v2]")
Fixes:
5db06a8a98f5 ("drm: Pass CRTC ID in userspace vblank events")
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.12+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #irc
Testcase: igt/kms_vblank/crtc_id
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123103737.47138-1-maarten.lankhorst@linux.intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
changqing.gao [Mon, 29 Jul 2019 05:53:02 +0000 (13:53 +0800)]
dts: sm1: camera preview would cause garbage [1/1]
PD#SWPL-11884
Problem:
camera preview would cause garbage.
Solution:
modify the previous change:
38e45fb998269d36f41a7b004be51ba9f1e7bef9
not to remove vdin0_cma_reserved.
Verify:
test passed on sm1
Change-Id: Ie20de9b3562f7c83fa73bd88acab7770ca8c3b0a
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Jianxiong Pan [Tue, 30 Jul 2019 01:57:56 +0000 (09:57 +0800)]
scripts: fixed an issue that could cause an infinite loop. [1/1]
PD#SWPL-12025
Problem:
the merge_pre_check.pl script has an bug that may enter an infinite loop,
causing problems.
Solution:
add the length of the detection conditions.
Verify:
local test.
Change-Id: I48fe839678ea0884a9082197eab083a2b8f489cd
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Cao Jian [Fri, 26 Jul 2019 09:46:04 +0000 (17:46 +0800)]
osd: osd_mmap no more locks to release [1/1]
PD#SWPL-11768
Problem:
release one more mutex in osd_mmap
Solution:
remove mutex release in osd_mmap
Verify:
Verfied on p212
Change-Id: I139b80590740717ced321171ee665d0f6c0cd83f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Keith Packard [Wed, 5 Jul 2017 21:34:23 +0000 (14:34 -0700)]
drm: Reorganize drm_pending_event to support future event types [v2]
PD#SWPL-4863
Place drm_event_vblank in a new union that includes that and a bare
drm_event structure. This will allow new members of that union to be
added in the future without changing code related to the existing vbl
event type.
Assignments to the crtc_id field are now done when the event is
allocated, rather than when delievered. This way, delivery doesn't
need to have the crtc ID available.
v2:
* Remove 'dev' argument from create_vblank_event
It wasn't being used anyways, and if we need it in the future,
we can always get it from crtc->dev.
* Check for MODESETTING before looking for crtc in queue_vblank_event
UMS drivers will oops if we try to get a crtc, so make sure
we're modesetting before we try to find a crtc_id to fill into
the event.
(cherry picked from commit
dc695b85fde88eca3ef3b03fcd82f15b6bc6e462)
Change-Id: I6f0feabcba9373fcc434b148752d9cd28bea67e6
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Brian Zhu [Mon, 29 Jul 2019 05:52:45 +0000 (13:52 +0800)]
amcsc: remove the vout_device is NULL log [1/1]
PD#SWPL-11922
Problem:
When the vout_device point is NULL, amcsc will print too
many logs.
Solution:
Remove this warning log since the vout_device = NULL is
normal under TV or CVBS case.
Verify:
Verified by X301
Change-Id: I007e3970b8361e0cd79bfc81ee5205cbb262c0c1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
lingjie li [Fri, 5 Jul 2019 09:27:04 +0000 (17:27 +0800)]
drm: start hdcp work when the "Content Protection" was set thought atomic [1/1]
PD#SWPL-4866
Problem:
1. The old implement not support atomic. (the atomic check on am_meson
hdmi.c will disable CP,The set property function will not reached when
use atomic set CP)
2. The hdcp work kthread start and terminal not match cause coredump.
Problem:
need add hdcp function.
Solution:
Start hdcp work when the encoder enabled.stop when encoder disabled.
modified hdcp work state machine.
Verify:
On u212 drm backend, use drm-helper-client to set CP property.
need enable atomic on wayland.based on below CL
http://scgit.amlogic.com:8080/#/c/78810/1
http://scgit.amlogic.com:8080/#/c/78804/2
http://scgit.amlogic.com:8080/#/c/78811/1
Change-Id: If213b7def89ff1f1ec63b866a21a3323e098786f
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
libo [Fri, 18 May 2018 12:47:38 +0000 (20:47 +0800)]
wifi: add tcp delay ack support [1/1]
PD#OTT-5388
Problem:
wifi rx throughput issue
Solution:
add tcp delay ack support
enable tcp dealy ack by following command:
echo 1 > /proc/sys/net/ipv4/tcp_use_userconfig
echo 60 > /proc/sys/net/ipv4/tcp_delack_seg
Verify:
u211
Change-Id: I060810b2800bae377388ba6ed9f9256597c9e6ea
Signed-off-by: libo <bo.li@amlogic.com>
Ao Xu [Mon, 29 Jul 2019 08:35:36 +0000 (16:35 +0800)]
drm: Pass CRTC ID in userspace vblank events
PD#SWPL-4863
With the atomic API, it is possible that a single commit affects
multiple crtcs. If the user requests an event with that commit, one
event will be sent for each CRTC, but it is not possible to distinguish
which crtc an event is for in user space. To solve this, the reserved
field in struct drm_vblank_event is repurposed to include the crtc_id
which the event is for.
The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if
the crtc field will be set properly.
[daniels: Rebased, using Maarten's forward-port.]
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170404165221.28240-2-daniels@collabora.com
Change-Id: Ide7657bdc38563d2de91edc2d649b53262002c39
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
yujie.wu [Mon, 15 Jul 2019 11:38:01 +0000 (19:38 +0800)]
audio: Disable Resample module for SPDIFIn [1/2]
PD#SWPL-9922
Problem:
The spdif input doesn't work
Solution:
Disable resample module for Spdif in
Verify:
A113
Change-Id: I459555d485641884cc026459ebb4a92d99157d8a
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
Zhuo Wang [Fri, 19 Jul 2019 03:13:02 +0000 (11:13 +0800)]
ethernet: debug function for reset [1/1]
PD#SWPL-11505
Problem:
STR may crash
Solution:
improve the suspend/rusume flow
Verify:
verify on g12a u200 board
Change-Id: Ie7b4759fd0d801c83eb3c1c314c402ae470b5e3f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Yong Qin [Tue, 23 Jul 2019 09:02:34 +0000 (17:02 +0800)]
vdin: dec stop port close vdin flag is not right [1/1]
PD#TV-7934
Problem:
when port not open complitly, needn't send event to tv server
Solution:
add a condition to pretect
Verify:
tl1
Change-Id: I4fb6d7d1d247381c9cb13acabeece56dd6b6d1bc
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
shaochan.liu [Fri, 12 Jul 2019 05:20:52 +0000 (13:20 +0800)]
lcd: tcon: set od function [2/2]
PD#TV-7435
Problem:
when enable od function, the left half of the screen
display is abnormal after boot
Solution:
set od function
Verify:
x301
Change-Id: Ibe4f2e7e5d9bc46c6ce880715103e2cc69d4625b
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
hualing chen [Wed, 3 Jul 2019 06:21:20 +0000 (14:21 +0800)]
dvb: ci mcu: control CAM throw mcu and used api to control mcu. [2/9]
PD#SWPL-10659
Problem:
tsin and tsout pin not config.
ci mcu dts not add config.
Solution:
1 add tsin and tsout pinmux config.
2 add ci mcu dts config.
Verify:
verified on t962x3-t312 box.
Change-Id: Id8c271e41736e337c12141f879e97bc9673bb99e
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
Hong Guo [Tue, 23 Apr 2019 07:38:33 +0000 (15:38 +0800)]
cpufreq: update dvfs voltage and pwm for g12b revb [1/1]
PD#SWPL-7636
Problem:
update dvfs voltage and pwm for g12b revb
Solution:
update dvfs voltage and pwm for g12b revb
Verify:
update dvfs voltage and pwm for g12b revb
Change-Id: I29deea791126fcb1819be380ed81bc2aa29eeec6
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Evoke Zhang [Fri, 26 Jul 2019 10:39:26 +0000 (18:39 +0800)]
avin_detect: fix avin_detect_flag mistak in probe [1/1]
PD#TV-7797
Problem:
cat detect avin signal
Solution:
fix avin_detect_flag in probe
Verify:
x301
Change-Id: I2ee1f7fa243d31262f4e156e84e63440fe812c09
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
robin zhu [Tue, 25 Jun 2019 20:02:14 +0000 (13:02 -0700)]
dv: support PIP [1/1]
PD#SWPL-9950
Problem:
not support VD1+VD2 PIP for DV+None_DV or 2xNone_DV
need bypass HDR+ to HDR module when Sink support
need always bypass to HDR module for HLG
not fully support convert between format SDR/HDR(+)/HLG
not support convert all format to IPT(DV)
not support follow sink/follow src policy for PIP
Solution:
add full matrix support to convert between SDR/HDR formats
add support to convert all format to IPT(DV)
rewrite policy, video process and tx handing for PIP
Verify:
tested and merged in raven project
need test on for src
need test for sink(has regression, need to fix)
Change-Id: I001d9dcdcb94c95fb2b7651e726d1ebadc8f4551
Signed-off-by: robin zhu <robin.zhu@amlogic.com>
xianjun.liu [Tue, 23 Jul 2019 03:14:19 +0000 (11:14 +0800)]
MTD: slc-nand: fix signed integer overflow in erase_bootloader [1/1]
PD#SWPL-11771
Problem:
Hackers can use signed integer erase_boot_num to cause systems crash
Solution:
replace signed variable with unsigned variables
Verify:
AXG-S400
Change-Id: I9cc8d8f43c199f48e7d7bff2664bca740681d274
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
xianjun.liu [Mon, 22 Jul 2019 10:02:10 +0000 (18:02 +0800)]
MTD: reset some important buf before free the buf [1/1]
PD#SWPL-11772
Problem:
Inadequate clearing of keys/dtbs/env buf in memory
Solution:
clear the corresponding buf before free the buf
Verify:
AXG-S400
Change-Id: I61971c11a41c7062270a3863ae711c856d66f332
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
xianjun.liu [Tue, 25 Jun 2019 07:31:30 +0000 (15:31 +0800)]
Mtd: fix check return value for copy_from_user in uboot_write method [1/1]
PD#SWPL-11776
Problem:
missing return value check for copy_from_user in uboot_write method
Solution:
checking return value after call copy_from_user/copy_to_user
Verify:
AXG-S420
Change-Id: I087a341cbf0b603b2898e81773dc266d8e3debe1
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
jiejing.wang [Wed, 24 Jul 2019 08:21:55 +0000 (16:21 +0800)]
license: add license for audio source file [1/2]
PD#SWPL-11716
Problem:
some audio source has no license
Solution:
add license for audio source file
Verify:
verify by locally
Change-Id: I85e7a27a724f1d255e38f4a878475b38abc1dfd4
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
Evoke Zhang [Tue, 23 Jul 2019 08:11:10 +0000 (16:11 +0800)]
avin_detect: optimize avin detect driver [1/1]
PD#TV-7797
Problem:
avin ch2 affect to ch1 display
Solution:
optimize avin detect driver, add debug print
Verify:
x301
Change-Id: Icc89c5b44f187a30971e8c53c3019297ce72b816
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Hong Guo [Thu, 25 Jul 2019 08:20:45 +0000 (16:20 +0800)]
dvfs: update cpu clk after adjust cpufeq for g12b big core [1/1]
PD#SWPL-11796
Problem:
update cpu clk after adjust cpufeq
Solution:
update cpu clk after adjust cpufeq
Verify:
test pass on g12b_w400
Change-Id: I5e4593e4b65de5f7536ddde793d682cc67df0e64
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Jian Hu [Thu, 25 Jul 2019 03:54:02 +0000 (11:54 +0800)]
clk: g12a/b: add aclk_lock init [1/1]
PD#SWPL-11765
Problem:
open CONFIG_LOCK_STAT
BUG: spinlock bad magic on CPU#2, swapper/0/1
lock: aclk_lock+0x0/0x28, .magic:
00000000, .owner: swapper/0/1, .owner_cpu: 2
CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.9.113 #1
Hardware name: Generic DT based system
[
bc001a5c+ 16][<
c020e5f4>] show_stack+0x20/0x24
[
bc001a84+ 40][<
c06161e8>] dump_stack+0xb8/0xf4
[
bc001aac+ 40][<
c02a1428>] spin_dump+0xa0/0xf0
[
bc001acc+ 32][<
c02a1744>] do_raw_spin_unlock+0xb8/0x138
[
bc001ae4+ 24][<
c0fa35f4>] _raw_spin_unlock_irqrestore+0x34/0x9c
[
bc001b2c+ 72][<
c0690ce4>] clk_mux_set_parent+0xc0/0x148
[
bc001b3c+ 16][<
c06911d8>] clk_composite_set_parent+0x3c/0x40
[
bc001b6c+ 48][<
c068cccc>] clk_core_set_parent+0x18c/0x42c
[
bc001b7c+ 16][<
c068cf98>] clk_set_parent+0x2c/0x30
[
bc001bb4+ 56][<
c0ca7ad8>] aml_tdm_platform_probe+0x27c/0x748
[
bc001bd4+ 32][<
c06d69e0>] platform_drv_probe+0x60/0xc0
[
bc001bfc+ 40][<
c06d4734>] driver_probe_device+0x214/0x2c0
Solution:
add aclk_lock init
Verify:
test passed on g12b
Change-Id: I1214d044c279865065de237bfb1ecc7f9ea71699
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
renjiang.han [Thu, 4 Jul 2019 07:34:36 +0000 (15:34 +0800)]
ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
PD#OTT-4872
Problem:
Unbound kstrdup and Potential Null Dereference.
Solution:
Add a judgment on the return value and the null pointer.
Verify:
on u212
Change-Id: I1e493c8125e08d4a6fb9fb46f28309eba6f0e47b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
Pengcheng Chen [Tue, 23 Jul 2019 02:24:04 +0000 (10:24 +0800)]
dv: fix Buffer overflow in amdolby_vision due to string processing [1/1]
PD#OTT-5058
Problem:
Buffer overflow in amdolby_vision due to string processing
Solution:
add buffer limited when string buffer accepting commands (namely *parm);
Verify:
verified on Raven
Change-Id: Icd550f331efb2ee46e2f270e516df9942837f93d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Jihong Sui [Wed, 24 Jul 2019 09:12:27 +0000 (17:12 +0800)]
deinterlace: add condition for force_prog [1/1]
PD#SWPL-11550
Problem:
force_prog only for progressive.
Solution:
add condition for force_prog
Verify:
TL1
Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Chia-hung Duan [Wed, 3 Jul 2019 06:40:41 +0000 (14:40 +0800)]
build: fix uninitialized-use when build with prebuilt toolchain [1/1]
PD#SWPL-8241
Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable
Solution:
Init to reasonable value
Verify:
Build with Android prebuilt toolchain
Change-Id: I09615276b48b6253f8084743a7d50081cfc24ec4
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>