platform/kernel/linux-amlogic.git
5 years agoMerge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev
Jianxin Pan [Wed, 13 Mar 2019 08:25:03 +0000 (01:25 -0700)]
Merge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev

5 years agovrtc: add debug nodes, set alarm time and wake up system [1/1]
yuehu mi [Fri, 8 Mar 2019 05:52:18 +0000 (13:52 +0800)]
vrtc: add debug nodes, set alarm time and wake up system [1/1]

PD#TV-3085

Problem:
Add VRTC debug interface into TL1 Android P

Solution:
add wakeup and wakeup_time debug nodes

if you want to set alarm time, for example, set alarm wakeup time 10s
echo 10 > /sys/kernel/debug/wakeup_time

if you want to wake the system when an alarm is triggered, like this
echo 1 > /sys/kernel/debug/wakeup

Verify:
tl1_t962x2_x301

Change-Id: Ic40db0d9cb4ac2cab615206518d8db22b4095f72
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
5 years agoANDROID: sdcardfs: Change current->fs under lock
Daniel Rosenberg [Fri, 20 Jul 2018 23:11:40 +0000 (16:11 -0700)]
ANDROID: sdcardfs: Change current->fs under lock

PD#SWPL-5666

Problem:
STS test fail
testPocCVE_2018_9515

Solution:
bug: 111641492 from security

Verify:
U212

Change-Id: I79e9894f94880048edaf0f7cfa2d180f65cbcf3b
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
5 years agoaudio: fix H-voltage when tdm disable [1/1]
Shuai Li [Tue, 12 Mar 2019 06:40:20 +0000 (14:40 +0800)]
audio: fix H-voltage when tdm disable [1/1]

PD#SWPL-2952

Problem:
High voltage will cause the tdmout
data pin wrong I2S data which cause pop.

Solution:
Disable the bias of gpio.

Verify:
I2S data will be low when I2s closed.

Change-Id: If5d68e0f30df074f528dfec21cbe297795bc4ea7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoaudio: tune audio volume slew time [1/1]
Zhe Wang [Tue, 12 Mar 2019 08:36:39 +0000 (16:36 +0800)]
audio: tune audio volume slew time [1/1]

PD#SWPL-5845

Problem:
audio playback too slow

Solution:
change audio volume slew time

Verify:
Locally test on X301

Change-Id: I48c920037cac852aaa01818bb02eaa8991c1df6b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoatv_demod: Fix non standard for analog signal [1/1]
nengwen.chen [Thu, 28 Feb 2019 06:43:14 +0000 (14:43 +0800)]
atv_demod: Fix non standard for analog signal [1/1]

PD#TV-1549, PD#TV-2829, PD#TV-2830

Problem:
Fix non standard for analog signal.

Solution:
1.Add non standard config 3 for analog signal.
2.Fix non standard default value.
3.Fix audio control register an bits.
4.After correcting the frequency offset success,
 reset tuner to prevent audio from identifying errors.

Verify:
verified by x301

Change-Id: I65335dbe9ce9dc66d4ccaae3c1ff591660790616
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agomedia_module: add function to statistics drop frame on video layer [1/1]
Peng Yixin [Sat, 16 Feb 2019 02:23:57 +0000 (10:23 +0800)]
media_module: add function to statistics drop frame on video layer [1/1]

PD#SWPL-1885

Problem:
    We need a function to statistics drop frame.

Solution:
    Add a function to statistics drop frame.

Verify:
    Verified U212

Change-Id: I30b429c2f3710c5c8d0da6ec083060c9cc3e61ad
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agostorage: emmc: Compatible with G12B revA and revB [1/1]
long yu [Wed, 6 Mar 2019 06:21:48 +0000 (14:21 +0800)]
storage: emmc: Compatible with G12B revA and revB [1/1]

PD#SWPL-5575

Problem:
not Compatible with G12B version a and b

Solution:
add revA match-data

Verify:
G12B-W400 RevA and RevB

Change-Id: Iee09861f7b162ee0660ea12dab60a238a9ae6be5
Signed-off-by: long yu <long.yu@amlogic.com>
5 years agoaudio: Add PDM lane mask [1/1]
yujie.wu [Tue, 12 Mar 2019 02:58:30 +0000 (10:58 +0800)]
audio: Add PDM lane mask        [1/1]

PD#SWPL-5594

Problem:
  The PDM input channel is not always in the
  first lane, we need a mask to detect which
  lane to use

Solution:
  Add lane config in PDM module
  Add lane-mask-in in W411 config

Verify:
  W411

Change-Id: I48ca5927402282611ba5e225d75d034eeceacad6
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agoaudio: Merge code from RSR project [1/2]
yujie.wu [Fri, 8 Mar 2019 05:51:10 +0000 (13:51 +0800)]
audio: Merge code from RSR project [1/2]

PD#SWPL-5495

Problem:
  There is some improvement code on RSR
  project, we need to merge them back to
  trunk.

Solution:
  Merge the code from rsr branch

Verify:
  A113

Change-Id: I0ba11c8ff412db659ff2f10bfc00d63c49f84bb5
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agodvb: ca add DES for DVB DSC [1/2]
Zhiqiang Han [Mon, 4 Mar 2019 03:01:09 +0000 (11:01 +0800)]
dvb: ca add DES for DVB DSC [1/2]

PD#SWPL-5358

Problem:
no DES support for DVB DSC

Solution:
add DSC support for DVB DSC

Verify:
Local build on R314

Change-Id: Ia66a69b49eaaa14ad249d7b2a459f3143e813185
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
5 years agolcd: add more panel clk ss step for tl1 [2/2]
Shaochan Liu [Tue, 5 Mar 2019 02:58:00 +0000 (10:58 +0800)]
lcd: add more panel clk ss step for tl1 [2/2]

PD#SWPL-5290

Problem:
add more panel clk ss step for tl1

Solution:
change 5000ppm to 2000ppm for a step

Verify:
verify by t962x2-x301

Change-Id: Id8e6795f657cc4edf1fa0411721f741e87a0fcba
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agolcd: optimize vsync probe method, by string, not index value in dts [2/2]
Shaochan Liu [Mon, 4 Mar 2019 07:39:02 +0000 (15:39 +0800)]
lcd: optimize vsync probe method, by string, not index value in dts [2/2]

PD#SWPL-4679

Problem:
optimize vsync probe method, by string, not index value in dts

Solution:
optimize vsync probe method, by string, not index value in dts

Verify:
verify by t962x2-x301

