Commit Graph

653644 Commits

Author SHA1 Message Date
yujie.wu
b46f77e015 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>

Conflicts:
	sound/soc/codecs/amlogic/tas5782m.c
2019-07-23 17:52:49 +09:00
Zhe Wang
4932956e38 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>

Conflicts:
	MAINTAINERS
2019-07-23 17:52:49 +09:00
Xing Wang
6acc0dda5e 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-07-23 17:52:49 +09:00
Xing Wang
2f3e0e650a 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>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
Shuai Li
743550e67e 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>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
Xing Wang
6c32cf605b 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>

Conflicts:
	sound/soc/amlogic/auge/spdif_hw.c
2019-07-23 17:52:49 +09:00
yujie.wu
cf2fbdeaa0 audio: Add HBR audio info for HDMI input [2/3]
PD#SWPL-3435

Problem:
  P321 doesn't support DTS HD decoding

Solution:
  In HDMI RX module, we add a new field to
  indicate whether the input audio is HBR.
  With this info, hal can enable the PAO
  mode  to decode the HBR audio.

Verify:
  P321

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

Conflicts:
	drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.h
	drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_hw.c
2019-07-23 17:52:49 +09:00
shuanglong.wang
73f949cfea video: compensation omxpts for pcr check [1/1]
PD#SWPL-5664

Problem:
pcr is probably adjust when test AL1 eyepatch test case

Solution:
the time is not accurate when check pcr and omx_pts differ, because
omx_pts is used the value that be set, but pcr is current. Here add
compensation for omx_pts

Verify:
verify by nts

Change-Id: I3e0f6f006fd79cf7cac4148fd18da72111a333c7
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>

Conflicts:
	drivers/amlogic/media/video_sink/video.c
2019-07-23 17:52:49 +09:00
Zongdong Jiao
e408a28f8b hdmitx: adjust PHY parameter with 5.1 ohm resistor [2/2]
PD#SWPL-2927

Problem:
No enough eye diagram when adding TMDS 5.1 ohm resistor

Solution:
adjust PHY parameter with 5.1 ohm resistor

Verify:
G12/U212

Change-Id: Ib5518613c556f9b04eb0aa374193c7a6046a7ba9
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-23 17:52:49 +09:00
Zongdong Jiao
729b388b1a hdmitx: add dongle_mode case for low power [2/2]
PD#SWPL-5302

Problem:
For dongle products, it is connected to TV directly, and some
parameters are different from mbox.

Solution:
Add dongle mode for driver's usage

Verify:
U211/S905Y2

Change-Id: Ibe45b167800d3b830d78ca8e9d7b67efd64d8564
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_g12a.c
2019-07-23 17:52:49 +09:00
Zongdong Jiao
625f488cb0 hdmitx: rename HDMI_IEEE_OUI to avoid conflicts [1/1]
PD#SWPL-4705

Problem:
In 61207 patch, the define HDMI_IEEE_OUI is conflicted with the kernel
head file include/linux/hdmi.h

Solution:
rename HDMI_IEEE_OUI

Verify:
GXL/P212

Change-Id: I75a12734e85478f22edf0b48636ed86e60302b58
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c
2019-07-23 17:52:49 +09:00
Zongdong Jiao
c51d9a2be3 hdmitx: add auto low latency mode(ALLM) [1/1]
PD#SWPL-4705

Problem:
Lack ALLM function

Solution:
Add ALLM function

Verify:
GXL/P212
If Rx supports ALLM, then
echo 1 > /sys/class/amhdmitx/amhdmitx0/allm_mode
otherwise it will set failed, cat allm_mode and will get 0.

Change-Id: I00233e5a5aac133b405590e7df78c7c4805ed0ef
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c
2019-07-23 17:52:49 +09:00
Pengcheng Chen
40861c581d osd: fix hotplug hdmi causes system crash [1/1]
PD#SWPL-7009

Problem:
hotplug hdmi causes system crash
when unplug hdmi display mode is null, hwc hasn't received
event and post frame normal but osd vsync lost, which caused
wait hw vsync timeout(1s), and fd leak.

Solution:
when process every frame, if display mode is null, exit frame process
just process fence.

Verify:
verified on Raven, franklin

Change-Id: Icbe7cd76776e46a6ed79c6cee3ea05772cc5f9d2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
ae04da094d osd: frame just display on half screen [1/1]
PD#SWPL-7039

Problem:
bring up osd for TM2
frame just display on half screen

Solution:
fix field_out_en value from array

Verify:
Verified on T962e2_ab319

