platform/kernel/linux-amlogic.git
5 years agodts: add ac202 for s905d3 panel [1/3]
Luan Yuan [Wed, 8 May 2019 06:12:24 +0000 (14:12 +0800)]
dts: add ac202 for s905d3 panel [1/3]

PD#SWPL-8219

Problem:
not support S905D3 panel

Solution:
add ac202 for S905D3 panel

Verify:
verify by ac202

Change-Id: I32188a8bbf7c25c490bf4735c55e63a3a92ef149
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agocommon: lcd: support yeke panel [2/5]
Luan Yuan [Tue, 30 Apr 2019 13:05:18 +0000 (21:05 +0800)]
common: lcd: support yeke panel [2/5]

PD#SWPL-8001

Problem:
support lcd panel.

Solution:
support lcd panel.

Verify:
verify by u202.

Change-Id: If0f665944c9a91a39c6fbd101e24878705284732
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agotm2: add SWD interface [3/3]
Yingyuan Zhu [Wed, 24 Apr 2019 09:50:29 +0000 (17:50 +0800)]
tm2: add SWD interface [3/3]

PD#SWPL-5647

Problem:
tm2 does not support SWD mode.

Solution:
add code to support SWD mode.

Verify:
test pass on ab311

Change-Id: If85a050b5033242200dd7163a8391e71960621f0
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
5 years agoaudio: set hdmi format-check threshold by input samplerate [2/2]
Zhe Wang [Mon, 6 May 2019 13:14:14 +0000 (21:14 +0800)]
audio: set hdmi format-check threshold by input samplerate [2/2]

PD#SWPL-6340

Problem:
ddp audio input from hdmiin is not smooth

Solution:
set hdmiin format-check threshold by input sr

Verify:
Verified by x301.

Change-Id: Idb8ffa616c3880b1c34d61ca4e8c2917343a9ffc
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodts: update vdin0 cma_size for 4k YUV444 10bit support [1/1]
Evoke Zhang [Tue, 7 May 2019 01:49:00 +0000 (21:49 -0400)]
dts: update vdin0 cma_size for 4k YUV444 10bit support [1/1]

PD#SWPL-7952

Problem:
vdin0 cma_size is not enough for some board

Solution:
1.change hdmirx skip_vf_num to 1.
2.increase vdin0 cma_size to 200M for 4k YUV444 10bit support,
other resolution usage will be lower,
such as 4k YUV422 10bit 160M.

Verify:
ab301

Change-Id: I353e2f9e5e6a25c8c3a34e10813039e9bba7e4a6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agohdmirx: update phy pll init logic [1/1]
yicheng shen [Mon, 6 May 2019 09:45:00 +0000 (17:45 +0800)]
hdmirx: update phy pll init logic [1/1]

PD#SWPL-7084

Problem:
hdmirx signal detection time is long

Solution:
Optimize the phy pll init logic

Verify:
TL1

Change-Id: Ibdfdb3a54d2a5cbdf4f6292b85616fdba36c37a9
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agoBT: support rtl8761atv [1/1]
Kuibao Zhang [Wed, 8 May 2019 08:26:26 +0000 (16:26 +0800)]
BT: support rtl8761atv [1/1]

PD#OTT-2730

Problem:
    1.BT open fail;
    2.the problem is caused by Flow Control;

Solution:
    1.set host cts pull-down as default on the dts.

Verify:
    Galilei.

Change-Id: I42aa3bfa263d4330219268622bce94bfc24ced8a
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
5 years agovpp: add histgram test interface for vpp slt test [1/1]
Brian Zhu [Thu, 18 Apr 2019 21:27:20 +0000 (05:27 +0800)]
vpp: add histgram test interface for vpp slt test [1/1]

PD#GH-31

Problem:
Need pattern to filter the error vpp modules in SLT test

Solution:
Using clipping and histgram function to create the test pattern
and get the histgram data.

Verify:
verified on w400

Change-Id: I52680c96f568980f71ac8c27c4b66352fea96651
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoBT: add a gpio interrupt for bt [1/1]
Kuibao Zhang [Wed, 1 May 2019 15:06:47 +0000 (23:06 +0800)]
BT: add a gpio interrupt for bt [1/1]

PD#TV-5021

Problem:
    1.bt rcu cann't wakeup host when the system is in freeze mode;
    2.There is no wake source in the bluetooth kernel.
    3.current irqchip driver will complain "Unbalanced IRQ xx wake
    disable" when gpio irq use as wakeup source, and can not wake device.

Solution:
    1.add a gpio interrupt for bt in the bt kernel;
    2.Wake up the interrupt;
    3.Add a flag to skip undefined  .irq_set_wake function in irqchip
    driver.

Verify:
    marconi.

Change-Id: Ic8d5525621e015a13fd765779f944cd1010144aa
Signed-off-by: Kuibao Zhang <kuibao.zhang@amlogic.com>
5 years agoosd: set hdr size according osd blend0 out size [1/1]
Pengcheng Chen [Tue, 7 May 2019 10:44:17 +0000 (18:44 +0800)]
osd: set hdr size according osd blend0 out size  [1/1]

PD#IPTV-2395

Problem:
osd last line have abnormal data

Solution:
set hdr size according osd blend0 out size

Verify:
Verfied on u212

Change-Id: Iad738b16fce066270c78213f1b696a802e1b8da6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodebug: add trace tag and more trace print [1/2]
Tao Guo [Fri, 29 Mar 2019 12:27:19 +0000 (20:27 +0800)]
debug: add trace tag and more trace print [1/2]

PD#SWPL-8124

Problem:
There are too many trace info when enabled
Lack some important trace info

Solution:
Add tag to enable/disable trace info for different modules
Add more trace info

Verify:
P212

Change-Id: I9916b97071dc6b3a5e133bb0ea55eb9a9532cec8
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
5 years agoamlvideo: pip channel not set omx_secret_mode [1/1]
jintao xu [Wed, 8 May 2019 05:56:17 +0000 (13:56 +0800)]
amlvideo: pip channel not set omx_secret_mode [1/1]

PD#OTT-2783

Problem:
when the second channel exit, the first channel will freeze

Solution:
pip not need set omx_secret_mode

Verify:
U212

Change-Id: I1f5f2624699ad29df06f67b288d16a15ab4edcf9
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agocec: interrupt irq src number is not right for tm2 [5/5]
Yong Qin [Mon, 22 Apr 2019 02:20:47 +0000 (10:20 +0800)]
cec: interrupt irq src number is not right for tm2 [5/5]

