Commit Graph

648800 Commits

Author SHA1 Message Date
nengwen.chen
a4faaf428b audio: Image signal delay of 1.5 seconds when switching to AV source [1/2]
PD#TV-3067

Problem:
Image signal delay of 1.5 seconds when switching to AV source.

Solution:
1.add av audio control for audio patch.

Verify:
verified by x301

Change-Id: I3e820923a26439b3aeb9841562b81cd6d55ed4ea
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-03 13:53:32 +09:00
Xing Wang
97ee458dc1 audio: auge: fix PAO for frhdmirx [1/2]
PD#SWPL-4010

Problem:
Not detect audio type by PAO for frhdmirx

Solution:
Add hw detect for frdhmirx PAO
audio type is checked by hw for PCM too

Verify:
x301

Change-Id: Ib60d738c69f336866250a8181609503912bf0485
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-03 13:53:32 +09:00
yujie.wu
1745b54633 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-07-03 13:53:32 +09:00
yujie.wu
63dde3fa44 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>
2019-07-03 13:53:32 +09:00
yujie.wu
ce9bfea6d3 audio: Fix Linein Not work [2/2]
PD#SWPL-4737

Problem:
  HDMI in and Line in use the same device.
  But their input I2S inskew is not same.

Solution:
  We need use separate skew setting for different
  source.

Verify:
  A113

Change-Id: I8e306af06d9c9d614c4032f2030dbedb64a7f6df
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-07-03 13:53:32 +09:00
Che Song
ff4ee86907 audio: fix tas5808 no sound [1/1]
PD#SWPL-3081

Problem:
1,lack suspend/resume function
2,lack reset pin control

Solution:
1,add  suspend/resume function
2, add reset pin control

Verify:
962x2

Signed-off-by: Che Song <che.song@amlogic.com>
Change-Id: I1cb920fdba4ad32048518fdad93e3a5a81039dd9
2019-07-03 13:53:32 +09:00
Xing Wang
dd5a34823f audio: auge: fix hw resample crash when pcm disabled [1/1]
PD#SWPL-4387

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:
x301

Change-Id: I91c30260ee825d843e8ed17304031382b42ac119
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-03 13:53:32 +09:00
Joshua Yang
6b1f6e27bd ODROID-COMMON: usb: xhci: Make sg_tablesize can be set by bootargs
Change-Id: Ic9e9db2ef3291c10bf4481791e0d38389e55f732
Signed-off-by: Joshua Yang <joshua.yang@hardkernel.com>
s922_9.0.0_20190627
2019-06-27 11:57:40 +09:00
Mauro (mdrjr) Ribeiro
63e2dc7947 ODROID-C3/N2: lock minimum cpu frequency to 667Mhz
This locks both A72's and A53's clusters to 667Mhz minimum

Change-Id: I6f5446a8f31dff0ea9c48ac03f82fad8d5d2be1c
2019-06-27 10:33:07 +09:00
Luke Go
ef4beb85a6 hdmi-cec: Apply stream path power on flag on hdmi-cec feature.
Change-Id: Id1bb59774fa3758ce7d8b0231a911915ce6b6d04
2019-06-25 15:19:09 +09:00
Joy Cho
d1ba3f9213 media: hdmitx: Update hdmi hpll generation logic of custombuilt mode
Change-Id: I0b00454c8e8aa0ac50900381386e594962de7878
s922_9.0.0_20190619
2019-06-19 09:55:08 +09:00
Kevin.Kim
7e0b84ee89 ODROID-N2:Support hdmitx audio pass-through
Change-Id: I8435a4294740dc0087881f365ed9c63ae01984fc
s922_9.0.0_20190612
2019-06-12 10:21:56 +09:00
Chris KIM
ada6f24bc1 ODROID-N2: Add CH341 driver as module.
Change-Id: I4f55abbcd7e30042b63ae7bee7126d418f3f62f5
2019-06-07 10:51:07 +09:00
Luke Go
f3908a1182 Revert "usb: revB usb EL compliance test [2/1]"
This reverts commit e067cec82a.