Change-Id: Id07f3d813242f031125fcac11d3fa05205895448
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
b1d4b00658 osd: set osd1 scaler before osd blend [1/1]
PD#SWPL-6596

Problem:
bring up osd for TM2

Solution:
set osd1 scaler before osd blend

Verify:
Verified on T962e2_ab319

Change-Id: I9e7d5fa83b2edc8e9359371695ea46fa3b39e09c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
e8bc6f758b osd: osd display color abnormal when run drm [1/1]
PD#SWPL-6867

Problem:
osd dispaly color abnormal because osd enable not update.

Solution:
update osd enalbe flag in drm process.

Verify:
Verified u212

Change-Id: I1c2e8b62d9d5af203c95d3d0ac940fb512dd8e5e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Pengcheng Chen
e5136d971e osd: add viu2 fence support [1/1]
PD#SWPL-6384

Problem:
viu2 not support fence

Solution:
add viu2 fence support.

Verify:
test pass on tl1

Change-Id: I94a5e483c88cace79b7386bb918c203ada6b8274
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>

Conflicts:
	drivers/amlogic/media/osd/osd_hw.c
2019-07-23 17:52:49 +09:00
Brian Zhu
e7e934364a vpp: add osd and video zorder control [2/6]
PD#SWPL-85

Problem:
Upper layer need control osd and video layer zorder

Solution:
1.Add video layer zorder interface by sysfs and ioctl
2.Switch the osd and video layer order in vsync

Verify:
Verify on U212

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

Conflicts:
	drivers/amlogic/media/video_sink/video.c
	include/linux/amlogic/media/video_sink/vpp.h
2019-07-23 17:52:49 +09:00
Brian Zhu
8a0cfce510 vpp: add two layers support for each chips [1/6]
PD#SWPL-85

Problem:
Need support two video layers feature

Solution:
1.Add vd2 mif config
2.Add vd2 pps calculation and config
3.Add vd2 axis/crop/screen mode interface by sysfs and ioctl
4.Add layer query/alloc/free interface

Verify:
Verify on U212

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

Conflicts:
	drivers/amlogic/media/video_sink/video.c
	drivers/amlogic/media/video_sink/video_keeper.c
	drivers/amlogic/media/video_sink/video_priv.h
	drivers/amlogic/media/video_sink/vpp.c
	include/linux/amlogic/media/video_sink/video.h
	include/linux/amlogic/media/video_sink/vpp.h
2019-07-23 17:52:49 +09:00
Jian Cao
aa41df845e osd: osd: recovey mode always blank [1/1]
PD#TV-1287

Problem:
recovey mode always blank

Solution:
set right condition to enable free_scale

Verify:
verified on P321 board

Change-Id: I2f70b9c5436b30156f157a3297a11a2ef1cfec67
Signed-off-by: Jian Cao <jian.cao@amlogic.com>

Conflicts:
	drivers/amlogic/media/osd/osd_hw.c
2019-07-23 17:52:49 +09:00
pengcheng chen
b9e8ed0351 osd: add meson-hwc repodution rate support [1/2]
PD#SWPL-1810

Problem:
osd blend repodution rate not supported

Solution:
add meson-hwc repodution rate support

Verify:
verified on u212 dev board

Change-Id: Ied10393e240e8d3f2a1eefe17a2d4d3c965e3383
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>

Conflicts:
	drivers/amlogic/media/osd/osd.h
	drivers/amlogic/media/osd/osd_fb.c
	drivers/amlogic/media/osd/osd_hw.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
dfa0f61343 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>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_tv/lcd_drv.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
2968992a4b 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>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_common.h
	drivers/amlogic/media/vout/lcd/lcd_tcon.c
	drivers/amlogic/media/vout/lcd/lcd_vout.c
2019-07-23 17:52:49 +09:00
Shaochan Liu
7450034217 lcd: add wait for gpio input value support in lcd power step [2/2]
PD#SWPL-3938

Problem:
add wait for gpio input value support in lcd power step

Solution:
add wait for gpio input value support in lcd power step

Verify:
verify by t962x-r311

Change-Id: Ie1c4ec6f9f5d91332b6b20e1d1bd2adde17e547b
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_vout.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
0e89b2d7c9 lcd: tcon: change axi_mem cma alloc api to avoid memory clear [1/1]
PD#SWPL-4554

Problem:
tcon axi memory will clear when enter kernel

Solution:
change axi_mem cma alloc api

Verify:
t309

