Commit Graph

648879 Commits

Author SHA1 Message Date
Bencheng Jing
ac2f0e9134 mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-19 16:21:58 +08:00
Jihong Sui
49ebee23b4 deinterlace: increasing protection for unreg [1/2]
PD#SWPL-10149

Problem:
random crash when stress test

Solution:
1. delete recycle keep buff when bypass;
2. adjusting judgment timing about pre_de_buf_config;

Verify:
TL1

Change-Id: I7b0716ce35234d2342cdc13fcf0d51211f579d13
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-19 11:03:32 +08:00
Jian Hu
a01c47d4db clk: sm1: fix cpu clock hangup [1/1]
PD#SWPL-10033

Problem:
it will hangup when play video

Solution:
using the origin clk-mux ops to register cpu clock

Verify:
test passed on sm1

Change-Id: I1a21eb28d8af3d68a70c89c37fff857fb416c9a8
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-07-18 09:48:23 +08:00
Gongwei Chen
cea71d4c3d dts: gpio keypad in u202 [1/2]
PD#SWPL-11212

Problem:
The physical keys are not working

Solution:
add gpio keypad in u202

Verify:
Verify by Android P u202

Change-Id: I0c97d2ffd7f8712b4584c81b1b9007f45755ec7c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-07-17 16:22:10 +08:00
MingLiang Dong
241390faa6 hdr: fix sm1 hdr color abnormal [1/1]
PD#SWPL-7932

Problem:
sm1 play hdr video, color abnormal

Solution:
cgain coef1 set according to bitdepth

Verify:
verify on sm1

Change-Id: Ibef6e127dde57d47f9b9ec7a4233ee10fe8539d5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-07-17 14:07:31 +08:00
yao liu
beea1b1d18 dolby: fix 5008 crc error [1/1]
PD#SWPL-10487

Problem:
1.tb39 new case 5008, dm version is 3,
core3 raw_metadata overflow
2.core3 raw_metadata 207 overwrite core3 clkgate_ctrl
and core3 swap_ctrl0 andsawp_ctrl1 reg.

Solution:
1.Increase raw_metadata size to 512
2.Force dv_mode to DOLBY_VISION_OUTPUT_MODE_IPT, output
ipt444 12bit for 5008.
3.Dont set core3 metadata reg when scramble disabled or
metedata size > 204

Verify:
verified on sm1

Change-Id: I459736eb42eb14fe3fe0dc054eb6693c88967741
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-16 14:04:15 +08:00
Jihong Sui
492f54d8d3 deinterlace: process prog 420 as 422 [1/1]
PD#SWPL-11051

Problem:
Abnormal display of red subtitles

Solution:
process prog 420 as 422

Verify:
tl1

Change-Id: I46e0af178d6d87fc3a815f70c5a84d0f80772b6c
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-15 13:20:41 +08:00
Jianxin Pan
b875ebbc7d cpu_hotplug: fix dead lock between flush work and ipa [1/1]
PD#TV-7161

Problem:
dead lock between flush work and ipa

Solution:
fix dead lock between flush work and ipa

Verify:
TL1

Change-Id: I479869601c0816bbaeaa693a26bf606b6a168da0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-07-15 13:16:36 +08:00
Zongdong Jiao
5016c826df hdmitx: remove unnecessary rxsense check [1/1]
PD#IPTV-3767

Problem:
When plugin, this check may block EDID reading

Solution:
Remove unnecessary rxsense check

Verify:
G12/P261

Change-Id: Ida42bc6b9b17e6e9d0d177e48ce3cf33949fdf5d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-11 19:55:19 +08:00
Pengcheng Chen
1f9ef82124 osd: add viu2 support for sm1 and tm2 [1/1]
PD#SWPL-10934

Problem:
viu2 not support for sm1

Solution:
add viu2 support for sm1 and tm2

Verify:
verified on sm1