Change-Id: Ib25b0445f06997d80fcaef511150c51332120785
s922_9.0.0_20190509
2019-05-08 12:08:09 +09:00
Luke Go
e04351d28a config: Add apple input devices.
Change-Id: I74d265005eda3b5dd241f1ee8041c43f95b2e659
2019-05-08 09:13:12 +09:00
shihong.zheng
3705a31ad7 canvas: get canvas w/h for frame check [2/2]
PD#SWPL-1738

Problem:
support frame crc32 check and dump yuv.

Solution:
support frame check and yuv dump in media_module, add interface
to get canvas width/height.

Verify:
u212

Change-Id: Ieadc95521c4a21bec5685f8c8926d3bb2f92637b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2019-05-07 16:00:39 +09:00
Dongjin Kim
fb24051f9b ODROID-N2: config: update kernel config after new BSP (20190415)
Change-Id: I570ac2bea2f47677c712c25eaa0171d181740c4d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-05-07 16:00:39 +09:00
Dongjin Kim
f27e74f627 Revert "sm1: emmc run hs200 busmode [1/1]"
This reverts commit 3640f39081460f23efa0cf6db1d8fe19b9c6f96b.

Change-Id: If16a4473ac4d1973a83a6fed685688606ecee745
2019-05-07 16:00:39 +09:00
Zhongfu Luo
6ec8d5acf2 defendkey: TL1: support secure upgrade check [4/4]
PD#SWPL-5002

Problem:
TL1 need to support defendkey secure upgrade check

Solution:
1.modify the way of get random

Verify:
TL1 skt board verify pass

Change-Id: I76b29800de787c5e5b18e023d84c1161c9b1643a
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2019-05-07 16:00:39 +09:00
Ting Li
84e6de0781 picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>
2019-05-07 16:00:39 +09:00
huijie.huang
b46c4d7f29 power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]
PD#SWPL-4653

Problem:
optimize the S905Y2 power consumption

Solution:
limit CPU and GPU frequency, reduce hdmi tx consumption

Verify:
test pass on u221

Change-Id: I1d95068f8beb5616c9aeea91122b5233e479db8b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-05-07 16:00:39 +09:00
MingLiang Dong
c865bb1a15 hdr: TL1 HDR gamut bug fix [1/1]
PD#SWPL-5248

Problem:
1. finetune TL1 HDR.
2. workaround fix ootf overwrite
3. workaround fix gamut bug

Solution:
TL1 HDR gamut bug fix

Verify:
verify on TL1

Change-Id: Iaf9535f3b6d096967f67ba118ff54eeb2c5c01c5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-05-07 16:00:39 +09:00
Hang Cheng
52d58abb3b cec: remove func that may cause deadlock [1/1]
PD#SWPL-5836

Problem:
kernel panic when read cec reg

Solution:
remove func that might cause sleep in spinlock,
so as to avoid deadlock

Verify:
S805X-P241

Change-Id: I8394f69bdbeff6673c795a221c08ef76164c5bdb
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-07 16:00:39 +09:00
Yue Wang
d406f47cbb usb: add usb power control [1/1]
PD#SWPL-6186

Problem:
add usb power control

Solution:
add usb power control

Verify:
sm1

Test: pass
Change-Id: I6c2822105ae02f955e56dc4d64163e8e14a7e329
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-05-07 16:00:39 +09:00
Shunzhou Jiang
bdea6f593f clk: sm1: add clk measure driver [2/2]
PD#SWPL-5407

Problem:
sm1 support clk measure

Solution:
support clk measure

Verify:
ac200

Change-Id: If87c7c0bc53c8e2bcbf58a685f9ef7ac75462a70
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-05-07 16:00:39 +09:00
Nanxin Qin
b44f204a87 codec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]
PD#SWPL-4597