Change-Id: Ied6ef9976e503c597818a73109b222868c0f0387
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_tcon.c
2019-07-23 17:52:49 +09:00
Evoke Zhang
91c95b3e09 lcd: optimize tcon type for extensible usage [1/1]
PD#SWPL-3957

Problem:
tcon_type need extensible usage for special case

Solution:
tcon_type change to hex value

Verify:
x301

Change-Id: I26cb58ffc1cd2f525c8cf0f7c08b0d9cf66766e5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_skt-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_skt-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	drivers/amlogic/media/vout/lcd/lcd_debug.c
	include/linux/amlogic/media/vout/lcd/lcd_vout.h
2019-07-23 17:52:49 +09:00
Evoke Zhang
199e697b7f backlight: ldim: add analog pwm support [1/1]
PD#SWPL-3702

Problem:
local dimming need analog pwm function

Solution:
add analog pwm support

Verify:
x301

Change-Id: I502bb7505947c1f3670f44d0d307f9546f1d57fd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontxlx_r311-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c
	drivers/amlogic/media/vout/backlight/aml_ldim/ldim_drv.h
	include/linux/amlogic/media/vout/lcd/aml_ldim.h
2019-07-23 17:52:49 +09:00
Evoke Zhang
2f1f394941 lcd: fix tcon crash with reserved-memory fail and tcon_clk mistake [2/2]
PD#SWPL-3664

Problem:
tcon will crash in kernel

Solution:
1.prior meson-fb & lcd_tcon reserved-memory
2.fix tcon_clk not enable mistake when use panel ini

Verify:
x301

Change-Id: I97baec22ecabea393f9b0d712456923720fac972
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm/boot/dts/amlogic/mesontl1_x301-panel.dtsi
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
	arch/arm64/boot/dts/amlogic/mesontl1_t309-panel.dtsi
	arch/arm64/boot/dts/amlogic/mesontl1_x301-panel.dtsi
2019-07-23 17:52:49 +09:00
Yong Qin
f202264f60 vlock: phase lock sometime lose effect [1/1]
PD#SWPL-6723

Problem:
phase lock sometime effect vlock

Solution:
disable phase lock function now

Verify:
tl1

Change-Id: I4cfe1e0153084717967309e832b028691ab44c88
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/vlock.c
2019-07-23 17:52:49 +09:00
Yong Qin
80bbcb532b vlock: vlock: improve vlock flow [1/1]
PD#TV-3683

Problem:
1. write pll m will cause vbyone lockn unlock.

Solution:
1.not change m,f at the sametime
2.reduce the frequency of write m and f

Verify:
tl1

Change-Id: Ia1ff93122d8b2ae355eae73b0094f8e09edba1cd
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/vlock.c
	drivers/amlogic/media/enhancement/amvecm/vlock.h
2019-07-23 17:52:49 +09:00
Yong Qin
f6c0e8bc88 vlock: pretect display pll set in vlock [1/1]
PD#TV-3683

Problem:
1.pretect display pll set in vlock, m and frac value
write at the sametime.

Solution:
1.optmis vlock flow
2.add notify_callback when mode change

Verify:
tl1

Change-Id: I72fab117c5b7247659c5c08eeff62fbc4d421839
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/vlock.c
	drivers/amlogic/media/enhancement/amvecm/vlock.h
2019-07-23 17:52:49 +09:00
Yong Qin
8ad280b58f 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>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amvecm.c
	drivers/amlogic/media/enhancement/amvecm/arch/vpp_regs.h
	drivers/amlogic/media/enhancement/amvecm/vlock.c
	drivers/amlogic/media/enhancement/amvecm/vlock.h
2019-07-23 17:52:49 +09:00
Yong Qin
dfa3a8a79c vlock: screen flash after PAL NTSC swich [1/1]
PD#SWPL-4246

Problem:
the screen always flash after switch PAL to NTSC in AVin

Solution:
do not change pll M value, M value will case v by one fail

Verify:
verified on tl1 android p

Change-Id: Ib5ea8dfef1c40af5535e69fdc9241a7f77b4a7dd
Signed-off-by: Yong Qin <yong.qin@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amvecm.c
	drivers/amlogic/media/enhancement/amvecm/vlock.c
	drivers/amlogic/media/enhancement/amvecm/vlock.h
2019-07-23 17:52:49 +09:00
shuanglong.wang
94a573ec4d 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>

Conflicts:
	drivers/amlogic/media/video_sink/video.c
2019-07-23 17:52:49 +09:00
tao zeng
3cb9b59d7a mm: optimize thread stack usage on ARMv7 [1/1]
PD#SWPL-2681