Change-Id: I3988a84b64b952a76b1b262227e11682f28c7cdd
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-11 17:16:05 +08:00
Pengcheng Chen
e561d2f89a viu2: set viu2 matrix for vinfo viu_format [1/1]
PD#SWPL-8255

Problem:
viu2 display color abnormal

Solution:
set viu2 matrix for vinfo viu_format

Verify:
w400

Change-Id: Ifbe5b85416fe31b60b1bde7cad80a4bcfd036721
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-11 16:59:47 +08:00
Zhuo Wang
92bf62f121 ethernet: enhance window function [1/1]
PD#SWPL-10876

Problem:
add del 2ns function

Solution:
add del 2ns function

Verify:
verify on u200 board

Change-Id: I949a1d85e41d0b0e03708243f9559f8de63b0e54
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-10 14:52:11 +08:00
Jihong Sui
3b1318756f deinterace: add cue init setting [1/1]
PD#SWPL-7864

Problem:
the red and blue areas of the fourth frequency band
are missing color serious

Solution:
debug by VLSI(yanling), add cue init setting;

Verify:
S905X3

Change-Id: Idc8e5e811e0f2a8195cc70ebb8df0af8f080b174
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-09 20:24:51 +08:00
Yong Qin
7fa2db93fd di: request afbc when vpp use [1/2]
PD#SWPL-6033

Problem:
afbc mode, when di bypass mode switch di path,
will cause flashing

Solution:
when mode change, request hw afbc from vpp, when idle
di use afbc, vpp need switch to none afbc mode, vf add
VIDTYPE_PRE_DI_AFBC flag for vpp use.

Verify:
tl1

Change-Id: I4aaf96044249d5b79bdc627018f0c0714c85f941
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-09 20:24:50 +08:00
Lei Qian
610bcbb24d video_sink: fix print too much issue [1/1]
PD#TV-7043

Problem:
too much kernel log cause system hang up

Solution:
protect the log by debug flag

Verify:
verify by marconi

Change-Id: I7cb2cdf5e3bee92e136d948a974d9a1240609867
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2019-07-09 20:24:49 +08:00
Brian Zhu
53e4e35613 vpp: support 3D with afbc format [1/1]
PD#TV-3042

Problem:
3D function did not support afbc format before

Solution:
Add the support case which format is afbc.

Verify:
x301

Change-Id: I38189bfa78eec6ac811fb81631514d7d7b8b3d62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

b8d9145 vpp: add interface to force non-afbc path [1/1]
c807fc4 vpp: tm2: add vd2 function for tm2 [2/2]
eea348a vpp: tm2: add vpp and sr support [1/2]
f08c28c video: Some interlace stream will stuck when pts rebound [1/1]
53b2624 amlvideo: reset video_inuse when amlvideo stop [1/1]
17cdaf3 amvideo: set black_threshold_height default 48 [1/1]
1cd025d vpp: set default aspect when the ratecontrol is zero [1/1]
58a2e8f vpp: Modify vframe epoll event [1/1]
94b0dc8 vpp: Modify vframe epoll event [1/1]
e98d6d3 video: enable pts calculation when hold video state changes [1/1]
43d30c4 vpp: add histgram test interface for vpp slt test [1/1]
2677784 amvecm: optimize amvecm update in vsync [1/1]
af78b0f vpp: increase the afbc burst len as 4 for txlx [1/1]
1ace6fc vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]
e8a3758 vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
4e6774d vpp: add black_threshold to disable video when window is too small[1/1]
3ae164f vpp: including crop info when AFBC switch to normal frame [1/1]
c67657f vpp: add the pic_mode backup to check difference [1/1]
33b1aee video: timming gets error when switching channels [1/1]
233779e vpp: add log switch in vpp_set_filters [1/1]
b00582b vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
607bc19 vpp: support 3D with afbc format [1/1]

vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]

PD#TV-3086

Problem:
3D display abnormal. The vd1 canvas1 was incorrect.

Solution:
When enabled 3D function, config vd1 canvas1 correctly

Verify:
x301