Change-Id: Ib87a2913b7dafb3ea3c9c5a936b29939ab7ee034
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agobinder: replace vmalloc range if need more memory [1/1]
Tao Zeng [Sat, 2 Mar 2019 12:38:49 +0000 (20:38 +0800)]
binder: replace vmalloc range if need more memory [1/1]

PD#SWPL-5553

Problem:
Binder will allocate about 1MB vmalloc memory for IPC for each process,
but under code like GTVS, there are about over 100 vmalloc ranges
allocated by binder, which cause vmalloc address range not enough for
other modules.

Solution:
1, only vmalloc 4KB at first;
2, if user space need more memory, try to allocate a new vmalloc
   range with large size and move all related data to new place
3, dump vmalloc info if vmalloc failed

Verify:
P212

Change-Id: I07eea2623e5e19d410e0ff8a0bc6b11e2037023c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodts: add u212/w400 wayland+drm dts [1/4]
sky zhou [Wed, 13 Feb 2019 10:12:38 +0000 (18:12 +0800)]
dts: add u212/w400 wayland+drm dts [1/4]

PD#SWPL-3996

Problem:
no dts for u212/w400 drm.

Solution:
add drm dts for u212/w400.

Verify:
verify on u212/w400.

Change-Id: I534e3e6e847dfa10fc3515c256048ea237bdcd68
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
5 years agoosd: update osd_count according to the chip [2/4]
lingjie li [Tue, 19 Feb 2019 11:47:06 +0000 (19:47 +0800)]
osd: update osd_count according to the chip [2/4]

PD#SWPL-3996

Problem:
g12b/g12a wayland-drm device print below error
"fb: error osd index=0" while start wayland-client.
while start wayland-client.

Solution:
set to the proper osd_count

Verify:
W400

Change-Id: I3c4c6d821ff0778cd4912a67046f7dbab60be2ad
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
5 years agomtd: nand: support new slc nand [1/1]
Yi Zeng [Fri, 25 Jan 2019 11:43:53 +0000 (19:43 +0800)]
mtd: nand: support new slc nand [1/1]

PD#SWPL-4511

Problem:
1Gb SLC Nand ZDND1G08U3D-IA requested by Marketing
aka ZDND1G08U3D-xx module number in code

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG_S400

Change-Id: I4e221497b801239aa62f62f844ff247fa05925d0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
5 years agoaudio: Add tas5782 volume control [1/1]
yujie.wu [Tue, 26 Feb 2019 12:06:47 +0000 (20:06 +0800)]
audio: Add tas5782 volume control [1/1]

PD#SWPL-4734

Problem:
  There is no volume control for tas5782

Solution:
  Add ch1/ch2 volume control for tas5782

Verify:
  A113

Change-Id: I1e866a2bc024713278aea0c19cc8c91084a24b90
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agoarm: dts: x301: enable vdin0 afbc function [1/1]
Evoke Zhang [Mon, 14 Jan 2019 08:53:57 +0000 (16:53 +0800)]
arm: dts: x301: enable vdin0 afbc function [1/1]

PD#SWPL-4115

Problem:
vdin0 afbc is disabled default

Solution:
enable vdin0 afbc

Verify:
x301

Change-Id: I482514095174b36d555c2b2d6f28f3a1f34cc5ab
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoaudio: add kcontrol of EQ setting [1/2]
Zhe Wang [Tue, 26 Feb 2019 03:45:27 +0000 (11:45 +0800)]
audio: add kcontrol of EQ setting [1/2]

PD#TV-1808,TV-1809,TV-1810,TV-1811

Problem:
HW EQ on TL1 doesn't work

Solution:
Add kcontrol of EQ setting and getting

Verify:
test on X301

Change-Id: Iea1525b4a57241a99389c746c0238d96424df316
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodi: support the interlace format from vdin afbc [2/2]
Yong Qin [Thu, 28 Feb 2019 03:17:17 +0000 (11:17 +0800)]
di: support the interlace format from vdin afbc [2/2]

PD#SWPL-5205

Problem:
support afbc from vdin and decoder on tl1

Solution:
1.add this function
2.support from vdin and decoder

Verify:
tl1

Change-Id: I258d40ad5706f4a9a5749298dd9a33a9b4bbafa2
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoclkmsr: axg: delete hard code which added during bringup [1/1]
Jian Hu [Mon, 4 Mar 2019 12:01:08 +0000 (20:01 +0800)]
clkmsr: axg: delete hard code which added during bringup [1/1]

PD#SWPL-5356

Problem:
when cat clkmsr node in sysfs, i2c bus does not work

Solution:
delete hard code

Verify:
verify on axg s400

Change-Id: Ib01f251f4b77685db5a57df395f1c1a75620c07b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agoaudio: auge: modify share buffer can be occupied by later module [1/2]
Xing Wang [Fri, 8 Mar 2019 08:19:51 +0000 (16:19 +0800)]
audio: auge: modify share buffer can be occupied by later module [1/2]

PD#SWPL-5300

Problem:
share buffer is not alaway used for tdm and spdif,
but raw data needs to output by spdif.
this would lead to spk silence for dual output

Solution:
share buffer can be occupied by later module.
when tdm and spdif output in share buffer, then play spdif,
spdif will release from share buffer,
only frddr is only used for tdm, another new frddr is used for spdif.

Verify:
x301

Change-Id: Ib0c2e02e575f496c0b0911d347857ede0d0cfa14
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agovpp: support the interlace format from vdin afbc [1/2]
Yong Qin [Thu, 28 Feb 2019 03:24:59 +0000 (11:24 +0800)]
vpp: support the interlace format from vdin afbc [1/2]

PD#SWPL-5205

Problem:
Now vdin support afbc+interlace format

Solution:
In vpp, add case to support vdin afbc with interlace

Verify:
tl1_x301, verify pass

Change-Id: I6540b03a6cb5308fc2bc202069aa87234fd35df6
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agovpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
Brian Zhu [Fri, 8 Mar 2019 15:01:10 +0000 (23:01 +0800)]
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>
5 years agovpp: support 3D with afbc format [1/1]
Brian Zhu [Thu, 7 Mar 2019 09:35:36 +0000 (17:35 +0800)]
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>
5 years agoi2c: add retry-process when slave NACK. [1/1]
Daogao Xu [Thu, 28 Feb 2019 07:01:10 +0000 (15:01 +0800)]
i2c: add retry-process when slave NACK. [1/1]

PD#SWPL-4761

Problem:
When slave device is busy processing, it is unable to handle the
incoming communication attempts. i2c master have to repeatedly attemp
communication  until the slave sends an ACK after receiving its slave
address.