PD#SWPL-7469

Problem:
Sometime will lose msg. because of the isr src
number connected to timer.

Solution:
modify cecb irq src number to 203

Verify:
tm2-AB311

Change-Id: Ib14f230d2b228685a0f149a2b072f6ad1155615b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoaudio: fix TDMOUT channel map error [1/1]
Shuai Li [Wed, 3 Apr 2019 12:30:47 +0000 (20:30 +0800)]
audio: fix TDMOUT channel map error [1/1]

PD#SWPL-6427

Problem:
ALSA tdmout buffer frequently underrun.
This will cause the tdmout channel map error.
And the other channels data go into the spk.

Solution:
1)Adjust the sequence of starting and stopping.
2)reserved frddrA for EQ/DRC module

Verify:
Test more that 1 hour and pass.
Need more stress test.

Change-Id: Ib9b6897f0b6c32652c611a8c2c367aa76b9f1e3f
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agovdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1]
zhiwei.yuan [Mon, 6 May 2019 11:26:10 +0000 (19:26 +0800)]
vdin: QD980 HDMI 4k 30Hz,change bit depth has green screen [1/1]

PD#SWPL-8184

Problem:
don't updated afbce output color format

Solution:
update afbce config according afbce support or not,
instead of afbce need or not.

Verify:
verified by t962x2_x301

Change-Id: I7885357c1e5b04b58b059401a5f66d2ee83c76ef
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agovdin: add afbce reg access protection [1/1]
Evoke Zhang [Tue, 30 Apr 2019 10:53:06 +0000 (06:53 -0400)]
vdin: add afbce reg access protection [1/1]

PD#SWPL-7983

Problem:
txlx will crash when access afbce reg without afbce hw

Solution:
add afbce reg access protection

Verify:
r311

Change-Id: Iaabf8da9cb2a58e9c26626b9ac718bdf9c6a2ac3
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoaudio: auge: add lower power mode for PDM & vad [1/1]
Xing Wang [Sat, 19 Jan 2019 08:05:46 +0000 (16:05 +0800)]
audio: auge: add lower power mode for PDM & vad [1/1]

PD#SWPL-3825

Problem:
VAD & PDM works in 24m clks for lowpower mode when in deep suspend

Solution:
support VAD & PDM in 24m sysclk, 768k dclk

Verify:
x301

Change-Id: Ic363337ee9b0eba0f890ae62b9e0cb6bb54dcd6a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agoamvecm: fix lc cause bootvideo abnormal [1/1]
Bencheng Jing [Mon, 29 Apr 2019 07:14:09 +0000 (15:14 +0800)]
amvecm: fix lc cause bootvideo abnormal [1/1]

PD#SWPL-7901

Problem:
the osd_detect params not reset when scene change

Solution:
reset the osd_detect params when scene change

Verify:
TL1-x301

Change-Id: Id39211f2864c399e3ec9afcb58f8a9bd95ec516c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoamvecm: optimize amvecm update in vsync [1/1]
MingLiang Dong [Sun, 28 Apr 2019 13:39:48 +0000 (09:39 -0400)]
amvecm: optimize amvecm update in vsync [1/1]

PD#SWPL-6475

Problem:
hdmi input signal, video flicker

Solution:
optimize amvecm update in vsync

Verify:
verify on TL1

Change-Id: I3379333053fc52b8a33747ca83b1d6d68ea874ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoavsync: fix the avsync issue when pcrmaster [1/1]
Xiaoming Sui [Fri, 26 Apr 2019 10:42:46 +0000 (18:42 +0800)]
avsync: fix the avsync issue when pcrmaster [1/1]

PD#SWPL-7775

Problem:
dtv video freeze when the stream is replayed

Solution:
when replay at pcrmaster, check the vpts and systime,
if the vpts > systime and the diff > margin,
then adjust the sysclk to make playback smooth.

Verify:
X301

Change-Id: Id1474db030e06fff6ce425a54562cfa4e02ceaa9
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agoamlvideo2: fix video only parameters [1/1]
Guosong Zhou [Sun, 5 May 2019 06:32:35 +0000 (02:32 -0400)]
amlvideo2: fix video only parameters [1/1]

PD#TV-4664

Problem:
capture video only picture abnormal

Solution:
fix video only parameters

Verify:
T962X2-X301

Change-Id: I3b9d4fcdf1566f22e409264ba8bd82a85559c5cf
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agodv: fix black screen when play mel video [1/1]
yao liu [Sun, 5 May 2019 13:57:37 +0000 (21:57 +0800)]
dv: fix black screen when play mel video [1/1]

PD#SWPL-8155

Problem:
support el is disabled for default on 2.4.2 ko

Solution:
For mel video, set el flag to ko, to make support el
enable

Verify:
T962E2, Ves_L2DM_23976_3840x2160_10000kbps_hevc
_dvhe_dtr___dt.mp4 display normal

Change-Id: I6e92c012fedb460c373e6e4c0312542564b6ced3
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoavsync: tsync: change the start condition [2/2]
live.li [Sun, 5 May 2019 07:41:24 +0000 (15:41 +0800)]
avsync: tsync: change the start condition [2/2]

PD#TV-5393

Problem:
 when pcr and vpts distance is far,
 use the vpts as system time for
 cache video to avoid video underrun

solution:
   use vpts as system time for some
   special ts stream

Verify:
   x301

Change-Id: I2f151c526bb0113d4f0cf8bbd1a4772312857606
Signed-off-by: live.li <live.li@amlogic.com>
5 years agoatv_demod: add atv demod tune interface [1/2]
nengwen.chen [Mon, 15 Apr 2019 03:29:26 +0000 (11:29 +0800)]
atv_demod: add atv demod tune interface  [1/2]

PD#TV-4499

Problem:
add atv demod tune interface.

Solution:
add atv demod tune interface.

Verify:
Verified by x301.

Change-Id: I4b62ee8b87d218bf639c02a34ba7e1c116a22249
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agohdmirx: increase waiting time of tmds valid [1/1]
Lei Yang [Wed, 1 May 2019 08:40:36 +0000 (16:40 +0800)]
hdmirx: increase waiting time of tmds valid [1/1]

PD#SWPL-8032

Problem:
Switching to HDMI source is slower than T962

Solution:
ensure pll lock is table before do DWC reset

Verify:
T962X2