Change-Id: I201cda2f33badf1af54ab4f177a17f761c7cea8d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: add log switch in vpp_set_filters [1/1]

PD#SWPL-5942

Problem:
Too many log when DI process called the vpp_set_filters with AFBC.

Solution:
Add log switch to disable it.

Verify:
verified on X301

Change-Id: I34c8573bed78e49d27ec386279e929e617bf76d5
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

video: timming gets error when switching channels [1/1]

PD#TV-3062

Problem:
When switching channels, Hisense platform needs hold video,
and the timming obtained at this time is wrong

Solution:
because we have add hold video function, so get width and
height interface give the last video frame width and height,
and so on change the video

Verify:
X301

Change-Id: I331a4589dcb5f5785dce7eea6d8cd03c92d733d2
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>

vpp: add the pic_mode backup to check difference [1/1]

PD#TV-2929

Problem:
The pic_mode in cur_dispbuf was changed but not be detected.

Solution:
Add global pic_mode variable to check if the pic_mode in cur_dispbuf
is changed. If so, force vpp_set_filters.

Verify:
verified on x301

Change-Id: I5b95f512ad0823b031989f05526f114694887f2b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: including crop info when AFBC switch to normal frame [1/1]

PD#SWPL-6347

Problem:
When AFBC switch to normal frame, excluding the crop information, the pps
parameters are calculated with wrong input size.

Solution:
1.Add the crop information, when afbc swicth to normal frame.
2.check ratio of compress_width/width, sync to crop value

Verify:
verified on x301

Change-Id: Ib943f8a11263ce577952e589bc172d8b7bafd954
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

vpp: add black_threshold to disable video when window is too small [1/1]

PD#TV-3641

Problem:
Add new interface to disable video when window is too small

Solution:
Add the black_threshold interface to control the threshold size.
And set the default value is width=20, height=30.

Verify:
verified by x301

Change-Id: Ifeb376c2e2edbb5706b2cdc2d08421bd0086b01e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: 3d: disable crop when 3d playback or hdmi in [1/1]

PD#TV-3962

Problem:
3D mode does not support crop function

Solution:
Remove crop when 3D display.

Verify:
Verified on x301

Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

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>

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>

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>

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>

video: enable pts calculation when hold video state changes [1/1]

PD#TV-3999

Problem:
dtmb individual channel switching speed is slow,
it takes about 16s

Solution:
enable pts calculation when hold video
state changes.

Verify:
X301

Change-Id: I4c8eda3af3df894d8116461abf63c3dda45c8ce3
Signed-off-by: Rui Wang <rui.wang@amlogic.com>

vpp: Modify vframe epoll event [1/1]

PD#SWPL-8850

Problem:
too many print when channel change.

Solution:
Modify vframe epoll event flow to avoid same event.

Verify:
verify on marconi.

Change-Id: Id709439f24d3cad82df6082c477cacce1a9b9cc7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>

vpp: Modify vframe epoll event [1/1]

PD#SWPL-8850

Problem:
too many print when channel change.

Solution:
Modify vframe epoll event flow to avoid same event.

Verify:
verify on marconi.

Change-Id: Iefbd190c0280276bf941c48bf99706a0f2573df1
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>

vpp: set default aspect when the ratecontrol is zero [1/1]

PD#TV-5266

Problem:
Vpp used the wrong aspect ratio in 3D, screen mode = normal
and aspect ratio is 0 in ratecontrol variable.

Solution:
When the aspect ratio is 0, set the default value as
(height << 8) / width

Verify:
Verified by x301

Change-Id: I34f7cd3ce5ed1818d3090ebb4be934225038625e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

amvideo: set black_threshold_height default 48 [1/1]

PD#OTT-1836

Problem:
disable video when window is too small

Solution:
set black_threshold_height default 48

Verify:
U212

Change-Id: I9ed7deb54baef1c44bb9cc0c1a4d699140663864
Signed-off-by: jintao xu <jintao.xu@amlogic.com>