Solution:
add retry-process when slave NACK.

Verify:
mesonaxg_s420_32_release

Change-Id: Ieb195176cac4b80e223ea6adb502ffd3bc9ef728
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
5 years agoaudio: auge: fix spdif reset when used for share buffer [1/1]
Xing Wang [Tue, 5 Mar 2019 02:45:46 +0000 (10:45 +0800)]
audio: auge: fix spdif reset when used for share buffer [1/1]

PD#SWPL-3655

Problem:
spdif output 8 channel, channel map in wrong order.

Solution:
reset spdif before enable as soon as quickly.
modification is limited for tl1 now

Verify:
x301

Change-Id: I224032390404be85c77d7436a9be9148df09c997
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agotvin: vdin: add vdin1 scaler preview for vdin0 preview [1/1]
Xuhua Zhang [Fri, 1 Mar 2019 12:12:38 +0000 (20:12 +0800)]
tvin: vdin: add vdin1 scaler preview for vdin0 preview [1/1]

PD#SWPL-4115

Problem:
vdin preview error when input 4K

Solution:
use vdin1 as double write function

Verify:
x301

Change-Id: I4ed15dd5c445ed3c38b4a2535be075210dcbdac7
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agomedia_module: vdec [1/1]
Rong Zhang [Wed, 23 Jan 2019 12:04:29 +0000 (20:04 +0800)]
media_module: vdec [1/1]

PD#OTT-1699

Problem:
not support multi-vdec user data read

Solution:
Add getting available user data vdec interface

Verify:
Verified U212

Change-Id: I9ec65367935ac42a83808db23f2fb08f694e1483
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
5 years agocodec_mm: fixed some issues of the mem operation. [1/2]
Nanxin Qin [Wed, 30 Jan 2019 03:42:22 +0000 (11:42 +0800)]
codec_mm: fixed some issues of the mem operation. [1/2]

PD#SWPL-3593

Problem:
the memory data might be discordant.

Solution:
1. opitimize the mem mapping and change the page type to nocache.
2. modified the way of flush mem which from lowmem or highmem.

Verify:
x301

Change-Id: I82351c235915c98a86fd201c2ff3994e4d2085ec
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agohdr: used line_n_int to trigger osd rdma [2/2]
MingLiang Dong [Wed, 27 Feb 2019 07:05:40 +0000 (02:05 -0500)]
hdr: used line_n_int to trigger osd rdma [2/2]

PD#SWPL-4582

Problem:
g12b revb osd blend shift issue still exist
when hdr enable/disable

Solution:
used line_n_int to trigger osd hdr rdma,
this workaround can fix shift issue

Verify:
verify by g12b revb

Change-Id: I062c31dbb5729463bae539e2ea25281d715665c9
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoir: ir support both NEC and RC5 [1/1]
Qianggui Song [Wed, 6 Mar 2019 08:41:03 +0000 (16:41 +0800)]
ir: ir support both NEC and RC5 [1/1]

PD#SWPL-5555

Problem:
Current driver does not support both NEC and RC5

Solution:
Add a macro to depecit both NEC and RC5 state

Verify:
X301

Change-Id: I06894d033eabdb22db6e34fc2ad76e0390ef565f
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agotvafe: fix pali recognize for palcn [1/1]
Nian Jing [Thu, 28 Feb 2019 12:00:22 +0000 (20:00 +0800)]
tvafe: fix pali recognize for palcn [1/1]

PD#SWPL-3395

Problem:
recognized fsc358 flag when signal weak

Solution:
increase fsc358-flag recognized threshold
avoid fsc443 be recognized as fsc358

Verify:
verify on x301

Change-Id: I7b759bd0621c153e5abd3dee8fdf55a2426400a7
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agostorage: add sd node on tl1 ref dtsi [1/1]
Ruixuan Li [Thu, 7 Mar 2019 07:00:52 +0000 (15:00 +0800)]
storage: add sd node on tl1 ref dtsi [1/1]

PD#SWPL-5552

Problem:
Some project of tl ref need sd function

Solution:
Add sd node on tl1 ref dtsi which could instead sdio node if necessary

Verify:
tl1 ref

Change-Id: I1aca71624934fd4bcd97f8b1eb3f95f9a3dbdcf8
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agoamvecm: Local Contrast ioctrl load interface support [1/4]
Bencheng Jing [Wed, 27 Feb 2019 11:53:49 +0000 (19:53 +0800)]
amvecm: Local Contrast ioctrl load interface support [1/4]

PD#SWPL-3301

Problem:
Local Contrast ioctrl load interface support

Solution:
add Local Contrast ioctrl load interface

Verify:
tl1

Change-Id: I1c2ed1f54a1fe85b589f95fe9e49f8c469f3e80d
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoIPC: Disable ad82584f in W411 DTS [1/1]
Blance Tang [Thu, 7 Mar 2019 02:13:41 +0000 (10:13 +0800)]
IPC: Disable ad82584f in W411 DTS [1/1]

PD#SWPL-5574

Problem:
  amixer return error due to ad82584f not exist in W411 platform

Solution:
  Disable ad82584f, and remove it from TDM output list

Verify:
  Yes

Change-Id: I7fcd5ad31ba57887399c45d67b130e8c3d08e671
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
5 years agodtv_demod: TXL DTMB losing lock sometimes when playing [1/1]
zhiwei.yuan [Thu, 14 Feb 2019 11:11:36 +0000 (19:11 +0800)]
dtv_demod: TXL DTMB losing lock sometimes when playing [1/1]

PD#SWPL-4854

Problem:
TXL DTMB has losing lock issue

Solution:
set HHI_DEMOD_CLK_CNTL to 0x301 for TXL

Verify:
verified by t962_p321

Change-Id: I51b61949b5f9c96b64eae7e0054771ce44dbfd5b
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agodtv_demod: TL1 dtmb suspend hangup issue [1/1]
zhiwei.yuan [Wed, 6 Mar 2019 07:55:43 +0000 (15:55 +0800)]
dtv_demod: TL1 dtmb suspend hangup issue [1/1]

PD#SWPL-5202

Problem:
cma memory is not released when suspend

Solution:
provide suspend interface to release cma memory

Verify:
verified by t962x2_x301

Change-Id: I1d808a8a6119a2f385961c4c5bded5ab71c9c9d1
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoethernet: remove internal_phy_remove [1/1]
Zhuo Wang [Tue, 5 Mar 2019 05:45:26 +0000 (13:45 +0800)]
ethernet: remove internal_phy_remove [1/1]