Change-Id: I1133d6b1fb532ab8460c1906a021fe133ea9fb83
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agoir: support rca ir protocol [1/1]
Qianggui Song [Tue, 30 Apr 2019 11:25:04 +0000 (19:25 +0800)]
ir: support rca ir protocol [1/1]

PD#SWPL-8050

Problem:
current driver does not support rca ir protocol

Solution:
add register setting and code for rca use REMOTE_RYPE_RCA to configure.

Verify:
G12b_W400 & tl1 x301

Change-Id: I76d860d66a43071803fb60debeafcbf18f42b283
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agobinder: revert dynamic vmalloc for binder [1/1]
Tao Zeng [Tue, 30 Apr 2019 07:29:17 +0000 (15:29 +0800)]
binder: revert dynamic vmalloc for binder [1/1]

PD#TV-5143

Problem:
Kernel use dynamic vmalloc for binder. It have data sync problems
and will cause bad object when binder transaction.

Solution:
1. Revert dynamic vmalloc for binder.
2. Increase 128MB size for vmalloc

Verify:
P212

Change-Id: I20198b18d171fde0314868af394a6881979b3605
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodi: fix moving character tow line [1/1]
Bencheng Jing [Thu, 2 May 2019 08:27:37 +0000 (16:27 +0800)]
di: fix moving character tow line [1/1]

PD#TV-4346

Problem:
di post buffer switch,motion read mif not switch

Solution:
fix the motion read mif

Verify:
verified by t962x2_x301

Change-Id: I6728e91bfff4241da1f5067398cc412545c7d96f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoaudio: auge: add loopback driver [1/1]
Xing Wang [Thu, 8 Nov 2018 09:37:32 +0000 (17:37 +0800)]
audio: auge: add loopback driver [1/1]

PD#SWPL-7240

Problem:
limit of current loopback
add loopback b for tl1
add tdmin_lb

Solution:
optimize loopback driver

Verify:
s400, u200, x301, ac200, ab301

Change-Id: I9dd4c7ad041231bb2c49513e354cfb4fb92131c4
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agosuspend: enable autosuspend function for tm2 [1/1]
Hong Guo [Sun, 5 May 2019 01:56:22 +0000 (09:56 +0800)]
suspend: enable autosuspend function for tm2 [1/1]

PD#SWPL-7837

Problem:
enable autosuspend function for tm2

Solution:
enable autosuspend function for tm2

Verify:
enable autosuspend function for tm2

Change-Id: I7e4c5015979bfc34de61bbbe551a3ebd7bfd11a4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoge2d: add ge2d multi plane fd support [2/2]
Pengcheng Chen [Mon, 8 Apr 2019 02:01:25 +0000 (10:01 +0800)]
ge2d: add ge2d multi plane fd support [2/2]

PD#SWPL-7421

Problem:
ge2d not support multi plane fd

Solution:
add ge2d multi plane fd support

Verify:
Verfied on G12B-W400

Change-Id: Ia8a529833d5c53a70eaa2094f8110635e4f184c1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc multi plane fd support [1/2]
Pengcheng Chen [Tue, 2 Apr 2019 09:08:28 +0000 (17:08 +0800)]
gdc: add gdc multi plane fd support [1/2]

PD#SWPL-7421

Problem:
gdc output not support multi plane fd

Solution:
add gdc multi plane fd support

Verify:
Verfied on G12B-W400

Change-Id: I898c027f068f92af5101fe65487baf1dfbec7c35
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: afbc decode error when loop viu1 to vdin [1/1]
Pengcheng Chen [Sun, 28 Apr 2019 10:40:25 +0000 (18:40 +0800)]
osd: afbc decode error when loop viu1 to vdin [1/1]

PD#TV-5024

Problem:
afbc decode error when loop viu1 to vdin.

Solution:
set osd hold line to max if vinfo is dummy_panel

Verify:
Tl1 X301

Change-Id: I0ebb312d381accb1890233164f071a095310d2f1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoclk: tm2: add CLK_IGNORE_UNUSED flag for pcie gates [1/1]
Jian Hu [Sun, 28 Apr 2019 10:54:39 +0000 (18:54 +0800)]
clk: tm2: add CLK_IGNORE_UNUSED flag for pcie gates [1/1]

PD#SWPL-7855

Problem:
pcie A does not work when enable alone

---hcsl_r_exen[bit29]---pcie A gate [bit3]
                     |
                     ---pcie B gate [bit28]

bit29/bit28: HHI_PCIE0_PLL_CNTL1
bit3: HHI_PCIE0_PLL_CNTL5

clk core will disable unused clock, So
CLK_IGNORE_UNUSED flag is necessary for
the three gates to avoid closing.

Solution:
add CLK_IGNORE_UNUSED flag for pcie gates

Verify:
test passed on tm2 ab31

Change-Id: I1121c75ab8fb847ec2ba1f7a0975619b36b0938e
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agoddr: enable bandwidth for tm2 64bit [1/1]
qingwei.xu [Sun, 5 May 2019 02:19:55 +0000 (10:19 +0800)]
ddr: enable bandwidth for tm2 64bit [1/1]

PD#SWPL-8057

Problem:
bandwidth measure on tm2 64bit is not enabled

Solution:
enable bandwidth for tm2 64bit

Verify:
AB311

Change-Id: Ia05c8c539d69d31c354f0883c1085ee48b5c903c
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
5 years agou202: add dts-id for multi-dts in 32bit. [1/1]
Luan Yuan [Tue, 30 Apr 2019 14:01:00 +0000 (22:01 +0800)]
u202: add dts-id for multi-dts in 32bit. [1/1]

PD#SWPL-7973

Problem:
upgrade failed, because can not found dts.

Solution:
change dts-id

Verify:
verify by u202

Change-Id: I9cfd85ebfda1bff60abc78bd09355f977f25f4bf
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agohdmirx: enable hdcp2.2 for tm2 [1/2]
yicheng shen [Mon, 29 Apr 2019 09:15:01 +0000 (05:15 -0400)]
hdmirx: enable hdcp2.2 for tm2 [1/2]

PD#SWPL-7865

Problem:
TM2 hdcp2.2 can not work,esm bootup fail

Solution:
Enable Enable axi_clk.

Verify:
TM2

Change-Id: I44af6f2b5bfbe72cfdb93e1b42c47cda9c56d3a2
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agofermitform: add u202 dts config for s905d2 panel. [3/3]
Luan Yuan [Tue, 30 Apr 2019 05:31:53 +0000 (13:31 +0800)]
fermitform: add u202 dts config for s905d2 panel. [3/3]