amlvideo: reset video_inuse when amlvideo stop [1/1]

PD#TV-6189

Problem:
video_inuse always is 1 when codec server crash

Solution:
reset video_inuse when amlvideo stop

Verify:
TL1

Change-Id: I5b1b808668e3b2fb78781a4ea1ccbaefc3507d2b
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>

video: Some interlace stream will stuck when pts rebound [1/1]

PD#TV-6236

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

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

Verify:
verify TL1

Change-Id: I7e8c12ec72d086b0516f7c7490b492e16e36e8fe
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>

vpp: tm2: add vpp and sr support [1/2]

PD#SWPL-6615

Problem:
Need vpp and sr supprt for sm2

Solution:
add support for tm2

Verify:
test pass on tm2 skt

Change-Id: I0ae2cb178fcbe047cdfec6b4e200424178993e6e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>

vpp: tm2: add vd2 function for tm2 [2/2]

PD#SWPL-6615

Problem:
Need vd2 function

Solution:
add vd2 function for tm2:
1.vd2 pps scaler
2.disable vd2 afbc

Verify:
test pass on tm2 skt

Change-Id: I7af5de741b90e443ee065218aecb823ef06d66a7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

vpp: add interface to force non-afbc path [1/1]

PD#SWPL-7035

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

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

Verify:
verified on x301

Change-Id: Ibb2b897db7d2f2c40006433d63709988992c84f1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-09 20:24:11 +08:00
apollo.ling
ace09d7eea vfm: string without null-termination [1/1]
PD#OTT-4743

Problem:
string withou null-termination

Solution:
ensure there is a null-termination in the string

Verify:
p212

Change-Id: Icfb6e39741b5d26611bbd316d6c423b8d4715105
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
2019-07-09 20:08:55 +08:00
Peng Yixin
e7751ff446 video: set pcrscr after 2 frames ready [2/3]
PD#SWPL-795

Problem:

Solution:
add a sysfs to get vframe ready count

Verify:
Verified p212

Change-Id: I92171f57d336063e4a3af751e808b4a778184fe0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-07-09 17:27:02 +08:00
Nanxin Qin
2626e304ce media: fixed some issues for the v4l2 decode. [2/2]
PD#SWPL-5314

Problem:
1. add a dummy vframe flag VFRAME_FLAG_EMPTY_FRAME_V4L.
2. add the FRAME_BASE_PATH_V4L_* for v4l2 display
3. recycle vframes when the isr recevie the empty vframe.

Solution:
1. fixed some issues for the v4l2 decode.
2. add pause and resume for v4l2 m2m job.

Verify:
todo

Change-Id: I00b44ad4d3a75f7e2167ca347562d002c2690430
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-07-08 16:07:33 +08:00
Xiaoming Sui
464a254085 avsync: tsync: fix avsync issue when streams replayed [2/2]
PD#TV-6448

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

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

Verify:
X301

Change-Id: Ic414fdc102753e1e1dcedfef2a5cb76ddddf6383
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-07-08 14:47:40 +08:00
Jian Cao
636b2b94b5 ge2d: add return value check for kstrtoint call [1/1]
PD#OTT-4875

Problem:
missing return value check for kstrtoint

Solution:
add this check for kstrtoint

Verify:
verified on g12b-w400

Change-Id: I0515b4b445c78d950201df6547e83578cac32d16
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-08 14:46:12 +08:00
jintao xu
3e18451818 amlvideo: fix panic when unreg [1/1]
PD#OTT-3420

Problem:
panic when vfm unreg.

Solution:
Add mutex in dequeue and unreg

Verify:
U212

Change-Id: I902085aed670fefb519d07ffcc3e896ec0c404dd
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-07-08 14:45:47 +08:00
deng.liu
4f1860757f common: modify the dtsi config of sm1 and tm2 [1/2]
PD#SWPL-10241

Problem:
{Score:5}{vts_r9}[S905X3] VtsHalNeuralnetworksV1_1Target module 644 fail;
v0624 new add, v0613 ok;

