Commit Graph

648605 Commits

Author SHA1 Message Date
Chris KIM
31b5cfb6d7 Revert "ODROID-COMMON: media/vout: no use of 'vout=' for display resolution"
This reverts commit 0665994b208cce865e0fde3e7da201694e421320.

Change-Id: I6ffe41a6acbdc38a738b9658bebced31de5e45bb
2019-03-15 12:21:02 +09:00
Dongjin Kim
fdbe8aafb4 Merge "remote: Add a setup of user remote wakeup decode type" into odroidn2-4.9.y-android 2019-03-14 16:31:37 +09:00
Dongjin Kim
8a6446fa7a ODROID-N2: phy/realtek: add to support Wake On Lan enable
Adding new kernel command line "enable_wol=<1|0>" will configure the WOL
features on next power off.

Change-Id: I4830aeb1651e90d4699887199000def1163fb6db
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit 22d698f4d2)
2019-03-14 15:37:07 +09:00
Joy Cho
e6c52c1843 remote: Add a setup of user remote wakeup decode type
Change-Id: Ib7bb759dfec67433b596ed64997f6894d1c7ec27
2019-03-14 10:06:40 +09:00
Chris KIM
d6c634e62f ODROID-N2: Add CONFIG_NLS_UTF8 as builtin.
Change-Id: I4b5e908ad8731ac4a14c4bda5a964e1ebd39ed54
2019-03-13 14:38:24 +09:00
Chris Kim
c1a84082ec Merge "ODROID-N2: config: enable 'CONFIG_CIFS'" into odroidn2-4.9.y-android 2019-03-13 14:29:00 +09:00
Chris Kim
f7069d049a Merge "ODROID-N2: config: refactoring kernel config" into odroidn2-4.9.y-android 2019-03-13 14:28:50 +09:00
Chris Kim
88e3d0d0fe Merge "osd/fb: set default color format for Linux" into odroidn2-4.9.y-android 2019-03-13 14:28:21 +09:00
Dongjin Kim
07c8e20d35 ODROID-N2: config: enable 'CONFIG_CIFS'
Change-Id: I76341cb0e545a7172ecdeb935525d57806339557
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-13 01:42:43 +09:00
Dongjin Kim
792a9d9f17 ODROID-N2: config: refactoring kernel config
Change-Id: I15869ea1122c32ed9710b58548ddead60aab1e83
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-13 01:42:17 +09:00
Dongjin Kim
d51cab54d9 ODROID-C3/N2: remove unsupported feature 'MEDIA_ENHANCEMENT_DOLBYVISION'
Change-Id: I8674837de099f3653d7b101c47cae012273fc8d1
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-12 18:43:11 +09:00
Dongjin Kim
fd7ffbed67 Merge "ODROID-COMMON: media/vout: add new kernel param 'cvbscable='" into odroidn2-4.9.y-android 2019-03-12 14:41:13 +09:00
Dongjin Kim
22b18be8c3 Merge "ODROID-COMMON: media/vout: no use of 'vout=' for display resolution" into odroidn2-4.9.y-android 2019-03-12 14:40:59 +09:00
Dongjin Kim
55f4b663a6 Merge "Revert "ODROID-N2: vout: fix default display init option"" into odroidn2-4.9.y-android 2019-03-12 14:40:45 +09:00
Chris KIM
f21f3382b7 ODROID-N2: Add AMLOGIC_GPIO_KEY feature.
Change-Id: I50a10a27d55a961082fda0763bab2bd94dea4157
2019-03-12 11:19:43 +09:00
Joy Cho
1613f8fa23 ODROID-N2: keyboard: add gpio power key that is set from boot.ini
Change-Id: Ic3a6152bcedf21e8600993e70394a1b894c1d212
2019-03-12 10:22:57 +09:00
Dongjin Kim
fd5b3c8c35 ODROID-COMMON: media/vout: add new kernel param 'cvbscable='
This patch is to indicate when CVBS cable is connected or not, '1' as the cable
is attached and '0' otherwise. Currently CVBS cable only can be detected by
U-boot since the detection signal can be read by ADC.