PD#SWPL-7973

Problem:
s905d2 panel need new projects config.

Solution:
copy dts config from u200

Verify:
no need verify

Change-Id: I37a884ae951b8c6ede7adb065239ce59dca25c3a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agobandwidth: add min bandwidth read in usage_stat [1/1]
Tao Zeng [Tue, 30 Apr 2019 02:56:18 +0000 (10:56 +0800)]
bandwidth: add min bandwidth read in usage_stat [1/1]

PD#SWPL-7960

Problem:
There is no min ddr bandwidth data

Solution:
Add this value in sysfs

Verify:
p212

Change-Id: I9d90476d30c0ca7789046d8d205f0802de2b4acf
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agovpp: sr: enable sr core0 directly for txlx [1/1]
Brian Zhu [Fri, 26 Apr 2019 20:48:09 +0000 (04:48 +0800)]
vpp: sr: enable sr core0 directly for txlx [1/1]

PD#TV-3260

Problem:
Since the Super scaler on txlx has the latch function
and can not disable it. So need adjust the super scaler
on/off operation flow.

Solution:
write the enable bit of sr core0 directly, not rdma write.

Verify:
r311, verify pass

Change-Id: If1b27205cbb1c49dd6a3ad65a08e2ca1e3f04b62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agovpp: increase the afbc burst len as 4 for txlx [1/1]
Brian Zhu [Fri, 26 Apr 2019 18:37:27 +0000 (02:37 +0800)]
vpp: increase the afbc burst len as 4 for txlx [1/1]

PD#TV-3132

Problem:
When playing 4K afbc and scaling down to small window,
the vskip is 1 and DDR freq is also lower, the display will
flicker caused by DDR bandwidth issue.

Solution:
Increase the afbc mif burst len from 2 to 4. And enable
the dmc adjustment in that case.

Verify:
r311, verify pass

Change-Id: Ia431a93f6083fd584b7e2eb14f777c5a5e7c20e7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoatv_demod: tm2: add audio gain and interrupt. [1/1]
nengwen.chen [Thu, 25 Apr 2019 01:59:40 +0000 (09:59 +0800)]
atv_demod: tm2: add audio gain and interrupt. [1/1]

PD#SWPL-5661, PD#SWPL-5659

Problem:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.

Solution:
1.add gain register to control the L and R channel audio gain.
2.add atv interrupt for signal lock and unlock.

Verify:
verified by ab301 and ab311.

Change-Id: I8a7cbe538939dd9418e27165d4c83a8f473f119b
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agomedia: fix crash issue in codec_mm release [1/1]
Hui Zhang [Thu, 18 Apr 2019 11:18:22 +0000 (19:18 +0800)]
media: fix crash issue in codec_mm  release [1/1]

PD#OTT-3314

Problem:
there  is a invalid codec_mm pointer. which may cause crash

Solution:
add valid check before codec_mm release

Verify:
X301

Change-Id: Ie9b31f1a830e949a27cc58468cced8a9e4268808
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
5 years agoaudio: add 10ms sleep before pdn enable [1/1]
Zhe Wang [Mon, 29 Apr 2019 10:52:30 +0000 (18:52 +0800)]
audio: add 10ms sleep before pdn enable [1/1]

PD#SWPL-7680

Problem:
mdelay will pend the system

Solution:
change mdelay to usleep_range

Verify:
HW verify

Change-Id: I8452dc7b1056378dbc6b743fc43316eccbf525a5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoamvecm: set tm2 vpp gain offset to 13bit [1/1]
Bencheng Jing [Thu, 18 Apr 2019 13:16:56 +0000 (21:16 +0800)]
amvecm: set tm2 vpp gain offset to 13bit [1/1]

PD#SWPL-7778

Problem:
set tm2 vpp gain offset to 13bit

Solution:
set tm2 vpp gain offset to 13bit

Verify:
T962E2

Change-Id: I54ae9566050baeb73b7b1c94f87a3c43c76a2c62
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoRevert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"
Kees Cook [Thu, 10 Aug 2017 20:36:35 +0000 (13:36 -0700)]
Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

PD#SWPL-7092

This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with
various conflict clean-ups.

With the default root directory mode set to 0750 now, the capability
check was redundant.

Change-Id: If978c34cef8345b0ba67a038eed7d54d4f1423d6
Suggested-by: Nick Kralevich <nnk@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
5 years agoaudio: add 10ms delay before pdn enable [1/1]
Zhe Wang [Sun, 28 Apr 2019 03:22:14 +0000 (11:22 +0800)]
audio: add 10ms delay before pdn enable [1/1]

PD#SWPL-7680

Problem:
the pwn signal is self excitable

Solution:
1)add 10ms delay before pdn enable
2)set default clk for extern codec

Verify:
HW verify

Change-Id: I031b20851ee1eeb65215075fc8abe783ceddf42b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: add param check for resample [1/1]
Shuai Li [Sun, 28 Apr 2019 13:15:49 +0000 (21:15 +0800)]
audio: add param check for resample [1/1]

PD#SWPL-7798

Problem:
Crashed when audio resample setting params
are invalid.

Solution:
Add check method if the params is invalid.

Verify:
Tl1.

Change-Id: I1e0396be8d401c0a49ff0de9fd7f160f0c8133ca
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agohdmirx: fix dishNXT box blackscreen issue [1/1]
Lei Yang [Fri, 19 Apr 2019 09:39:43 +0000 (17:39 +0800)]
hdmirx: fix dishNXT box blackscreen issue [1/1]

PD#SWPL-7452

Problem:
TV is no signal when turn off and turn on dishNXT box

Solution:
clear hdcp avmute status if hdcp is not start

Verify:
962X

Change-Id: I0448e46baea4f8666b2b665f6c867fecb41fb7d0
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agodv: fix black screen when connecting dv TV [1/1]
Yi Zhou [Wed, 17 Apr 2019 02:48:00 +0000 (10:48 +0800)]
dv: fix black screen when connecting dv TV [1/1]

PD#SWPL-7778

Problem:
black sreen when connecting dv TV

Solution:
close post matrix
open tm2 dv flag

Verify:
T962E2

Change-Id: I828b32d7bf2ef35c3f236ad9bf15964272d06dd2
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agodolby: fix Display looks abnormal problem [1/1]
yao liu [Fri, 26 Apr 2019 12:35:34 +0000 (08:35 -0400)]
dolby: fix Display looks abnormal problem [1/1]