Solution:
npu not insmod  successfully,modify dtsi config

Verify:
Local on sm1

Change-Id: I986e37acab4a76cdf6ad52620520994193a06448
Signed-off-by: deng.liu <deng.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-06 11:51:25 +08:00
Luan Yuan
f143284220 dts: set s912 adb. [1/1]
PD#SWPL-10860

Problem:
s912 need to support adb.

Solution:
update dts

Verify:
verify by hertz

Change-Id: I085a0442d229d13d02b963c948d390920aea3dd0
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-05 19:46:51 +08:00
Jian Cao
1970b9d439 dts: add memory-region for gxm logo [1/1]
PD#SWPL-5522

Problem:
S912 display S912 Android P support for osd

Solution:
add memory-region for gxm logo

Verify:
verified on gxm-q201

Change-Id: If4efec47f939a944530ef1dc0f7a3b8abf245a47
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-05 19:33:13 +08:00
Jian Cao
86ac09ecff osd: modify VIU_MISC_CTRL1 conditions [1/1]
PD#SWPL-5522

Problem:
S912 display S912 Android P support for osd

Solution:
modify VIU_MISC_CTRL1 for gxm

Verify:
verified on gxm-q201

Change-Id: I2bccfb3fe03864e55d41ab4f9ecf4db68d9dfbea
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-05 19:33:07 +08:00
Zongdong Jiao
3227c3565d hdmitx: correct g12 rx_sense detect setting [1/1]
PD#SWPL-4684

Problem:
g12 rx_sense can't work well

Solution:
correct g12 rx_sense detect setting

Verify:
G12/U212

Change-Id: I26ae578bdf278592956dff092e60d13faf4905bf
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-05 19:20:52 +08:00
yao liu
d101704618 dolby: demo-debug.apk test fail [1/1]
PD#SWPL-10167

Problem:
Apk drop several frames at beginning, but
dolby frames are not consumed, decoder has
no idle buffers.

Solution:
Ignore drop for dual layer dolby video

Verify:
verified on u212

Change-Id: I732d82e71c190c62a14c05accea44b4c55d04239
Signed-off-by: yao liu <yao.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-05 13:50:30 +08:00
yicheng shen
c18ba28567 hdmitx: update phy setting of 3G for SM1 [2/2]
PD#SWPL-8791

Problem:
HDMITX Eye Diagram of SM1 test fail

Solution:
Optimize the PHY setting.

Verify:
SM1

Change-Id: I33d8b8a1a515fe478845287c44271524b256c5f1
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-07-03 16:54:05 +08:00
Pengcheng Chen
8b4c22dddd osd: need set_afbcd enable for dv certification [1/4]
PD#SWPL-10128

Problem:
dv certification uncorrect

Solution:
need set_afbcd enable for dv certification

Verify:
Verified on sm1

Change-Id: I141769ee1ae4b1cf224513c62b84414d0638c6f5
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-03 14:58:29 +08:00
yao liu
a9d630a070 dolby: Graphics blending tests fail when 4k output [4/4]
PD#SWPL-10128

Problem:
Osd scaling algorithm has bad effect

Solution:
Add repeat mode
echo 0 > /sys/module/fb/parameters/osd_auto_adjust_filter
echo 9 > /sys/module/fb/parameters/osd_h_filter_mode
echo 9 > /sys/module/fb/parameters/osd_v_filter_mode

Verify:
Verified on sm1

Change-Id: Ibcb3925c0c7674043e10a249c7ee7dbeb029ca93
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-03 14:58:22 +08:00
yao liu
5bffa18bc4 dolby: Graphics blending tests fail on sdr tv [3/4]
PD#SWPL-10128

Problem:
graphic max 100 is too low

Solution:
need set graphic max to 380

Verify:
Verified on sm1