Change-Id: I8fdff0cf0a2cf2bb2a94b296a1e2e5946864513d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit 781aec7eee)
2019-03-08 13:08:08 +09:00
Dongjin Kim
aa999abb07 ODROID-COMMON: media/vout: no use of 'vout=' for display resolution
This patch is to disable kernel param 'vout=' completely and the set display
resolution with the given by 'hdmimode=' or 'cvbsmode' according to the cable
status. Since we are assuming that HDMI display is priority display device,
no matter CVBS cable is attached or HDMI cable is attached we select HDMI.

Change-Id: I76b611a4f97e4eda488232d46bbb97c9a990aa6c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-03-08 13:03:03 +09:00
Dongjin Kim
20bf25501e Revert "ODROID-N2: vout: fix default display init option"
This reverts commit 6a632040eb.

Change-Id: I7e2a668320c0bb86e4821921482ca5dab4e041f6
(cherry picked from commit b2cbc17de9)
2019-03-08 12:56:16 +09:00
Chris Kim
9e3ad1f787 Merge "ODROID-N2: audo i2s mclk set to continuous clock" into odroidn2-4.9.y-android s922_9.0.0_20190308 2019-03-08 11:04:18 +09:00
Chris KIM
43ea608c0e ODROID-N2: audo i2s mclk set to continuous clock
Change-Id: Ifd50d5b1002a1b65af68081972fe4adfc005d11e
2019-03-08 11:05:12 +09:00
Chris KIM
de348240d3 ODROID-N2: Remove CONFIG_AMLOGIC_BACKLIGHT features.
Change-Id: I95a58b780f6a7443303dadb6325295de300d2c6c
2019-03-08 11:02:11 +09:00
Chris KIM
d161dcf9f7 ODROID-N2: Remove CONFIG_AMLOGIC_LCD features.
Change-Id: I6f47a10155860146f70dd977f383608da07936b0
2019-03-08 11:02:10 +09:00
Chris KIM
8fbde42eec ODROID-N2: Add the PCF8563 RTC as builtin.
Change-Id: I99b76076162f22c26c204a7a2813e8a11c5f878b
2019-03-07 13:29:35 +09:00
Chris KIM
d2d43c22ce Revert "[TESTING] ODROID-N2: Fix 4K UI."
This reverts commit d97a43bda3.

Change-Id: I9aa196fa75e695a4f1729a62e3ea577ecb08ef49
2019-03-06 14:52:38 +09:00
Chris KIM
da04db7a46 Merge branch 'odroidn2-4.9.y-android-upstream' of ssh://git.linuxfactory.or.kr:29418/linux into odroidn2-4.9.y-android-upstream 2019-03-06 13:53:10 +09:00
Luke Go
f13b274fdb arm64/dtbs: Remove g12a_s905d2_u200 to avoid err.
Change-Id: Ide733986c2bc1dd19f7da60403da093797d172f9
2019-03-06 09:53:58 +09:00
Chris KIM
7518f56389 ODROID-N2: Change gpiomem feature by builtin.
Change-Id: I30db5332c2356e4407cb835edbd2868a940ca825
2019-03-06 09:22:32 +09:00
Chris KIM
d97a43bda3 [TESTING] ODROID-N2: Fix 4K UI.
Change-Id: I500d4b095ff2f0d66bd84336177ad91b45a5b5c9
2019-03-05 15:24:25 +09:00
Dongjin Kim
0e689ef42e ODROID-COMMON: usb3: do not reset USB hub on boot
Change-Id: I167f44ff20e35be30851e81cdd180afb5d093d29
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit 3fd41551e8)
2019-02-28 18:18:37 +09:00
Dongjin Kim
32d338926c ODROID-COMMON: rtl8211: Link/Active LED configuration
* Green - 100Mbps
  * Amber - 1000Mbps