PD#SWPL-5478

Problem:
system will crash rately if not init success

Solution:
remote internal_phy_remove function for chip
later then g12a

Verify:
verify on u200 board

Change-Id: Id6c3bf77c2a448aee9675deff47dc106206146d6
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agosaradc: saradc register initialization is incomplete [1/1]
Xingyu Chen [Tue, 26 Feb 2019 09:45:31 +0000 (17:45 +0800)]
saradc: saradc register initialization is incomplete [1/1]

PD#SWPL-4975

Problem:
some basic saradc registers are only initialized at bl2 stage, the ADC
value is abnormal when bl2 disable saradc init.

Solution:
to re-initialize the basic saradc registers in kernel.

Verify:
test pass on w400 and p212

Change-Id: Ie98e8789fd47cc43cafcb49d9862ccccbe1d9b66
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agoavsync: tsync: fix blackscrean issue when replayed [1/2]
Xiaoming Sui [Wed, 6 Mar 2019 02:45:32 +0000 (10:45 +0800)]
avsync: tsync: fix blackscrean issue when replayed [1/2]

PD#TV-2802

Problem:
The image is stuck or blackscrean for a few seconds
when the DTV stream is replayed.

Solution:
when audio pts and video pts discontinue, then
adjust the pcr source clock.

Verify:
X301

Change-Id: Id0a74e2d4106a30b426bfa7a4faa70451db9b79e
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agocpufreq: dts: adjust cpufreq table for tl1 [1/1]
Hong Guo [Mon, 4 Mar 2019 06:15:31 +0000 (14:15 +0800)]
cpufreq: dts: adjust cpufreq table for tl1 [1/1]

PD#SWPL-5392

Problem:
adjust cpufreq table for tl1

Solution:
adjust cpufreq table for tl1

Verify:
test pass on tl1_x301

Change-Id: I45f273778bb7b92ab4f8e012b9d33acfa456386f
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agovbi: add vbi debug print control [1/1]
Nian Jing [Wed, 27 Feb 2019 11:31:40 +0000 (19:31 +0800)]
vbi: add vbi debug print control [1/1]

PD#SWPL-5217

Problem:
vbi debug print too much

Solution:
add vbi debug print control

Verify:
verified by X301

Change-Id: If8848adb077aced68aac6b5443532037ee8dfff3
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoaudio: audio glitch at tdm startup [1/1]
Shuai Li [Fri, 1 Mar 2019 13:48:35 +0000 (21:48 +0800)]
audio: audio glitch at tdm startup [1/1]

PD#SWPL-5219

Problem:
audio glitch at tdm startup

Solution:
Pad 0 data to clear the remaining data
in the module.

Verify:
Local tested.

Change-Id: Iab526c6893a32030799567b57e05e7bb11b8fea0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agordma: used line_n_int to trigger osd, dv and hdr rdma [1/2]
Pengcheng Chen [Wed, 20 Feb 2019 01:38:02 +0000 (09:38 +0800)]
rdma: used line_n_int to trigger osd, dv and hdr rdma [1/2]

PD#SWPL-4582

Problem:
g12b revb osd blend shift issue still exist
when dv and hdr enable/disable

Solution:
used line_n_int to trigger osd, dv and hdr rdma,
this workaround can fix shift issue

Verify:
verify by g12b revb

Change-Id: Ie9747b2f7aaa3a7997245f82d15831c4c3da41cf
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovdin: optimize game mode for tl1 phase lock [1/1]
Evoke Zhang [Wed, 27 Feb 2019 03:31:18 +0000 (11:31 +0800)]
vdin: optimize game mode for tl1 phase lock [1/1]

PD#SWPL-4788

Problem:
sometimes hdmi source display broken in game mode

Solution:
use phase lock for tl1 game mode ahead 2 frames,
and ahead 1 frame for previous chips.

Verify:
x301

Change-Id: I00df9125c9ea7869ed6e111ba99a8b755c914129
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodv: remove g12b ver B from the status of SDR mode [1/1]
Yi Zhou [Mon, 25 Feb 2019 12:02:11 +0000 (20:02 +0800)]
dv: remove g12b ver B from the status of SDR mode [1/1]

PD#SWPL-4582

Problem:
g12 verA has a hardware bug.Therefore,dv cores
must keep working even if under sdr mode

Solution:
g12B verB has fixed this bug, so remove this chip id

Verify:
verify by g12b revb

Change-Id: Ice1aa1364319fa12d5a896fdfd106450f1a04d3d
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoosd: add g12b revb to check osd shift workaround [1/1]
Pengcheng Chen [Mon, 14 Jan 2019 09:07:48 +0000 (17:07 +0800)]
osd: add g12b revb to check osd shift workaround [1/1]

PD#SWPL-4582

Problem:
g12b revb fix osd blend shift issue

Solution:
add g12b revb to remove shift workaround

Verify:
verify by g12b revb

Change-Id: I6cefba0b5b5cce35d928edafdc359adff0165866
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoaudio: auge: fix spdifout clk for share buffer [1/1]
Xing Wang [Fri, 1 Mar 2019 08:29:31 +0000 (16:29 +0800)]
audio: auge: fix spdifout clk for share buffer [1/1]

PD#SWPL-4278

Problem:
spdif out clk is related to tdm clk for share buffer.
For play raw data 32k/44.1k, it's not correct for spdif out clk.

Solution:
separate spdif out clk and tdm clk

Verify:
x301

Change-Id: Ie6e3d7413d9577c9c80ea90e8b1f9ff4bf3eefcf
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agoamlvideo2: add port_type for TL1 [1/1]
Guosong Zhou [Fri, 18 Jan 2019 13:30:02 +0000 (08:30 -0500)]
amlvideo2: add port_type for TL1 [1/1]

PD#SWPL-4080

Problem:
tl1 video only port_type changed

Solution:
add port_type for tl1

Verify:
verify by tl1

Change-Id: I73e656703509a507d24f5febe26ab425cf69b61b
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agostorage: emmc: Add HS400 busmode support for G12B-RevB [1/1]
long yu [Thu, 21 Feb 2019 07:22:01 +0000 (15:22 +0800)]
storage: emmc: Add HS400 busmode support for G12B-RevB [1/1]

PD#SWPL-5040

Problem:
not support HS400 busmode

Solution:
add HS400 busmode support for G12B-RevB

Verify:
T962X-R311,TL1-T962X2_X301,G12B-W400

