Commit Graph

648827 Commits

Author SHA1 Message Date
Yong Qin
291cf50feb di: play 1080i timing always print di err[1/1]
PD#SWPL-5807

Problem:
1080i always print di err,modify di pre idle register
define are wrong

Solution:
1.modify register define according g12a

Verify:
g12a

Change-Id: I13400d8b18e0e85894ba8d10afc0ae119874aab4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-14 15:12:14 +08:00
Yong Qin
030872bf3c di: 1080p,the screen display anormal [1/1]
PD#SWPL-5874

Problem:
1080p the screen display anormal

Solution:
compress mode, modify vdin frame type.

Verify:
tl1

Change-Id: Ic1ee1472105861c8debce2a1645f70ed617fd132
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-13 22:56:53 -08:00
rongrong zhou
b7da1a0d36 ptsserv: fix pts lookup fail issue [3/3]
PD#SWPL-3730

Problem:
playback not smooth

Solution:
if p2 lookup fail, set p2 = p

Verify:
  verified by x301

Change-Id: I181eae2ba40edd937df12e0925c2a55c856162ba
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2019-03-13 21:59:09 -08:00
Matthew Shyu
28018bca11 crypto: fix and enable aes dma on G12B [1/1]
PD# SWPL-4823

Problem:
1. After stack optimization, stack memory cannot be
mapped as dma buffers and thus causing crypto dma failed to
generate correct result.
2. crypto dma was not enabled on G12B

Solution:
1. Move key_iv buffer from stack to memory provided by kzalloc
2. Enable crypto dma on G12B
3. Replace module_param with debugfs
4. Replace pr_err with dev_err

Verify:
verified on G12B

Change-Id: I6de682e3d1fc141f8c6179c7d91f9b4bff165eae
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2019-03-13 18:54:20 -08:00
Evoke Zhang
b88a0a9190 lcd: add vbyone large vswing support for tl1 [1/1]
PD#SWPL-5665

Problem:
some vbyone panel need large vswing

Solution:
add large vswing support for vbyone

Verify:
x301

Change-Id: I2e0e9ab6a73dab292e104a92b341867ceb5ecdbb
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-03-13 03:54:43 -08:00
Tao Guo
76a5e27b93 debug: add atrace support [1/1]
PD#SWPL-4956

Problem:
Need atrace to debug multimedia issue

Solution:
Add atrace functions

Verify:
P212

Change-Id: I0f07387dfa35a33c25e538a474a3a12bd88d5092
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
2019-03-13 00:36:52 -08:00
Jianxin Pan
755c783ef1 Merge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev 2019-03-13 01:25:03 -07:00
yuehu mi
00caf231a9 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>
2019-03-12 23:31:04 -08:00
Daniel Rosenberg
e5805b4410 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>
2019-03-13 14:43:12 +08:00
Shuai Li
009354756a 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>
2019-03-12 21:58:44 -08:00
Zhe Wang
1670aa7274 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>
2019-03-12 17:55:42 -08:00
nengwen.chen
6cd6de0ef3 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>
2019-03-12 02:58:18 -08:00
Peng Yixin
582028581e 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>
2019-03-12 02:52:08 -08:00
long yu
0fe15fe9c8 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>
2019-03-12 02:51:10 -08:00
yujie.wu
42276afad4 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>
2019-03-12 02:37:41 -08:00
yujie.wu
e9f798ceff 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>
2019-03-12 01:19:18 -08:00
Zhiqiang Han
265251cca3 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>
2019-03-11 22:40:40 -08:00
Shaochan Liu
9cafce62c1 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>
2019-03-11 21:44:25 -08:00
Shaochan Liu
c2695dc746 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>
2019-03-11 21:30:45 -08:00
Tao Zeng
688caca498 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>
2019-03-11 21:21:22 -08:00
sky zhou
d8c8e08253 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>
2019-03-11 21:15:55 -08:00
lingjie li
c1142c9d5a 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>
2019-03-11 21:14:43 -08:00
Yi Zeng
4a8a66d7b5 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>
2019-03-11 18:37:40 -08:00
yujie.wu
485d3f167f 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>
2019-03-11 04:14:28 -08:00
Evoke Zhang
b32b869103 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>
2019-03-11 04:13:34 -08:00
Zhe Wang
ab04046551 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>
2019-03-11 01:48:59 -08:00
Yong Qin
3f4854e57d 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>
2019-03-11 01:37:25 -08:00
Jian Hu
a3fb1dc0b7 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>
2019-03-11 01:23:56 -08:00
Xing Wang
6e58c2a20d 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>
2019-03-10 23:42:27 -08:00
Yong Qin
89a190a7dc 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>
2019-03-10 23:02:24 -08:00
Brian Zhu
b00582b23b 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>
2019-03-10 23:00:38 -08:00
Brian Zhu
607bc19f48 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>
2019-03-10 22:59:23 -08:00
Daogao Xu
e2c9db9405 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>
2019-03-10 19:21:36 -08:00
Xing Wang
f1b1f034d6 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>
2019-03-08 03:34:15 -08:00
Xuhua Zhang
ded6424dee 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>
2019-03-08 01:15:07 -08:00
Rong Zhang
39600fcf02 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>
2019-03-08 00:54:39 -08:00
Nanxin Qin
4873fb8613 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>
2019-03-08 00:29:41 -08:00
MingLiang Dong
16d8d72a98 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>
2019-03-07 05:21:51 -08:00
Qianggui Song
a63ed76413 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>
2019-03-07 04:23:57 -08:00
Nian Jing
bc1350362f 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>
2019-03-07 04:23:20 -08:00
Ruixuan Li
c3cabd737e 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>
2019-03-07 04:22:28 -08:00
Bencheng Jing
877bdf598d 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>
2019-03-07 04:19:45 -08:00
Blance Tang
ff95b81bad 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>
2019-03-06 23:33:08 -08:00
zhiwei.yuan
f5a69200cf 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>
2019-03-06 21:41:55 -08:00
zhiwei.yuan
5135c1db11 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>
2019-03-06 19:30:40 -08:00
Zhuo Wang
1aa57469a9 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>
2019-03-06 19:13:22 -08:00
Xingyu Chen
d737edb3b9 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>
2019-03-06 18:12:11 -08:00
Xiaoming Sui
6b4f4ac899 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>
2019-03-06 18:08:36 -08:00
Hong Guo
2eef460c5c 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>
2019-03-06 04:10:49 -08:00
Nian Jing
deee9ec108 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>
2019-03-06 02:52:45 -08:00