Problem:
Kernel stack usage is large when running many tasks.

Solution:
Map kernel stack to module space and handle page-fault
for stack fault. This can save about 50% memory of stack
usage

Verify:
p212

Change-Id: Ie894bc8f00cb525ddf8ac63c6d99d9c6e937fdc0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>

Conflicts:
	arch/arm/include/asm/memory.h
	arch/arm/include/asm/thread_info.h
	arch/arm/kernel/entry-armv.S
	arch/arm/kernel/unwind.c
	drivers/amlogic/memory_ext/Kconfig
	drivers/amlogic/memory_ext/vmap_stack.c
2019-07-23 17:52:49 +09:00
Hanjie Lin
bb892368ee perf_event: aml pmu interrupts routing on g12b [1/1]
PD#SWPL-3088

Problem:
g12b big-little cluster is different from other SoC with pmu
interrupts and registers.
software modifications must adapt to the difference.

Solution:
modify

Verify:
u200 w400

Change-Id: If9217c1025dff5c17d51790f8c216e31b7d6532b
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesongxl.dtsi
	arch/arm/boot/dts/amlogic/mesongxl_sei210.dtsi
	arch/arm/boot/dts/amlogic/mesongxm.dtsi
	arch/arm/boot/dts/amlogic/mesontxl.dtsi
	arch/arm/include/asm/perf_event.h
	arch/arm/kernel/perf_event_v7.c
	arch/arm64/boot/dts/amlogic/mesong12a.dtsi
	arch/arm64/boot/dts/amlogic/mesongxl.dtsi
	arch/arm64/boot/dts/amlogic/mesongxl_sei210.dtsi
	arch/arm64/boot/dts/amlogic/mesongxm.dtsi
	arch/arm64/boot/dts/amlogic/mesontxl.dtsi
2019-07-23 17:52:49 +09:00
Evoke Zhang
6d4a452b14 backlight: ldim: add dev reg access api support [1/1]
PD#TV-1481

Problem:
need ldim_dev reg access uniform api

Solution:
add ldim_dev reg access uniform api

Verify:
x301

Change-Id: I72756d178ef70aac1f8b7fef842468f2e27a0ffe
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/backlight/aml_ldim/ldim_dev_drv.c
	include/linux/amlogic/media/vout/lcd/aml_ldim.h
2019-07-23 17:52:49 +09:00
Shaochan Liu
fd04ea8e4c lcd: optimize bit_rate config in lcd driver [2/2]
PD#SWPL-3562

Problem:
optimize bit_rate config in lcd driver

Solution:
optimize bit_rate config in lcd driver

Verify:
verify by t962x2-x301

Change-Id: Ia804628aa60590f4311ece394ddacc08ca64d573
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>

Conflicts:
	drivers/amlogic/media/vout/lcd/lcd_clk_config.c
	drivers/amlogic/media/vout/lcd/lcd_debug.c
	drivers/amlogic/media/vout/lcd/lcd_tv/lcd_drv.c
	drivers/amlogic/media/vout/lcd/lcd_vout.c
	include/linux/amlogic/media/vout/lcd/lcd_vout.h
2019-07-23 17:52:49 +09:00
Shaochan Liu
1ca90ca607 lcd: unify lcd pinmux usage in dts [1/1]
PD#SWPL-3294

Problem:
unify lcd pinmux usage in dts

Solution:
change lcd pinmux usage to be recommend by linux upstream

Verify:
verify by t962x_r311

Change-Id: I7069b5272fa779575a8111b12a3ed835ab72cd02
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
2019-07-23 17:52:49 +09:00
Yi Zhou
b1aacd934b dv: close afbc2 when playing sources with unnecessary el [1/1]
PD#SWPL-915

Problem:
DOLBY only sets the enhancement for the first frame ->
Vd sets cur_dispubf2 according to enhance ->
codec_mm keeps the last frame according to cur_dispbuf2,
so it fails -> AFBC2 access to the released content causes the trigger.

Solution:
close afbc2

Verify:
r321

Change-Id: I03c431a6ea11b8aabf97b1f0b21f717024be2f62
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>

Conflicts:
	drivers/amlogic/media/video_sink/video.c
2019-07-23 17:52:49 +09:00
MingLiang Dong
b74aa0619c amvecm: sdr2hdr function set by uplayer, driver default disable [1/1]
PD#SWPL-4255

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

Solution:
dr2hdr function set by uplayer, kernel default disable

Verify:
verify on G12A