Change-Id: I11a1f47b9473fa341c7d754a51d6e270551758a7
Signed-off-by: long yu <long.yu@amlogic.com>
5 years agovpp: sr: correct the sr core0 enable switch operation [1/1]
Brian Zhu [Thu, 28 Feb 2019 19:16:45 +0000 (03:16 +0800)]
vpp: sr: correct the sr core0 enable switch operation [1/1]

PD#SWPL-5113

Problem:
SR core0 enable switch register is latched as default. It
will cause the screen flicker when operating this bit in vsync.
Because the frame size will be out of sync with back-end module.

Solution:
1. For g12a, no latch ctrl. So did not disable sr core2 enable bit.
2. For g12b/tl1, disable the latch function.

Verify:
Verified on U212/w400/x301

Change-Id: I54027b71ef8a6066004b3bd32ed1633b4bfa351c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodts: add amlvideo2.0/2.1 for tl1 [1/1]
liangzhuo.xie [Thu, 10 Jan 2019 03:13:44 +0000 (11:13 +0800)]
dts: add amlvideo2.0/2.1 for tl1 [1/1]

PD#SWPL-4080

Problem:
add screen capture for tl1

Solution:
add amlvideo2.0/2.1 on dts

Verify:
verify by tl1

Change-Id: I0ded6c995c6306b844cc87539443af6822f6c7f2
Signed-off-by: liangzhuo.xie <liangzhuo.xie@amlogic.com>
5 years agopinctrl: fix tl1 bt656 wrong configuration [1/1]
Qianggui Song [Thu, 28 Feb 2019 02:55:32 +0000 (10:55 +0800)]
pinctrl: fix tl1 bt656 wrong configuration [1/1]

PD#SWPL-5360

Problem:
According to TL1-core-pin-mux-register-spec.xlsx:
bt656 pins function number is 3 but not 2.

Solution:
bt656 func change 2-->3

Verify:
TL1-sktboard

Change-Id: I740e0a446ef2b6018b2eca706548148b8c9d1156
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agodv: hang when home during DoVi playback [1/1]
Yi Zhou [Wed, 13 Feb 2019 02:34:30 +0000 (10:34 +0800)]
dv: hang when home during DoVi playback [1/1]

PD#SWPL-4406

Problem:
SDR meta size > 0 during DoVi to SDR transition

Solution:
fixed SDR meta size to 0 for SDR

Verify:
u212

Change-Id: I92129163da0df9c81bb508ce56b78268fbd87a2e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agodts: g12b: modify sched-energy dts for w400 revision-b [1/1]
Hanjie Lin [Tue, 26 Feb 2019 06:57:44 +0000 (14:57 +0800)]
dts: g12b: modify sched-energy dts for w400 revision-b [1/1]

PD#SWPL-5020

Problem:
modify sched-energy dts for w400 revision-b

Solution:
modify dts

Verify:
local.

Change-Id: I6686abc10bf07ec0e601eb9a72b7657ca3e1d991
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agodts: add new frequency for A53 core at all g12b RevB dts [1/1]
pan.yang [Mon, 4 Mar 2019 07:29:15 +0000 (02:29 -0500)]
dts: add new frequency for A53 core at all g12b RevB dts [1/1]

PD#SWPL-5020

Problem:
need 1.9G for A53 core in g12b RevB.

Solution:
add 1.9G frequency for A53 core in RevB dts.

Verify:
local test.

Change-Id: Ic4085c05b3b9d18f759720e3d268d5e4629faba7
Signed-off-by: pan.yang <pan.yang@amlogic.com>
5 years agotsync: do not operate tsync_mode_switch before first video toggled [1/1]
Yingwei Long [Thu, 28 Feb 2019 12:01:24 +0000 (20:01 +0800)]
tsync: do not operate tsync_mode_switch before first video toggled [1/1]

PD#SWPL-5131

Problem:
Some stream in tunnel mode, first audio pts is large than
AV_DISCONTINUE_THREDHOLD_MAX(60s). In audio_hw it will check pcr and
apts diff, so large difference between pcr and apts will lead sync mode
from amster to vmaster(egg:SYNC-HEVC-59FPS-DDP51)

Solution:
do not operate tsync_mode_switch before first video toggled

Verify:
verify by franklin

Change-Id: Icec2de71ea8f838146444aa3ea880f76ed8e0f13
Signed-off-by: Yingwei Long <yingwei.long@amlogic.com>
5 years agodvb: support swdemux [3/3]
Chuangcheng Peng [Tue, 26 Feb 2019 03:31:36 +0000 (11:31 +0800)]
dvb: support swdemux [3/3]

PD#SWPL-2788

Problem:
   support 4 demux at same time.

Solution:
   support swdemux and swdsc.

Verify:
   verify at r311 in android p.
support:
1.separte from cpu/platform, it add varible that may change

Change-Id: I580fa14133f20ddd71674aeb6963aebb44421f6d
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
5 years agodi: aptimise di flow, add some protection [1/1]
Yong Qin [Tue, 8 Jan 2019 09:02:34 +0000 (17:02 +0800)]
di: aptimise di flow, add some protection [1/1]

PD#SWPL-3976

Problem:
To prevent “stall when access DDR through memory interface”

Solution:
1.aptimise NRWR register access flow
2.add arb on/off and status check
3.add reset protect
4.add nr_en disable before arb status check
5.add nr_write_done sel
6.modify VPU_WRARB_MODE_L2C1 from vlsi feijun's suggest

Verify:
tl1, txlx

Change-Id: Ifb0f4f0502d957ffb2b07805575c27f4166d5717
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agolcd: optimize vbyone auto recovery with hw filter [1/1]
Evoke Zhang [Wed, 27 Feb 2019 08:27:51 +0000 (16:27 +0800)]
lcd: optimize vbyone auto recovery with hw filter [1/1]

PD#SWPL-5172

Problem:
vbyone stable is easily affected by ESD

Solution:
increase hw filter time to anti ESD after vbyone stable,
but lower the hw filter time when vbyone training,
to avoid side effect to vbyone fsm working.
only support in TL1.

Verify:
x301

Change-Id: If8a8b14a47262abd682f5c95185e82cf3c0f58f2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoosd: add afbc source crop support [2/2]
Pengcheng Chen [Tue, 26 Feb 2019 10:51:50 +0000 (18:51 +0800)]
osd: add afbc source crop support [2/2]

PD#OTT-2168

Problem:
media control bar can't displayed because afbc source crop not support

Solution:
add afbc source crop support

Verify:
verify on raven