Change-Id: Idc60ac29b5ddab39153a04564a6bb76d0ec02c17
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit e0c47aefdd)
2019-02-28 11:48:54 +09:00
Cheng Tong
ac0a0ae02f dts: g12a: add clk_81 to enable demux pcr [1/1]
PD#SWPL-4469

Problem:
dolby files have no sounds after replay

Solution:
in u212, the clk_81 is null when init, it is related
to demux pcr, so add clk_81 to enable demux pcr

Verify:
verify by franklin

Change-Id: Id862e4e8ac49c19bbd52fa6fa4831de20abad6c8
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-02-27 04:30:28 +09:00
Guosong Zhou
87abf5f105 isp: config temper buffer size in dts [1/2]
PD#SWPL-4177

Problem:
temper buffer size is a fixed value in code

Solution:
config temper buffer size from dts

Verify:
verify by w400

Change-Id: I17ef428221f149a888e0318bc27d7b7d309c00ce
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-02-27 04:30:28 +09:00
Guosong Zhou
48b683dbf8 camera: support the dvp camera [1/1]
PD#SWPL-2133

Problem:
don't support dvp camera

Solution:
add dvp camera driver

Verify:
verify by u200

Change-Id: I8517913e0c3724247b396e8d054d6a4541a1993a
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
2019-02-27 04:30:28 +09:00
Guosong Zhou
340349c245 camera: add dvp camera [1/1]
PD#OTT-1204

Problem:
don't support dvp camera

Solution:
add dvp camera gc2145 camera driver

Verify:
test pass on U200

Change-Id: I5927d49a93952587af7bb460a5c405293d692153
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-02-27 04:30:28 +09:00
shuanglong.wang
15b29c9e38 video: video peek do not post video start event [1/1]
PD#SWPL-4317

Problem:
for video peek, before audio post audio start, video may have rended.

Solution:
do not post video start for video peek, all wait for audio start to
start pcr

Verify:
verify by p212

Change-Id: If5656154e30613164465f84c44d3fd1ee386d654
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-02-27 04:30:28 +09:00
Huan Biao
86474eb6fc arm64: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
    cpufreq 1000Mhz-->1200Mhz
    gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
    70000-->80000
    80000-->90000
    85000-->100000

Verify:
p215 pass

Change-Id: I36d8ac8ca578f92c8aeda7d979df1f3f56311ce3
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-02-27 04:30:28 +09:00
Huan Biao
9c9255c8c1 arm: dts: gxl: optimize ipa parameter [1/1]
PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
	cpufreq 1000Mhz-->1200Mhz
	gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
	70000-->80000
	80000-->90000
	85000-->100000
3:fix gpupp get fail issue

Verify:
p215 pass

Change-Id: Id0a1e1ac9619f0d9a20e2aad172ba0c84c7a2e9d
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-02-27 04:30:28 +09:00
Pengcheng Chen
afc0b5bf9b osd: fix a green line displayed when output is yuv420 4k/60hz [1/1]
PD#SWPL-4427

Problem:
a green line displayed when output is yuv420 4k/60hz

Solution:
set dummy data to 0x808000 can fix a green line
displayed when output is yuv420 4k/60hz

Verify:
verify by fanklin

Change-Id: I06125d36c2fb06a61dd072a1789217e7c3705207
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-02-27 04:30:28 +09:00
riqun.ou
efd2b1662b sound: add resample node for axg_s420_v03gva.dts [1/1]
PD#SWPL-365

Problem:
System can't use resample function on GVA project.

Solution:
Add resample node in axg_s420_v03gva.dts

Verify:
Passed on s420

Change-Id: Ie48c579e9e9f6e1d61147f5410c95e5bca55b0a7
Signed-off-by: riqun.ou <riqun.ou@amlogic.com>

audio: codecs: fix TL1 reference board volume too small [2/2]

PD#SWPL-2652

Problem:
    X301/T309 AMP volume configured to small

Solution:
    change the default external AMP codec mixer name to a match
    the ini parsing function in audio hal.
    TODO: need dynamically check the different codec mixer name
    in ini file.