PD#OTT-3006

Problem:
The width and height of DOLBY_CORE2A reg are reversed

Solution:
Setting right width and height for DOLBY_CORE2A

Verify:
raven

Change-Id: I89d1a99d00122179bb35b5853a869819e5d62ac9
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoemmc: run hs400 200M on sm1 [1/1]
Ruixuan Li [Tue, 23 Apr 2019 08:07:12 +0000 (16:07 +0800)]
emmc: run hs400 200M on sm1 [1/1]

PD#SWPL-5404

Problem:
run hs400 200M on sm1

Solution:
config sm1 and modify dts

Verify:
passed on ac200

Change-Id: I34e54f88db79ce42f9effbf8d673ade613de328f
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agolcd: open key_valid [1/1]
shaochan.liu [Wed, 10 Apr 2019 03:20:11 +0000 (11:20 +0800)]
lcd: open key_valid [1/1]

PD#SWPL-6398

Problem:
need open key_valid

Solution:
1,change panel.dtsi to open key_valid

Verify:
t962x3_ab301
t962x3_ab309

Change-Id: I6b0fa40efab9a50802d8391b9bb56101e471e8e5
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agosched: add hmp boost for big-little cluster [1/1]
Hanjie Lin [Mon, 5 Nov 2018 11:51:51 +0000 (19:51 +0800)]
sched: add hmp boost for big-little cluster [1/1]

PD#SWPL-6980

Problem:
memory bound tasks running in a high freq cluster will get a low performance
when another cluster freq is too low.

Solution:
We boost big cluster freq for a appropriate duration when we detect that
little cluster have lasting a period with highest freq.

Verify:
w400

Change-Id: Ic513604cb329992782c9c2e1d71273080e2e336a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoethernet: fix suspend resume crash [1/1]
Zhuo Wang [Mon, 22 Apr 2019 04:49:34 +0000 (12:49 +0800)]
ethernet: fix suspend resume crash [1/1]

PD#SWPL-7166

Problem:
suspend resume test failed

Solution:
cancel work queue first

Verify:
verify on u200 board

Change-Id: Ibd1a9587a32edf5583db564d2efe0ff0279d4d10
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agoSecurity: fix sts testPocCVE_2016_6753 [1/1]
Jiamin Ma [Sun, 28 Apr 2019 10:15:19 +0000 (18:15 +0800)]
Security: fix sts testPocCVE_2016_6753 [1/1]

PD#SWPL-7852

Problem:
android.security.sts.Poc16_11#testPocCVE_2016_6753 fail

Solution:
do not expose kernel addr info via cgroup_css_links_read

Verify:
U200

Change-Id: I74e4904e8b662db9d6589a1926c62c87e12d6f6f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agoatv_demod: optimize the stereo audio recognition [1/1]
nengwen.chen [Tue, 16 Apr 2019 08:35:41 +0000 (16:35 +0800)]
atv_demod: optimize the stereo audio recognition [1/1]

PD#TV-3569

Problem:
optimize the stereo audio recognition.

Solution:
1.optimize the stereo audio recognition.
2.remove redundant code.
3.atv demod version: V2.10.

Verify:
verified by x301.

Change-Id: If8933bdd897a7c3e6b6ff9753d7ff971a0432ef9
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agovpp: hold the vpp setting when meet the non-dw afbc frame [1/1]
Brian Zhu [Wed, 24 Apr 2019 03:30:22 +0000 (11:30 +0800)]
vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]

PD#SWPL-7513

Problem:
When meet the non-dw afbc frame, vpp can not display with
scaling down as expected.

Solution:
Hold the current vpp setting and wait provider to switch
non-afbc.

Verify:
x301

Change-Id: I3c0e678d2da42376f3a77e334b8c5ce48460273b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoclk: tm2: fix pcie A and B clock [1/1]
Jian Hu [Sun, 28 Apr 2019 04:27:39 +0000 (12:27 +0800)]
clk: tm2: fix pcie A and B clock [1/1]

PD#SWPL-7855

Problem:
pcie A does not equal 100M when enable alone,
enable pcie A and B together works well.

Solution:
correct pcie A and B clock describetion

Verify:
test passed on tm2 ab3100

Change-Id: I9483efe00cc157c3ff5a9ff4d3a03e0dc50e4fdc
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agovdin: support afbc/non-afbc switch dynamically [1/1]
Evoke Zhang [Sat, 20 Apr 2019 11:19:46 +0000 (19:19 +0800)]
vdin: support afbc/non-afbc switch dynamically [1/1]

PD#SWPL-7512

Problem:
need switch vdin afbc/non-afbc mode sometime

Solution:
support afbc/non-afbc switch dynamically

Verify:
x301

Change-Id: I08433938f169a51ed1ed7a23fd99f3ba42e076fe
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agokasan: fix wrong kasan report when resume [1/1]
Tao Zeng [Wed, 24 Apr 2019 08:10:03 +0000 (16:10 +0800)]
kasan: fix wrong kasan report when resume [1/1]

PD#SWPL-7676

Problem:
If we open kasan on 32bit kernel, after resume we usually will
get a stack-out-of-bounds KASAN error report. But infact that's
a fake report. Because On arm architecture, cpu suspend/resume
routine is done in function call path:
    cpu_suspend -> psci_cpu_suspend -> __invoke_psci_fn_smc
during this call path, some parts of stack will be marked as
shadow memory. But when cpu resume from smc call, it directly
return to point which saved in cpu_suspend and call resume
procedure. Which do not comeback as a reverse return path:
    __invoke_psci_fn_smc -> psci_cpu_suspend -> cpu_suspend
So some residual shadow memory may affect KASAN report when
cpu is calling resume hooks.

Solution:
We just need to clear all shadow in stack for this case.

Verify:
p212

Change-Id: Ic6c877212240d03902b11184e54ac363455e0094
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoCPUFREQ: update cpufreq 1.512G to 1.5G for sm1. [1/1]
Hong Guo [Thu, 4 Apr 2019 05:17:22 +0000 (13:17 +0800)]
CPUFREQ: update cpufreq 1.512G to 1.5G for sm1. [1/1]

PD#SWPL-6205

Problem:
update cpufreq 1.512G to 1.5G for sm1.

Solution:
update cpufreq 1.512G to 1.5G for sm1.

Verify:
sm1_ac200, verify pass