Problem:
Probabilistic full-screen display mosaic after seek 8K H265

Solution:
alloc mem area with the cached which from the vmap. this way
can improve the efficiency of I/O.

Change-Id: Icf18b9cd57bdc54f832aa827a535399939b28611
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-05-07 16:00:39 +09:00
Kai Song
5224481997 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>
2019-05-07 16:00:39 +09:00
Jianxiong Pan
2420920356 dts: fix the warnings when compiling the g12a device tree. [1/1]
PD#SWPL-4967

Problem:
warning when compiling the g12a device tree.

Solution:
fix the warning.

Verify:
locall.

Change-Id: I1f93c788d1914441e48305c04330701bfd718b87
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-05-07 16:00:39 +09:00
Hanjie Lin
9ded2ff78d sched: eas: add sched-energy support for gxm [1/1]
PD#SWPL-4651

Problem:
Kernel 32bit Support for S912(kernel 4.9)

Solution:
add arm/arm64 sched-energy dts

Verify:
q201

Change-Id: I13077632b730d5f2b1427b3d9bee9ff24031cfcd
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-05-07 16:00:39 +09:00
Jianxiong Pan
5ff594cf61 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>
2019-05-07 16:00:39 +09:00
Pengcheng Chen
942823e822 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>
2019-05-07 16:00:39 +09:00
Kaifu Hu
7f03f3c780 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>
2019-05-07 16:00:39 +09:00
Ruixuan Li
041a31c897 emmc: modify dtb malloc method [1/1]
PD#SWPL-3951

Problem:
buffer malloc for dtb may failed

Solution:
malloc may sleep to wait for enough memory

Verify:
pass on p212

Change-Id: Ib4c266c17140d2a6abf2aea6c02b2ff591f0fe08
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-05-07 16:00:39 +09:00
jintao xu
178edbae2f omx: add print into level control [1/1]
PD#SWPL-85

Problem:
print into level control

Solution:
print into level control

Verify:
U212

Change-Id: Ib0fdc02f26e75c20e48171bca5ebef072947d78c
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-05-07 16:00:39 +09:00
Xiaoming Sui
7b64394465 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-05-07 16:00:39 +09:00
Rongjun Chen
8d8d3bbcdf WIFI: add mem size for bcm wifi [2/5]
PD#SWPL-3773

Problem:
wifi open fail issue

Solution:
add mem size to fix wifi open fail issue

Verify:
r311

Change-Id: Iab6cd8664026639f5aae108a3bd84faa38708487
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
2019-05-07 16:00:39 +09:00
Luan Yuan
1bf5029d95 picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>

Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-07 16:00:39 +09:00
Zongdong Jiao
be7ebaa170 hdmitx: fix wrong 420 valid_mode [1/1]
PD#SWPL-6896

Problem:
In the HF1-31 Iter 03 test, the Rx EDID's max tmds clock is 600MHz,
and it doesn't claim that it supports Y420 modes. But
echo 2160p60hz,420,8bit > /sys/class/amhdmitx/amhdmitx0/valid_mode
'cat valid_mode' will get 1.

Solution:
Add Y420 8bit check

Verify:
G12/U212

Change-Id: I0a128eb33aeb2b4bcbf253eff49e9c5186386af1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-05-07 16:00:39 +09:00
Yingyuan Zhu
28bd6413a6 AC200: fix home button has no function [1/1]
PD#SWPL-6694

Problem:
home button has no function in sm1-ac200

Solution:
add home button configuration in dst node

Verify:
test pass on sm1-ac200

Change-Id: I670480c6dfd7f833e737adaddbe5981d84091203
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2019-05-07 16:00:39 +09:00
Evoke Zhang
d7bc390cfd lcd: add mipi-dsi support for sm1 [2/2]
PD#SWPL-6114

Problem:
add mipi-dsi support for sm1