Change-Id: Ibbea07439a99500bdcc051aa9ed7ea8d1ee00fc8
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-03 14:58:15 +08:00
Jianxin Pan
b94efa7776 wakeup: fix endless loop in wakeup source show [1/1]
PD#SWPL-10134

Problem:
endless loop in wakeup source show

Solution:
fix endless loop in wakeup source show

Verify:
TL1

Change-Id: If2318e31388b4a656cf8d99058f8aeaf76ff97a0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-07-03 14:55:59 +08:00
Rongjun Chen
72c3bf5be1 wifi: delate unuse file [2/2]
PD#SWPL-9659

Problem:
some file not have License

Solution:
delete unuse file and add License

Verify:
verify by einstein

Change-Id: Ia0a4eb82bc100129f71c7c88d0a403b482449314
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-07-03 14:30:38 +08:00
Zongdong Jiao
bfbda3c3e2 hdmitx: add missing pin mux for HPD [1/1]
PD#SWPL-10457

Problem:
Lack pin mux for HPD

Solution:
Add missing pin mux for HPD

Verify:
GXL/P212

Change-Id: If6ec414f03294dc8a858593294b9bb54a4f3fb21
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-03 14:22:26 +08:00
Rongjun Chen
e0505eaedc wifi: export set_usb_wifi_power [1/1]
PD#TV-2088

Problem:
wifi can not power in driver

Solution:
export set_usb_wifi_power

Verify:
franklin

Change-Id: Ic6fb75133533c395cd96e9d82f14427cf40cee96
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-07-03 11:30:15 +08:00
Hang Cheng
67b629c736 hdmitx: correct vid pll div shift preset length [1/3]
PD#SWPL-9589

Problem:
shift preset length of vid pll div is wrong

Solution:
modify shift preset length of vid pll div

Verify:
gxl-p281

Change-Id: Iac897db9d9a36e26df40e8c1ed303e02bddeb92f
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-07-02 17:17:01 +08:00
renjiang.han
111ce08241 PPMGR: modify phys_to_virt to codec_mm_vmap. [5/5]
PD#TV-2649

Problem:
Kernel panic with phys_to_virt.

Solution:
Replace phys_to_virt with codec_mm_vmap.

Verify:
on u212