Verify:
    verify by x301

Change-Id: Iba835d37ea02bec3095556d54fbf327bd6390904
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

audio: codec: the DAC gain set of acodec not work [1/1]

PD#SWPL-3134

Problem:
the DAC gain set is not work

Solution:
update and aml_codec_tl1_acodec.c, change the method of
getting codec pointer from kcontrol pointer.

Verify:
verify by T962x2_X301 board

Change-Id: I02f02b73fab3b8391ef4866a71ffaf0d48bbbbbf
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>

audio: add tas5805 [1/1]

PD#SWPL-3081

Problem:
compatiable tas5805 module

Solution:
add tas5805 drivers

Verify:
T962X2

Change-Id: I3608e47fe768af0f924751a8bcc103389d0811de
Signed-off-by: Yonghao Jiao <yonghao.jiao@amlogic.com>

audio: auge: add HDMIRX SPDIF in support [1/2]

PD#SWPL-2956

Problem:
HDMI in DTS/Dolby input has noise when treated to LPCM

Solution:
By default,we are using PAO mode for HDMIRX,but we have not
enabled the PaPb search for 61937 raw data input, after add
that, we can detect the raw data, but it can not by clear when
switch from NONE-LPCM to NONE-LPCM, need add IRQ function to
clear that by sw.we enabled spdif in from HDMIRX, which is  the same
design as txl/txlx.we can get the Pc information now.
also we add a new interface to set spdif in source when hdmirx input.

Verify:
x301

Change-Id: I3c4e8b387308ef862a069c29d15b8b5a9e865564
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

udio: auge: tl1 acodec mapping to data 1 [1/2]

PD#SWPL-3277

Problem:
tl1 internal codec volume can by adjusted

Solution:
configure the acodec data layout mapping
to a fixed volume

Verify:
x301

Change-Id: I14d3762b39a0a5291722ef5489026f10fc960120
Signed-off-by: Jian Xu <jian.xu@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts

audio: Fix TDM not wokring on HDMI I2S in [1/1]

PD#SWPL-2887

Problem:
  When TDM is used for HDMI I2S in, the solt set is wrong.

Solution:
  Fix the lane max value from 3 to 4

Verify:
  A113

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

audio: codec: fix to resume ad82584's volume after suspend [1/1]

PD#SWPL-3456

Problem:
1) After suspend, volume is not resume
2) ARC connected, still sound out from spk

Solution:
1) save channel volume when suspend, then resume the volume
2) add mute mixer control for ad82584

Verify:
x301

Change-Id: Ic6e7502e3f9689cc2d1053295f26aaf4d5be2603
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

audio: auge: add vad driver [1/1]

PD#SWPL-2404

Problem:
VAD for wake up

Solution:
Add vad driver to fetch VAD buffer and ALSA buffer, in userspace, they
will be combined for wakeup engine

Verify:
x301

Change-Id: I3b4de5fdfe173ce18e58a187a3adeda601e226b3
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

audio: fix pop snd after bootup [2/2]

PD#SWPL-3178

Problem:
output big pop noise after system boot up.

Solution:
Add zero and then unmute the stream.
NOTICE: user should unmute the AD82584F after boot.

Verify:
local verified.

Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

audio: fix no audio after resume of ad82584f [1/1]

PD#SWPL-4090

Problem:
No audio after suspend and resume.
Suspend won't save the mute value,
and after resume, it could not be restored.

Solution:
Add a mute val to save when suspend,
and after resume, restore the mute value.

Verify:
Verified by QA.

Change-Id: Ie24bb11f5c565048391846a66b5d12bab1d55666
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

audio: auge: fix sharebuffer channel map [1/1]

PD#SWPL-2645

Problem:
play ddp source, then play pcm source, no sound

Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll

Verify:
x301

Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts

audio: add stream mute and continuous clk [1/1]

PD#SWPL-2952

Problem:
Pop noise could be heard
when switching between sources.

Solution:
1. Add stream digital mute functions.
2. continuous clock to eliminate
  the clk reset issue.