Change-Id: Ic9c570b2c398e12efb84b4d707f24f773940bbe0
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agocpufreq: dynamic adjustment dsu clk with tl1 cpu clk [1/3]
Hong Guo [Thu, 21 Feb 2019 07:21:08 +0000 (15:21 +0800)]
cpufreq: dynamic adjustment dsu clk with tl1 cpu clk [1/3]

PD#SWPL-2842

Problem:
dynamic adjustment dsu clk with cpu clk.

Solution:
dynamic adjustment dsu clk with cpu clk.

Verify:
tl1_x301, verify pass

Change-Id: I75f97d9e259dee2c3067e5989b3626e38cf20337
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoclk: tl1: add dsu clock notify [1/1]
Jian Hu [Mon, 15 Apr 2019 08:54:05 +0000 (16:54 +0800)]
clk: tl1: add dsu clock notify [1/1]

PD#SWPL-2842

Problem:
when set dsu clock, it will hang up

Solution:
1.add dsu clock notify, when set rate of
dsu_fixed_sel0 clock, dsu parent should switch to
dsu_fixed_sel1 to avoid hang up.

Verify:
verify on t962x2_x301

Change-Id: I55e7a61cfb12b973f423312892700f2d08e75cbd
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agoddr: enable bandwidth and dmc monitor for tm2 [1/1]
Tao Zeng [Thu, 25 Apr 2019 02:27:09 +0000 (10:27 +0800)]
ddr: enable bandwidth and dmc monitor for tm2 [1/1]

PD#SWPL-7728

Problem:
bandwidth measure on tm2 is not enabled

Solution:
Adding port description of ddr controller for tm2
Also enable dmc monitor function for tm2

Verify:
AB301

Change-Id: I0127ac04fe29723669525f6ff1161e2fa35d69ca
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoethernet: set tx_amp according chips [1/1]
Zhuo Wang [Thu, 25 Apr 2019 09:00:46 +0000 (17:00 +0800)]
ethernet: set tx_amp according chips [1/1]

PD#SWPL-7765

Problem:
g12b revb efuse not correct

Solution:
set tx_amp with chipid to work around

Verify:
verify on g12b skt board

Change-Id: Id1babce231d866293e4de52685834834a4b65227
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agocpufreq: cpufreq register notify for cluster0 [1/1]
Hong Guo [Wed, 24 Apr 2019 06:02:01 +0000 (14:02 +0800)]
cpufreq: cpufreq register notify for cluster0 [1/1]

PD#SWPL-7707

Problem:
cpufreq register notify for cluster0 

Solution:
cpufreq register notify for cluster0 

Verify:
test pass on g12b_w400

Change-Id: Ia57f320528082c9824dd96f17714d8e636519bb4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agousb: USB keyboard not recognized at low probability [1/1]
he.he [Mon, 22 Apr 2019 10:05:47 +0000 (18:05 +0800)]
usb: USB keyboard not recognized at low probability [1/1]

PD#TV-4365

Problem:
USB keyboard not recognized after reboot repeatedly.

Solution:
Reset the reset_FS_LS_Clock_Divider bit of the usb phy.

Verify:
tl1

Change-Id: I0f4bf35be04d3aff1094bf55641348ccaca072e4
Signed-off-by: he.he <he.he@amlogic.com>
5 years agohdmirx: optimize phy pll init sequence [1/1]
yicheng shen [Wed, 24 Apr 2019 09:31:33 +0000 (05:31 -0400)]
hdmirx: optimize phy pll init sequence [1/1]

PD#SWPL-6400

Problem:
hdmirx phy clk_out is not stable,and causes long detection time

Solution:
VLSI provide a new PLL init sequence

Verify:
TL1

Change-Id: I42b98572226aafc8e61e36b6a2e5dfad078fd8fe
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agodi: when src size change, post ready size not right [1/1]
Yong Qin [Tue, 23 Apr 2019 09:33:09 +0000 (17:33 +0800)]
di: when src size change, post ready size not right [1/1]

PD#OTT-2650

Problem:
Play local video, when source window size change,
flashing occur. about two frame is not right

Solution:
There have a bug when source window size change, current
frame width was copied to post ready frame. so every
frame backup width saved in to current frame private buffer.

Verify:
TL1

Change-Id: I1b82dcfcfaeffaad6b28a7871014e12f0d157004
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodi: change clkb frq from 500 to 667 for tl1 [1/1]
Yong Qin [Fri, 12 Apr 2019 02:13:35 +0000 (10:13 +0800)]
di: change clkb frq from 500 to 667 for tl1 [1/1]

PD#SWPL-6762

Problem:
di clkb frq is not right

Solution:
change from 500 to 667

Verify:
tl1

Change-Id: I9242fec37f7527203d1d00cbcdfb79c4f09e9595
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agovideo: do not compensation when paused [1/1]
shuanglong.wang [Thu, 25 Apr 2019 07:37:38 +0000 (15:37 +0800)]
video: do not compensation when paused [1/1]

PD#SWPL-5664

Problem:
pcr not paused when netflix video non-tunnel mode pause

Solution:
do not compensation when diff between omxpts and pcr too large
Because when paused, continous compensation will lead diff
beween omxpts and pcr will alway inside pcr adjust threshold,
and pcr not set again, then pcr will increase

Verify:
verify by nts

Change-Id: Ib2acea35758d161d1e9db53dd6ff369ba7973351
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agodts: add ppmgr for g12b [1/1]
Luan Yuan [Mon, 22 Apr 2019 02:54:15 +0000 (10:54 +0800)]
dts: add ppmgr for g12b [1/1]

PD#SWPL-6901

Problem:
lack of ppmgr in g12b

Solution:
add ppmgr

Verify:
verify by g12b

Change-Id: Id6d9894d2430cf286e42c90dc340dc10fd0f37c5
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agogdc: add clk control [2/2]
Jian Cao [Fri, 12 Apr 2019 12:11:27 +0000 (20:11 +0800)]
gdc: add clk control [2/2]

PD#SWPL-7051

Problem:
reduce power consumption

Solution:
add control of clk

Verify:
Verified on g12b-w400

Change-Id: I8001db369f5e0146459cdbad262017581116a0b9
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoclk: correct HHI_APICALGDC_CNTL addr offset [1/2]
Jian Cao [Fri, 12 Apr 2019 11:37:47 +0000 (19:37 +0800)]
clk: correct HHI_APICALGDC_CNTL addr offset [1/2]

PD#SWPL-7051

Problem:
reduce power consumption

Solution:
correct HHI_APICALGDC_CNTL addr offset