Change-Id: Ib3f94f66d37463490720cd1348b4ec94ad12aa15
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-07-02 14:04:16 +08:00
huijie.huang
a2d7677c04 dts: debug: enable ftrace_ramoops for p212 [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for p212 dtbs

Solution:
enable ftrce in ramoops for p212 dtbs

Verify:
P212

Change-Id: I2a4cb76614b44b91996d33775a5f73f91e457d0e
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-07-01 19:28:20 +08:00
Zhuo Wang
4952033e4b ethernet: g12b/A exphy,change default param [1/1]
PD#SWPL-10391

Problem:
g12b revA and revB need one code for two parameter

Solution:
dts set g12b revB parameter
read chipversion,if g12b revA, change the parameter by default value

Verify:
verify on g12b w200 board,revA and revB

Change-Id: I9cc4cd6c370207dce22dd0c7df51a6c71397e235
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-01 15:47:57 +08:00
Zhuo Wang
dbc5875dc1 ethernet: add interface to delay rx/tx clk [1/1]
PD#SWPL-9720

Problem:
difference window area between chips

Solution:
add interface to custom

Verify:
verify on g12a u200 board

Change-Id: I589c890e36961f533bffae557337b24a09f1bf41
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-01 15:47:55 +08:00
Cheng Tong
662b89ff71 audio: S905X2 add clk tuning_enable control in dts [1/1]
PD#SWPL-10180

Problem:
can't enable clk tuning

Solution:
add control interface in dts to enable clk tuning
and start clk before codec init for s905x2

Verify:
verify on franklin

Change-Id: Icc97b04923bcc317b8259449ba068d1eddef0854
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-07-01 15:31:10 +08:00
yao liu
6e99ae8063 dolby: fix osd1 last line abnormal [3/3]
PD#SWPL-6807

Problem:
green line displayed when osd alpha 0xff/0x00 continuous

Solution:
close osd matrix, osd always output rgb format and
use osd1_hdr2_mat do rgb2yuv
At the same time, need disable osd1_hdr2_mtx
when dv on

Verify:
g12a/g12b/sm1

Change-Id: I1fdb11707f30a1938167b6bfc8e6ec6bce5485eb
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-06-29 12:48:44 +08:00
MingLiang Dong
c84f850db5 hdr: fix osd1 last line abnormal [2/3]
PD#SWPL-9042

Problem:
osd1 last line abnormal

Solution:
use osd1 hdr mtx workaround

Verify:
verify on TL1

Change-Id: I04b848d996d0c819c9eb841ac1da4b927b42383d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-06-29 12:48:20 +08:00
shuanglong.wang
aec735f9b2 video: move a print info to debug control [1/1]
PD#SWPL-10306

Problem:
omxpts is not update print too many

Solution:
move a print info to debug control, the condition to check
whether omxpts is not set for while is not accurate

Verify:
verify by mainline

Change-Id: I387cc6aee718182a8ff99838e9741443236dd1f9
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-06-28 11:04:01 +08:00
MingLiang Dong
12b6ef1a5e amvecm: sdr2hdr function set by uplayer, driver default disable [1/1]
PD#SWPL-4255

Problem:
UI disable SDR TO HDR, reboot BOX,
TV flicker white and then display ok when connect hdr tv

Solution:
dr2hdr function set by uplayer, kernel default disable

Verify:
verify on G12A

Change-Id: Iea5a1e0be9b5665bb7deb785b6b5faa702ef1664
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-06-28 09:45:26 +08:00
Jianxin Pan
813e74c57b dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for new tm2 dtbs

Solution:
enable ftrce in ramoops for new tm2 dtbs

Verify:
verified ok

Change-Id: Ia7ee3b11784a69ef7d6b7671f9ad75c14ae477f7
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

debug: improve ftrace_ramoops for io trace [2/2]

PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

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>

debug: do not print old_size when ftrace_size is 0 [1/1]

PD#SWPL-6028

Problem:
do not print old_size when ftrace_size is 0

Solution:
do not print old_size when ftrace_size is 0

Verify:
TL1 x301

Change-Id: I00a71c83fede14a2606c5e7eea5d8c4fdaeb5553
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>

dts: change ftrace-size. [1/1]

PD#SWPL-6028

Problem:
add ftrace-size.

Solution:
add ftrace-size.

Verify:
no.

Change-Id: I42d34edf665632dfe29d04df192964238b8e3df8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-06-27 16:37:31 +08:00
Nanxin Qin
eccd79959b media: add interface for checks the video profile. [1/2]
PD#SWPL-8648

Problem:
add interface for checks the video profile

Solution:
add interface for checks the video profile

Verify:
u212

Change-Id: I95d0df62fae2debc6c0cc5a4d2adf002122b7630
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-06-27 15:50:56 +08:00
Jihong Sui
3d56eaaa7d deinterace: add codec mm interface [1/1]
PD#OTT-3688

Problem:
add di when playing encrypted stream(DRM)

Solution:
1. add codec mm interface;
2. set flag_cma '4' in dts for codec mm;

Verify:
verified on u212

Change-Id: If969899e0d5a457a038660c22a1e85dedcfcb40b
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-06-27 13:44:42 +08:00
Zongdong Jiao
06efbfe3d7 hdmitx: fix valid_mode effects color attribute [1/1]
PD#OTT-4372

Problem:
Need add a extra hdmi_format_para for valid_mode

Solution:
Add a extra hdmi_format_para for valid_mode
Also, fix cedst_en assginment and wrong aud ACR/N parameters when
kernel bootup, need to get current vinfo then set right ARC/N.

Verify:
G12/U212

Change-Id: Ib59986d7436a578daeb7055aa41a379e9381a99b
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-06-26 15:34:34 +08:00