Commit Graph

648819 Commits

Author SHA1 Message Date
yujie.wu
cb576aede8 audio: Add Mute function for tas5782 [1/1]
PD#SWPL-5961

Problem:
  There is no mute control for tas5782

Solution:
  Add mute function for tas 5782

Verify:
  A113

Change-Id: I75f8b82a359778f28494636fe76c7bc4db848643
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-07-03 13:53:32 +09:00
Shuai Li
d7900b5335 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>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
Zhe Wang
59d82acd6c 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-07-03 13:53:32 +09:00
yujie.wu
18d13a7a46 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-03 13:53:32 +09:00
Zhe Wang
c9872286a9 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-03 13:53:32 +09:00
Xing Wang
bb32df9ef0 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-03 13:53:32 +09:00
Xing Wang
6398ca28ea 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-03 13:53:32 +09:00
Shuai Li
1652bca90b 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-03 13:53:32 +09:00
Xing Wang
ee8c8e509f 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-03 13:53:32 +09:00
huijie.huang
33f9dbd93c 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>
2019-07-03 13:53:32 +09:00
Kevin Kim
329632ae25 ODROID-COMMON: adjust sound card dai link for spdif_out.
hw:0,0 -> tdmc <-> internal DAC
hw:0,1 -> spdif_b <-> hdmitx
hw:0,2 -> spdif_a <-> spdif_out(GPIOA_11)

Change-Id: I2d31ec832d6cb82e2363977cbcbc5bc96fa3f993
2019-07-03 13:53:32 +09:00
yujie.wu
2247e37c4b 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-03 13:53:32 +09:00
Shuai Li
44f7a81ee0 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-03 13:53:32 +09:00
Kevin Kim
ac599abc4e odroid-common:Matching the mixer control with alsa-util
Change-Id: I276e86be72f8bd00215b540e4c312ba5a4a1706c
2019-07-03 13:53:32 +09:00
Shuai Li
2ba9fe003c 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-03 13:53:32 +09:00
Xing Wang
e1df0fd53c 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-03 13:53:32 +09:00
Xing Wang
b1e14283bb 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-03 13:53:32 +09:00
Shuai Li
da0fc7e205 audio: add codec trigger mute for depop [1/1]
PD#SWPL-6944

Problem:
TV-3381
Speaker sometimes has clicking noise when playing DTV program.

Solution:
add codec trigger mute for depop

Verify:
Local verified.

Change-Id: Ib15a6b90bd3a6cdda2255afaf86daeab68ba07e2
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-07-03 13:53:32 +09:00
Renjun Xu
c71aaea92f audio: fixed the issue of PDM 16 channel capture. [1/1]
PD#SWPL-5551

Problem:
cannot capture 8PDM + 8LOOPBACK.

Solution:
PDM cannot support 8PDM + 8LOOPBACK.

Verify:
s420/s400, verify pass

Change-Id: Iaf38bdcb218ebfc024666312162569cab93a76a9
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2019-07-03 13:53:32 +09:00
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