Change-Id: Ib1f925aeea12ba18d8f976aba8c84f0738c41293
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovpp: refresh the vd/osd blend ctrl when enable/disable video [1/1]
Brian Zhu [Sat, 2 Mar 2019 12:52:35 +0000 (20:52 +0800)]
vpp: refresh the vd/osd blend ctrl when enable/disable video [1/1]

PD#SWPL-4932

Problem:
The vd/osd blend ctrl is not correct when disable video

Solution:
Refresh the vd/osd blend ctrl for that case

Verify:
Verified on tl1

Change-Id: I6a7bfc58c810279cdfbf55f3d6a51e94890b4899
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoppmgr: use light reg for video decoder local reset [1/1]
Hui Zhang [Fri, 1 Mar 2019 01:02:26 +0000 (09:02 +0800)]
ppmgr: use light reg for video decoder local reset [1/1]

PD#SWPL-5014

Problem:
ppmgr provider error sometimes in long time run under poor signal

Solution:
use light reg for video decoder local reset

Verify:
X301

Change-Id: I1500c9ddfdce76b3e9cb2b24a35cdee765f82d5f
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
5 years agodi: TL1 enable lmv_lock_win_en cause crash [1/1]
zhiwei.yuan [Thu, 28 Feb 2019 07:30:09 +0000 (15:30 +0800)]
di: TL1 enable lmv_lock_win_en cause crash [1/1]

PD#SWPL-4999

Problem:
use vmalloc in interrupt context

Solution:
move di_map to cma allocate function(kernel thread)

Verify:
verified by t962x2_x301

Change-Id: I8cf8d9caf9703ba039b32da98d2382a4c875de30
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agocodec_mm: Fix cma clear and rebuild map for codec_mm. [1/1]
Kai Song [Wed, 13 Feb 2019 02:12:39 +0000 (10:12 +0800)]
codec_mm: Fix cma clear and rebuild map for codec_mm. [1/1]

PD#172483

Problem:
To avoid A73 core speculative data loading from protected
memory, which triggers SError fault, the mapping of the
protected region should be cleared. In codec_mm driver, the
page structure pointer used to clear the mapping is wrong.
Although the memory is allocated from CMA, because we are
using CMA_res mode the address from CMA_res_pool is actually
a physical address, similar as reserved memory case. As a
result, the mapping to protected address is not cleared.

Solution:
1.Add "mem->from_flags ==
  AMPORTS_MEM_FLAGS_FROM_GET_FROM_CMA_RES" case processing.

Verify:
Run YTTV and there is no SError crash after the fix.

Change-Id: Ia912337c1d7d5a55800fc55ad1d61016f9710f4d
Signed-off-by: Kai Song <kai.song@amlogic.com>
5 years agoethernet: set RX delay for exphy and leds [1/1]
Zhuo Wang [Fri, 1 Mar 2019 06:35:34 +0000 (14:35 +0800)]
ethernet: set RX delay for exphy and leds [1/1]

PD#SWPL-5295

Problem:
add RX delay for 8211f and add led setup interface

Solution:
tuning delay and leds

Verify:
verify on u200 board

Change-Id: I45e855894d570fdd976f90fd8f03151ad52a3683
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agosdio: set sdio hs mode co_phase [1/1]
Nan Li [Wed, 27 Feb 2019 06:16:44 +0000 (14:16 +0800)]
sdio: set sdio hs mode co_phase [1/1]

PD#SWPL-5206

Problem:
Setup time in sdio highspeed mode of txlx is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
r321

Change-Id: I3e5a1bca335faea6397513de772d3ee35ea76d40
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agosdio: set sdio hs mode co_phase [1/1]
Nan Li [Tue, 26 Feb 2019 02:19:07 +0000 (10:19 +0800)]
sdio: set sdio hs mode co_phase [1/1]

PD#SWPL-5152

Problem:
Setup time in sdio highspeed mode of g12a is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
u212

Change-Id: Ifc4576ce83c810c2ae5cbd57fe53d12959a9acca
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agousb: revB usb EL compliance test [2/1]
he.he [Tue, 19 Feb 2019 06:50:29 +0000 (14:50 +0800)]
usb: revB usb EL compliance test [2/1]

PD#SWPL-4941

Problem:
EL27,28,29,31 failed in the el compliance test.
tl1 frameworks test result(USB20CV) failed.

Solution:
Change the parameters (0x10 and 0x38) of usb phy
to solve the el failed problem and modified the
dwc_otg_pcd_handle_enum_done_intr function to solve
the USB20CV failed problem.

Verify:
verify on revB

Test: Pass

Change-Id: I9d7dc6472f95c6bcdf2c031222db4fed25be8a13
Signed-off-by: he.he <he.he@amlogic.com>
5 years agoarm: dts: add tl1 skt ipa parameter [1/1]
Huan Biao [Fri, 1 Mar 2019 02:25:12 +0000 (10:25 +0800)]
arm: dts: add tl1 skt ipa parameter [1/1]

PD#SWPL-5198

Problem:
tl1 thermal cts case fail.

Solution:
tl1 add thermal dts for skt.

Verify:
tl1 skt pass.

Change-Id: Ia20ee3f346cd7f518f8481990c29b63d618cf2f4
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agoarm: dts: add ipa parameter [1/1]
Huan Biao [Thu, 28 Feb 2019 01:51:56 +0000 (09:51 +0800)]
arm: dts: add ipa parameter [1/1]

PD#SWPL-5198

Problem:
tl1 thermal cts case fail.

Solution:
tl1 add thermal dts.

Verify:
tl1 x301 pass.

Change-Id: I47f8e295f0ddc546f4540a8edd96556755ceef66
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agoamvecm: lc: add driver interface for pc tool [1/1]
Bencheng Jing [Tue, 15 Jan 2019 05:37:44 +0000 (13:37 +0800)]
amvecm: lc: add driver interface for pc tool [1/1]

PD#SWPL-3300

Problem:
local contrast interface for pc tool

Solution:
add driver interface for pc tool

Verify:
tl1

Change-Id: I874ebc6c234f1030fa64a48033580af644550048
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoCPUFREQ: Setting different cpufreq tables according to efuse information. [1/1]
Hong Guo [Mon, 14 Jan 2019 07:53:22 +0000 (15:53 +0800)]
CPUFREQ: Setting different cpufreq tables according to efuse information. [1/1]

PD#SWPL-4035

Problem:
Setting different cpufreq tables according to efuse information.

Solution:
Setting different cpufreq tables according to efuse information.

Verify:
g12a_u200, verify pass