Verify:
Verified on g12b-w400

Change-Id: I539ea901984256f0a6da72c7305488a725936760
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agosysrq: temporarily disable showing stacks of active CPUs [1/1]
Jiamin Ma [Thu, 25 Apr 2019 01:39:09 +0000 (09:39 +0800)]
sysrq: temporarily disable showing stacks of active CPUs [1/1]

PD#SWPL-7711

Problem:
echo l > /proc/sysrq-trigger leading to kernel crash and
lockup

Solution:
temporarily disable showing stacks of active CPUs

Verify:
U200

Change-Id: Id7f19425d754d9249b3999189dd257f8b30bae2d
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agousb: usb warning [1/1]
Yue Wang [Wed, 24 Apr 2019 08:39:21 +0000 (16:39 +0800)]
usb: usb warning [1/1]

PD#SWPL-7031

Problem:
usb warning.

Solution:
delete usb warning.

Verify:
TM2

Change-Id: I70cf1f71bfaed0e7b9b53118259e86806933281f
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agoavsync: tsync: enable the system up function [1/1]
live.li [Wed, 24 Apr 2019 08:12:26 +0000 (16:12 +0800)]
avsync: tsync: enable the system up function [1/1]

PD#TV-5140

Problem:
   when play some ts stream , the video will hold all the time

Solution:
   when the pcr is invalid ,use apts or vpts as system
   time and enable the system time up funciton

Verify:
x301

Change-Id: Iec01434ab305be1ea32e03549edd8521a8c4620d
Signed-off-by: live.li <live.li@amlogic.com>
5 years agodts: tdmb: add samesource_srcpll to dts [1/1]
Matthew Shyu [Wed, 24 Apr 2019 09:29:17 +0000 (17:29 +0800)]
dts: tdmb: add samesource_srcpll to dts [1/1]

PD#SWPL-7720

Problem:
There is no audio output on HDMI on RDK platforms

Solution:
Include samesource_srcpll to g12a_s905x2_u212_drm_buildroot.dts as
g12a_s905x2_u212_buildroot.dts

Verify:
RDK/u212

Change-Id: I663aaca2e77a3a555be7d1baea28530886c50464
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
5 years agohdmitx: add the arbitration between hdcp22 and EMP [1/1]
Zongdong Jiao [Wed, 24 Apr 2019 11:34:32 +0000 (19:34 +0800)]
hdmitx: add the arbitration between hdcp22 and EMP [1/1]

PD#SWPL-5618

Problem:
Need to optimize the arbitration between hdcp22 and EMP

Solution:
Add the arbitration between hdcp22 and EMP

Verify:
TM2/T962E2/AB311

Change-Id: Ib910ac40754e744e36ee1349de5b2c55e2a011eb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agovbi: fix vbi teletext no vcnt [1/1]
Nian Jing [Mon, 1 Apr 2019 10:38:41 +0000 (18:38 +0800)]
vbi: fix vbi teletext no vcnt [1/1]

PD#TV-3444

Problem:
vbi teletext no vcnt
vbi dump failed
adc dump failed

Solution:
set 0x126[26]=1
fix dump issue
fix adcdump issue

Verify:
test on x301

Change-Id: I7111a86f0259d2e57f06f885a1c8058d9578dc88
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agotvafe: fix pal60 afbc abnormal [1/1]
Nian Jing [Tue, 23 Apr 2019 05:55:44 +0000 (13:55 +0800)]
tvafe: fix pal60 afbc abnormal [1/1]

PD#SWPL-7057

Problem:
pal60 abnormal when enable afbc

Solution:
fix the v_active size

Verify:
test on x301

Change-Id: I02c6077ac364c4f585fb3cf5742e0b4228c39cd2
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoschedtune: fix crash when there is cpu boot fail in hmp [1/1]
Jianxin Pan [Tue, 23 Apr 2019 11:37:41 +0000 (19:37 +0800)]
schedtune: fix crash when there is cpu boot fail in hmp [1/1]

PD#SWPL-7656

Problem:
crash when there is cpu boot fail in hmp

Solution:
fix crash when there is cpu boot fail in hmp

Verify:
W400

Change-Id: I0153975593adb0bfcbc3c3bd6543f0fb2e6bf2e0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agoir: add ir learning function [1/1]
Qianggui Song [Fri, 18 Jan 2019 03:26:47 +0000 (11:26 +0800)]
ir: add ir learning function [1/1]

PD#SWPL-4130

Problem:
No ir learning function in current source code

Solution:
Provide two ways to use ir learning function
1. sysfs
/*start learning*/
echo 1 > /sys/class/remote/amremote/ir_learnning
/*get data*/
cat /sys/class/remote/amremote/learned_pulse
/*stop learning*/
echo 0 > /sys/class/remote/amremote/ir_learnning
2. ioctl
/*start/stop learnning 1/0*/
REMOTE_IOC_SET_IR_LEARING
/*get raw data*/
REMOTE_IOC_GET_RAW_DATA

Verify:
U200 and W400

Change-Id: Ibb03838402d9baa6e910b3162ffcc63b57048890
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agoemmc: Clear the value of txdelay in legacy mode on the resume process [1/1]
Long Yu [Mon, 15 Apr 2019 08:40:25 +0000 (16:40 +0800)]
emmc: Clear the value of txdelay in legacy mode on the resume process [1/1]

PD#SWPL-7181

Problem:
switch to high-speed from hs200 failed for resume process.

Solution:
set tx_delay as 0 for legacy mode.
clear cfg_cmd_setup

Verify:
verify by TL1

Change-Id: I5dbb1bbc391da864464bf137837a2b0f54ccda42
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agohdmirx: disable interrupt when suspend or shutdown [1/1]
Hang Cheng [Mon, 22 Apr 2019 12:12:08 +0000 (20:12 +0800)]
hdmirx: disable interrupt when suspend or shutdown [1/1]

PD#SWPL-7570

Problem:
there's frequent interrupt when suspend, and can't
enter suspend successfully

Solution:
disable interrupt when suspend/shutdown

Verify:
x301

Change-Id: Iad13159da8cf0d48c6374c17df957c26aa177024
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agodi: fix TL1 cave video 1080i 60hz have drawing [1/1]
Wenfeng Guo [Tue, 16 Apr 2019 08:06:37 +0000 (16:06 +0800)]
di: fix TL1 cave video 1080i 60hz have drawing [1/1]

PD#SWPL-7006

Problem:
TL1 cave video 1080i 60hz have drawing.