Verify:
Local verified.

Change-Id: I372f4c03aaf875d75aa903c9c2dfda00619af000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>

dts: tl1: enable resample for tl1 [1/2]

PD#SWPL-3365

Problem:
not resample for audio in, so output in wrong sample rate

Solution:
1. enable resample in dts
2. fix to check whether resample is needed

Verify:
x301

Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
2019-02-27 04:30:28 +09:00
shuanglong.wang
da6d1ea638 video: omx get first frame toggoled flag [1/2]
PD#SWPL-4048

Problem:
omx can not detect first frame have toggled

Solution:
omx get first frame toggoled flag

Verify:
verify by p212

Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-02-27 04:30:28 +09:00
Yi Zhou
e7e21d80ac dv: keep dv enable when connecting to sdr TV [1/1]
PD#SWPL-3226

Problem:
turn off the dv core, the osd flutters

Solution:
keeping core2 open when dv enable under sdr TV

Verify:
u212

Change-Id: Idf57c6e67676fb5eec944e543cb596247c932df4
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-02-27 04:30:28 +09:00
Luan Yuan
ed20184713 hdmitx: fixed logo flash error [1/1]
PD#SWPL-4194

Problem:
array need to initial.

Solution:
fixed it.

Verify:
verify by ampere

Change-Id: Ia72eb1afa54f092bbbb7265694ecec314691b14e
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-02-27 04:30:28 +09:00
Kaifu Hu
ee234ee7a8 hdmi: fix uboot logo flash [1/2]
PD#SWPL-4194

Problem:
Systemcontorl set display mode when attr is difference

Solution:
Fix color space property parser

Verify:
G12A/U200

Change-Id: Iddbcbbf3925b175833f534a287de413315ca1170
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2019-02-27 04:30:28 +09:00
Jihong Sui
23f7138632 deinterlace: change holdline default value to 8 [1/1]
PD#SWPL-3384

Problem:
DI post holdline setting is not map with video

Solution:
change holdline to 8

Verify:
verified by gxl

Change-Id: Ia352604086cefb4c69d5dd268d12741c4cf4f173
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-02-27 04:30:28 +09:00
Cheng Tong
db122a72ee dts: u212 2G ddr add dvb dts config [1/1]
PD#SWPL-4140

Problem:
u212 2G dts didn't have dvb config

Solution:
add dvb dts config
defalut commented out as reference

Verify:
Verify by Android P franklin

Change-Id: I1ffc631ff0a729e6701fd8cd17b28f70666b1e30
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-02-27 04:30:28 +09:00
Pengcheng Chen
bc54541d6e osd: afbc decode error when write afbc start before afbc reset [1/1]
PD#SWPL-4016

Problem:
afbc decode error when write afbc start before afbc reset reg

Solution:
replace invalid reg when found afbc start before afbc reset reg

Verify:
test pass on franklin

Change-Id: Ia01608fe4d5c6132d0b54e63c48560e9e77bfe0a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-02-27 04:30:28 +09:00
Yi Zhou
0676e97324 dv: mute the first frame when playing video [1/1]
PD#SWPL-4091

Problem:
due to the ip bug, the first frame has dirty data

Solution:
mute the first frame

Verify:
u212

Change-Id: Ia21e96c338b22e25d1073f27083f10634a09edad
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-02-27 04:30:28 +09:00
Luan Yuan
f574654f0f Revert "canvas: get canvas w/h for frame check [2/2]"
This reverts commit 8667f1fbc1.
2019-02-27 04:30:28 +09:00
MingLiang Dong
6ac1cf57a9 hdr: sdr2hdr on/off switch, osd flutter [1/1]
PD#SWPL-3038

Problem:
sdr2hdr on/off switch, osd flutter

Solution:
always enable osd1 hdr, if osd hdr bypass, set hdr bypass parameters

Verify:
verify on G12A

Change-Id: I4d5ae0588b06c4989b3a4f22b00ba41ef80be0d0
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-02-27 04:30:28 +09:00