Change-Id: I1bf571f332244f5727ef3cd8743f215f71248146
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoreboot: get corrent reboot reason in system panic [1/1]
Hong Guo [Fri, 22 Feb 2019 09:18:35 +0000 (17:18 +0800)]
reboot: get corrent reboot reason in system panic [1/1]

PD#TV-2272

Problem:
can't get corrent reboot reason in system panic

Solution:
get corrent reboot reason in system panic

Verify:
test pass on T962x2_x301

Change-Id: If0fc95c2807d89542b4ccbc8e3709be20f17b03b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agolcd: optimize unifykey read flow to avoid crash [1/1]
Evoke Zhang [Thu, 10 Jan 2019 14:21:01 +0000 (22:21 +0800)]
lcd: optimize unifykey read flow to avoid crash [1/1]

PD#SWPL-4682

Problem:
lcd wait unifykey init timeout and read unifykey will crash

Solution:
incrase wait unifykey init time, and add read protection

Verify:
x301

Change-Id: Ib86a2b3b0c6c1491606404358420fd213dcfdaa8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovout: add dummy_panel display mode [1/1]
Evoke Zhang [Thu, 21 Feb 2019 04:23:45 +0000 (12:23 +0800)]
vout: add dummy_panel display mode [1/1]

PD#SWPL-5017

Problem:
need support dummy lcd for viu1

Solution:
add dummp_panel display mode.
when need viu1 + viu2 -> encl, and show viu2 data,
you can use below setting:
echo dump_panel >/sys/class/display/mode
echo panel >/sys/class/display2/mode

Verify:
x301

Change-Id: I8a7fb52e2272fc8f71d682424ff20dc37f02b726
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodeinterlace: fix 480i error into pulldown [1/1]
Wenfeng Guo [Wed, 20 Feb 2019 08:20:10 +0000 (16:20 +0800)]
deinterlace: fix 480i error into pulldown [1/1]

PD#TV-1949

Problem:
480i error into pulldown (by yanling)

Solution:
1. add flm22_comlev3 (by yanling);

Verify:
tl1 txlx

Change-Id: Ib5c168deb1327df0e803831dcf9f13e05faaa915
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agovdin: fix snowflake bottom screen [1/1]
Nian Jing [Mon, 25 Feb 2019 06:38:27 +0000 (14:38 +0800)]
vdin: fix snowflake bottom screen [1/1]

PD#SWPL-5129

Problem:
cut window need restore when nosignal

Solution:
restore cutwin when nosignal

Verify:
verified by r341

Change-Id: If18dbd18df11cce5d1ddb99ee266901b75b065b3
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agotvafe: optimize stable time on manual setting [1/1]
Nian Jing [Thu, 21 Feb 2019 12:17:07 +0000 (20:17 +0800)]
tvafe: optimize stable time on manual setting [1/1]

PD#SWPL-5052

Problem:
optimize swith channel time

Solution:
lower wait time on manual colorfmt setting
stable time optimized from 500ms -> 300ms

Verify:
x301

Change-Id: I7e7d711d1c3ab0630d41e933c53ce34d0025e860
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agomailbox: mailbox: add chip performance info read from efuse [2/2]
Shunzhou Jiang [Wed, 9 Jan 2019 09:42:52 +0000 (17:42 +0800)]
mailbox: mailbox: add chip performance info read from efuse [2/2]

PD#SWPL-4035

Problem:
cpu driver need read efuse data

Solution:
add interface to read data

Verify:
g12a_skt

Change-Id: Ia5d74c3fa057d06426b4277652e508714400a30f
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agoosd: move wait hw vsync for afbc when phy_addr==0 only before chip g12A [1/1]
Pengcheng Chen [Tue, 26 Feb 2019 09:08:35 +0000 (17:08 +0800)]
osd: move wait hw vsync for afbc when phy_addr==0 only before chip g12A  [1/1]

PD#SWPL-5148

Problem:
bootvideo stuck when starting to play

Solution:
wait hw vsync for afbc when phy_addr==0 only before chip g12A

Verify:
tl1

Change-Id: I883c8f6699729854a852fc70c22b5629aa025c60
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodevice: amlogic: Add config for dtv tuner si2169 [2/3]
Yinming Ding [Thu, 14 Feb 2019 05:59:19 +0000 (13:59 +0800)]
device: amlogic: Add config for dtv tuner si2169 [2/3]

PD#SWPL-2763

Problem:
Add config for dtv tuner si2169

Solution:
Add dtv tuner si2169 as default
Temp disable spdif pin mux and uart_A because GPIO conflict

Verify:
Verified by R314

Change-Id: I2557043e9d34ef8db8048eab9cd53d04c26c29c4
Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
5 years agohdmirx: fix hdmirx compatibility issue [1/1]
yicheng shen [Wed, 20 Feb 2019 08:21:33 +0000 (03:21 -0500)]
hdmirx: fix hdmirx compatibility issue [1/1]

PD#SWPL-4261

Problem:
1.black screen(timing info error);
2.74.5m not stable
3.nvidia 4k420 10bit noisy dot

Solution:
1.update timing stable judgement logic;
2.update phy setting;
3.add 340-525m bandwidth phy setting

Verify:
TL1

Change-Id: I3e47361af70cfff67a84daa8f768f3e0da3bce48
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agodts: Add new dts files for S400 SBR [1/3]
bing.jiang [Wed, 23 Jan 2019 01:35:18 +0000 (09:35 +0800)]
dts: Add new dts files for S400 SBR [1/3]

PD#SWPL-4435

Problem:
    adapt Soundbar solution to S400 SBR platform

Solution:
    new dts file axg_s400_v03sbr.dts changed from axg_s400_v03.dts
    add reference remote control mapping in mesonaxg.dtsi
    add tas5782m

Verify:
    S400+D621 A113D

Change-Id: I6feee3993192656eb66b7ee5a9ff6c85d22075e4
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agovbi: use dma alloc instead reserved memory [1/1]
Nian Jing [Wed, 23 Jan 2019 05:14:25 +0000 (13:14 +0800)]
vbi: use dma alloc instead reserved memory [1/1]

PD#SWPL-4510

Problem:
do not use reserved memory

Solution:
use dma_alloc_coherent instead reserved memory

Verify:
x301

Change-Id: I6498772809c8f1f48a7d4dd24aa18433eff3e618
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoaudio: auge: fix hw resample crash when pcm disabled [1/1]
huijie.huang [Tue, 26 Feb 2019 08:00:06 +0000 (16:00 +0800)]
audio: auge: fix hw resample crash when pcm disabled [1/1]