Solution:
dark scenes don't into pulldown32 by vlsi yanling

Verify:
TL1

Signed

Change-Id: Ib77c0f99940c416943baa9b9a8a02a059b274e5b
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agodts: flanklin bring up based on google-ref! [1/1]
qiyao.zhou [Tue, 23 Apr 2019 06:30:24 +0000 (14:30 +0800)]
dts: flanklin bring up based on google-ref! [1/1]

PD#SWPL-7184

Problem:
flanklin bring up based on google-ref.

Solution:
Modify copy file for franklin.

Verify:
verify it on franklin.

Change-Id: If55159835daf0a87439647586526f836a226504c
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
5 years agodi: small window bottom of the screen no video [1/1]
Yong Qin [Mon, 22 Apr 2019 12:18:23 +0000 (20:18 +0800)]
di: small window bottom of the screen no video [1/1]

PD#TV-4708

Problem:
small window,v scaling mode, bottom of the screen is no video.

Solution:
vline is odd, mif out is not more enouth

Verify:
verify on TL1

Change-Id: I2ac35af3632e8b14df5c773b322d4b2d64b050ba
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoaudio: disable tl1 acodec dac dapm to depop [1/1]
Shuai Li [Mon, 22 Apr 2019 07:03:46 +0000 (15:03 +0800)]
audio: disable tl1 acodec dac dapm to depop [1/1]

PD#TV-3933

Problem:
Tl1 acodec has pop sound when first sound appear.

Solution:
Disable the DAPM which disable/enable every time
start/stop the audio stream.

Verify:
Tl1 X301.

Change-Id: Iaaf7da125de513bd8297f6c6e41af0a42c9d25bd
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoatv_demod: fix audio output when adjust the input amplitude [1/1]
nengwen.chen [Tue, 23 Apr 2019 02:52:07 +0000 (10:52 +0800)]
atv_demod: fix audio output when adjust the input amplitude [1/1]

PD#TV-4901

Problem:
fix audio output when adjust the input amplitude.

Solution:
fix audio output when adjust the input amplitude.

Verify:
verified by x301

Change-Id: If08e4adff6f4d0355448687ebe6756fa2e155704
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agosupsend: update gx_pm driver [1/1]
Hong Guo [Thu, 18 Apr 2019 08:42:01 +0000 (16:42 +0800)]
supsend: update gx_pm driver [1/1]

PD#SWPL-7226

Problem:
update gx_pm driver

Solution:
update gx_pm driver

Verify:
test pass on tl1_x309

Change-Id: If078b0744cb8ce46029d77512d5755f4d40c2014
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agodebug: save irqflag locally when ftrace_ramoops io [1/1]
Jianxin Pan [Mon, 22 Apr 2019 10:57:12 +0000 (18:57 +0800)]
debug: save irqflag locally when ftrace_ramoops io [1/1]

PD#SWPL-6028

Problem:
save irqflag locally when ftrace_ramoops io

Solution:
save irqflag locally when ftrace_ramoops io

Verify:
TL1 x301

Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agovpp: use new interface to increase accuracy of ar calculation [1/2]
Brian Zhu [Thu, 11 Apr 2019 08:16:35 +0000 (16:16 +0800)]
vpp: use new interface to increase accuracy of ar calculation [1/2]

PD#OTT-2068

Problem:
When playing 1280x128 video under normal screen mode, the aspect ratio from
decodec is not accurate enough by multipling 0x100. (128x256/1280=25.6).
Dropping 0.6 will cause height losing 9 lines.

Solution:
Using new interface to pass real ar width and height following steps:
1.Set old ar variable to 0x3ff as a trigger flag.
2.set the original ar value into sar_width and sar_height of vframe

Verify:
verified on franklin

Change-Id: I8a794edd968a76f198ee9cb168a7cfb858c858f8
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoavsync: tsync: fix the avsync for ms12 [3/4]
Xiaoming Sui [Mon, 8 Apr 2019 12:04:51 +0000 (20:04 +0800)]
avsync: tsync: fix the avsync for ms12 [3/4]

PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: Ia121e57ad69c5b0d211e14bf3a61f165457e54c7
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agoavsync: spdif: fix the avsync for ms12 [1/4]
Xiaoming Sui [Mon, 15 Apr 2019 12:38:47 +0000 (20:38 +0800)]
avsync: spdif: fix the avsync for ms12 [1/4]

PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: I199383aa1c0de1b4f0ec646d9d066910b3bb2b42
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agohdmitx: move work_internal_intr to delayed_work [1/1]
Zongdong Jiao [Mon, 22 Apr 2019 09:20:09 +0000 (17:20 +0800)]
hdmitx: move work_internal_intr to delayed_work [1/1]

PD#SWPL-6894

Problem:
Queue work 'work_internal_intr' cause the hdcp22 flicker

Solution:
Move work_internal_intr to delayed_work

Verify:
G12/U212

Change-Id: Ib05c82bb66c9ad7396790d5eb237ff486c56c980
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agovdin: revert ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]
Evoke Zhang [Mon, 22 Apr 2019 10:30:02 +0000 (18:30 +0800)]
vdin: revert ignore v4l2start/stop ioctl when vdin1 used for preview [1/1]

PD#SWPL-7324

Problem:
tvafe work abnormal when use vdin1 preview

Solution:
revert the previous commit for v4l2start/stop

Verify:
x301

This reverts commit 81c1e1449c5e7362dc263bea76e134ba8fd25265.

Change-Id: I8cdefececb8b01cb86426684a6c700bc9bf8b615
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoaudio: enable hw resmaple pause thd [1/1]
Shuai Li [Mon, 22 Apr 2019 02:52:18 +0000 (10:52 +0800)]
audio: enable hw resmaple pause thd [1/1]

PD#TV-4638

Problem:
Speaker output high frequency howling
after change from pattern 615 to pattern 1 on chroma22294.
The hw resampler keeps sending noise if it has no input.

Solution:
Enable the hw resample pause thd by default.

Verify:
TL1 X301.

Change-Id: Ib6f0924025e155eaa8ba0e3681b307f7ff56b449
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agovlock: disable some log [1/1]
Yong Qin [Fri, 19 Apr 2019 11:27:56 +0000 (19:27 +0800)]
vlock: disable some log [1/1]

PD#SWPL-6994

Problem:
disable some log

Solution:
disable some log

Verify:
tl1

Change-Id: I53ceafbd35445f60d6c59ff9fd2632e8a6fc794f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>