Change-Id: Iea5a1e0be9b5665bb7deb785b6b5faa702ef1664
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amvecm.c
2019-07-23 17:52:49 +09:00
Shuai Li
e7fe56502f 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>

Conflicts:
	sound/soc/amlogic/auge/tdm_hw.c
	sound/soc/amlogic/auge/tdm_hw.h
2019-07-23 17:52:49 +09:00
Xing Wang
7029d2bde9 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/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2019-07-23 17:52:49 +09:00
Shuai Li
04676b9fc8 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>

Conflicts:
	sound/soc/codecs/amlogic/ad82584f.c
2019-07-23 17:52:49 +09:00
Xing Wang
d152d4eae9 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>

Conflicts:
	MAINTAINERS
	arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
	include/linux/amlogic/major.h
	sound/soc/amlogic/auge/ddr_mngr.h
	sound/soc/amlogic/auge/tdm.c
2019-07-23 17:52:49 +09:00
Xing Wang
b2b85c4aee 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>

Conflicts:
	sound/soc/codecs/amlogic/ad82584f.c
2019-07-23 17:52:49 +09:00
Tao Zeng
9f97fce3f0 dmc: fix panic problem when show memory in highmem [1/1]
PD#SWPL-2767

Problem:
If DMC violation address is in highmem, then it will panic
when show memory using page_address();

Solution:
map violation address for highmem

Verify:
p212

Change-Id: Ib6213eaab42b129c8c0a381511a0b3376b0d3e66
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>

Conflicts:
	drivers/amlogic/ddr_tool/dmc_g12.c
	drivers/amlogic/ddr_tool/dmc_gx.c
2019-07-23 17:52:49 +09:00
Dianzhong Huo
c942c4a606 dts: add w411 dts for buildroot [1/1]
PD#SH-224

Problem:
buildroot no w411 dts

Solution:
1.add w411 dts
2.w411 dts copy form w400_buildtoot dts, and do some memory cost down,
  and also sdio port has some different with w400 board

Verify:
w411 board test pass

Change-Id: Iba3de4fc4fe1d37dbb6070dbe54ad35c9caf45d9
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/g12b_a311x_w411_buildroot.dts
2019-07-23 17:52:49 +09:00
Chao Liu
e6cc1de027 dts: add the attestationkeybox of unifykey[1/3]
PD#162644: Attestation key burn tool development

Change-Id: I53903436560957026b8dc1ab4b72c48b4b160399
Signed-off-by: Chao Liu <chao.liu@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/g12a_s905d2_skt.dts
	arch/arm64/boot/dts/amlogic/g12a_s905d2_skt_buildroot.dts
	arch/arm64/boot/dts/amlogic/g12a_s905d2_u200.dts
	arch/arm64/boot/dts/amlogic/g12a_s905x2_u211.dts
	arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts
	arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts
	arch/arm64/boot/dts/amlogic/gxl_p212_1g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p212_2g.dts
	arch/arm64/boot/dts/amlogic/gxl_p212_2g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p230_2g.dts
	arch/arm64/boot/dts/amlogic/gxl_p230_2g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p231_1g.dts
	arch/arm64/boot/dts/amlogic/gxl_p231_2g.dts
	arch/arm64/boot/dts/amlogic/gxl_p231_2g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p241_1g.dts
	arch/arm64/boot/dts/amlogic/gxl_p241_1g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p241_v2-1g.dts
	arch/arm64/boot/dts/amlogic/gxl_p241_v2_1g_buildroot.dts
	arch/arm64/boot/dts/amlogic/gxl_p400_2g.dts
	arch/arm64/boot/dts/amlogic/gxl_p401_2g.dts
	arch/arm64/boot/dts/amlogic/gxl_skt.dts
	arch/arm64/boot/dts/amlogic/gxm_q200_2g.dts
	arch/arm64/boot/dts/amlogic/gxm_q201_1g.dts
	arch/arm64/boot/dts/amlogic/gxm_q201_2g.dts
2019-07-23 17:52:49 +09:00
Yingyuan Zhu
67ffbba75f watchdog: Change the feed watchdog mode [1/1]
PD#SWPL-2378

Problem:
Using Android to feed watchdog is not easy to debug the
crash problem, in addition, the Android does not open
the dog feeding service.

Solution:
Change the DTS configuration and change into driver feed watchdog.

Verify:
test pass on g12a-u200

Change-Id: Ie0a91fd8451fdccf3038ba6290a277c9048c52cd
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontxl.dtsi
	arch/arm64/boot/dts/amlogic/mesontxl.dtsi
2019-07-23 17:52:49 +09:00