PD#SWPL-3365

Problem:
system would reboot when carshed by hw resample

Solution:
actrl of toddr is modified to null pointer, so it leads to crash.
fix to pass toddr pointer to function, not fetched by resample module.

Verify:
TL1 socket board

Change-Id: I9227ef2e1ca225e72b0408bc694e6a20d623c8a9
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
5 years agoclk: g12a/g12b: fix syspll overflow when freq larger than 2.1g [1/1]
Shunzhou Jiang [Fri, 22 Feb 2019 09:18:36 +0000 (17:18 +0800)]
clk: g12a/g12b: fix syspll overflow when freq larger than 2.1g [1/1]

PD#SWPL-5076

Problem:
syspll overflow

Solution:
div 1000 when round rate

Verify:
test pass on g12a skt/w400

Change-Id: I021a1e8fd1280b27e21e5b4c8983b91fb89e84ba
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agoemmc: change the g12a portc emmc hardware reset pin. [1/1]
Qiang Li [Thu, 17 Jan 2019 05:47:23 +0000 (13:47 +0800)]
emmc: change the g12a portc emmc hardware reset pin. [1/1]

PD#SWPL-4276

Problem:
g12a portc emmc hardware reset pin is error.

Solution:
change the g12a portc emmc hardware reset pin.

Verify:
g12a_u200

Change-Id: Ifd3be5ae9f19eae9241b21faeceffc07aa70ce86
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
5 years agoemmc: change the tl1 portc emmc hardware reset pin. [1/1]
Qiang Li [Thu, 17 Jan 2019 06:19:32 +0000 (14:19 +0800)]
emmc: change the tl1 portc emmc hardware reset pin. [1/1]

PD#SWPL-4276

Problem:
Tl1 portc emmc hardware reset pin is error.

Solution:
change the tl1 portc emmc hardware reset pin.

Verify:
X301_T962X2

Change-Id: I133d35a62002410866fe535ca2016b63878392fd
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
5 years agoatv_demod: Tuner crashes easily when fast finetune [1/1]
nengwen.chen [Mon, 25 Feb 2019 02:26:58 +0000 (10:26 +0800)]
atv_demod: Tuner crashes easily when fast finetune [1/1]

PD#SWPL-4421

Problem:
Tuner crashes easily when fast fine tune

Solution:
Delay afc work to prevent tuner crash

Verify:
verified by x301

Change-Id: I011f7c3f71a30f95a9b7aa371d5fabe71f249051
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoatv_demod: Add audio carrier offset detect [1/1]
nengwen.chen [Mon, 25 Feb 2019 02:10:27 +0000 (10:10 +0800)]
atv_demod: Add audio carrier offset detect [1/1]

PD#TV-2564

Problem:
Torture room teset report SND0810 sound carrier deviation

Solution:
Add audio carrier offset detect

Verify:
verified by x301

Change-Id: I2d715891fb268452f95e05f998864e9b7321ff38
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agovlock: add phase lock function [1/1]
Yong Qin [Wed, 30 Jan 2019 06:45:25 +0000 (14:45 +0800)]
vlock: add phase lock function [1/1]

PD#SWPL-3644

Problem:
new feature on tl1

Solution:
add function

Verify:
verified on tl1 android p

Change-Id: I964054512f59a98f03d20df11b8c63d6802744d5
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodv: dolby vision support on t962x [1/1]
Kaifu Hu [Thu, 20 Dec 2018 05:20:53 +0000 (13:20 +0800)]
dv: dolby vision support on t962x [1/1]

PD#SWPL-3318

Problem:
Android P not support dolby vision on t962x

Solution:
Porting code support dolby vision

Verify:
t962x/r311

Change-Id: I85afd05d2cb21a7105ea345f07e7e581bba5e927
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agoclk: g12a/g12b: update pcie clk parameter for jitter [1/1]
Shunzhou Jiang [Fri, 1 Feb 2019 01:45:46 +0000 (09:45 +0800)]
clk: g12a/g12b: update pcie clk parameter for jitter [1/1]

PD#SWPL-4745

Problem:
update pcie parameter for jitter

Solution:
clear pcie clk parameter

Verify:
test pass on g12a skt/w400

Change-Id: I354d643c412c37fb6c99fc49ac5bd70ab12be008
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agoclk: g12a: clear pcie cntl5 for save power [1/1]
Shunzhou Jiang [Thu, 24 Jan 2019 01:46:06 +0000 (09:46 +0800)]
clk: g12a: clear pcie cntl5 for save power [1/1]

PD#SWPL-4583

Problem:
cntl5 caused power increase

Solution:
clear pcie cntl5 when pcie clk disabled

Verify:
test pass on g12a skt

Change-Id: I495590af2ccb81eb5ae90c86008679def8673a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agodts: fix amlogic-dt-id error in g12b dts. [1/1]
Jianxiong Pan [Mon, 25 Feb 2019 08:41:15 +0000 (16:41 +0800)]
dts: fix amlogic-dt-id error in g12b dts. [1/1]

PD#SWPL-5020

Problem:
amlogic-dt-id error in g12b dts.

Solution:
specify amlogic-dt-id by dts name.

Verify:
local test.

Change-Id: I11a737ec61221c2dc9fcd4e3761c380ac5b5044b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoprintk: fix print_time bug when run dmesg [1/1]
Jianxiong Pan [Fri, 15 Feb 2019 12:07:42 +0000 (20:07 +0800)]
printk: fix print_time bug when run dmesg [1/1]

PD#SWPL-4900

Problem:
printk_prefix() passes NULL buf to print_time() to get the length of
the time prefix; when printk times are enable, the current code just
return "snprint(NULL, 0, "[%5lu.000000]", (unsigned long)ts)"
but in the SMP case, we add cpu core id at the end of time prefix, the
format is "[%5lu, %06lu@%d]", this gives a wrong size(shorter).

this will make buf get out of boundary, when run dmesg.

Solution:
replace [%5lu.000000] with [%5lu.000000@0]

Verify:
g12a-u200

Change-Id: Ic74b9f466b5af5aac7e6569a1afc7a46d9594050
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoaudio: Add binv setting [1/2]
yujie.wu [Fri, 22 Feb 2019 05:47:22 +0000 (13:47 +0800)]
audio: Add binv setting [1/2]

PD#SWPL-4733

Problem:
  The Speaker has noise

Solution:
  The binv is not correct for TDM out c,
  we will use amixer to set it

Verify:
  A113

Change-Id: I7c8af8e00e3c8834533347947630a6944b7e2136
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>