Solution:
add lcd_chip_sm1

Verify:
verify by S905x3

Change-Id: I1b95676ad1300f8cbf859f89b557f680cccff117
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-05-07 16:00:39 +09:00
renjiang.han
0b99d9dde5 amvideo2: add keep last frame [1/1]
PD#OTT-2452

Problem:
Black screen in the middle of the cut.

Solution:
add keep last frame.

Verify:
on U212

Change-Id: Ib24f066e0682c7427024a74d9bf8cc9b8a310d62
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-05-07 16:00:39 +09:00
xiaoliang.wang
6e85ee7b23 device: changes for s905x3 ac213 bring up [3/3]
PD#SWPL-6970

Problem:
for s905x3 ac213 bring up, support multi-dts

Solution:
s905x3 ac213 bring up

Verify:
AC213

Change-Id: I4a22f4ce5b927db7d0197028abb12e6b669e7dc8
Signed-off-by: xiaoliang.wang <xiaoliang.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-05-07 16:00:39 +09:00
rongrong zhou
aa952593a4 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-05-07 16:00:39 +09:00
Nan Li
720742df19 emmc: modify data delay_step [1/1]
PD#SWPL-6200

Problem:
emmc calibration delay set error.

Solution:
modify delay_step to 250ps.

Verify:
verify by s912.

Change-Id: I1c0e31ae6bdda8b0f105e12f3efc81b5474376d6
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-05-07 16:00:39 +09:00
ruixuan.li
99abcb8a31 sm1: emmc run hs200 busmode [1/1]
PD#SWPL-5404

Problem:
emmc report data crc error in hs200 busmode

Solution:
set hs200 co_phase to 2 and did not reset the
hs200 co_phase and tx_phase when adjust tuning is
find the error point in sm1

Verify:
verify pass on sm1_s905d3_ac200

Change-Id: I56aa8eb666fb55641db75878a3488f66c721bd6d
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-05-07 16:00:39 +09:00
ruixuan.li
066af81bdd sm1: modify 400k co_phase [1/1]
PD#SWPL-5404

Problem:
emmc report response crc error in high speed mode

Solution:
modify 400k co_phas

Verify:
verify on ac200

Change-Id: I8bd0cbeb121e7a35a5f96791449187150e650d9e
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-05-07 16:00:39 +09:00
ruixuan.li
6806671631 sm1: disable emmc calc_f methods [1/1]
PD#SWPL-5404

Problem:
sm1 usb fixdiv mode set adjust cause error

Solution:
disable emmc calc_f in dtsi.

Verify:
test pass on sm1 ac200

Change-Id: I4459bf4faa2141a9e684b1e5bb95fb806eecbbfa
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-05-07 16:00:39 +09:00
long yu
e3204c56a8 storage: emmc: Adjust the tuning mode of controller for HS200 [1/1]
PD#SWPL-2634

Problem:
eyetest mode is a little unstable

Solution:
adjust the tuning mode of the fixed adj

Verify:
R311

Change-Id: I6112e0078bf013d2a4cfe4ff04210f1d15e3439d
Signed-off-by: long yu <long.yu@amlogic.com>
2019-05-07 16:00:39 +09:00
Xing Wang
3a2b5bb7cf audio: codec: un-mute ad82584 in default [1/1]
PD#SWPL-6810

Problem:
android version, no sound for spk
ad82584 is mute in default.

Solution:
un-mute ad82584, and add delay for de-pop

Verify:
ac200

Change-Id: Id78eb77b5e1a0ebed0a16a9b97992c6a07f78cde
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2019-05-07 16:00:39 +09:00
Yong Qin
9418989826 cec: remove print [1/1]
PD#SWPL-3750

Problem:
when debug on, too more log

Solution:
delete

Verify:
verified on android p

Change-Id: Iabaaa4fa205da5453a303c98bce8b71b55c5f77b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-05-07 16:00:39 +09:00