Commit Graph

648844 Commits

Author SHA1 Message Date
Dongjin Kim
bf21138fc2 ODROID-N2: usb/gadget: add 'compat_ioctl(...)' for 32bit Android
Change-Id: I0ff9c0c97feb7388db8bb8ec4fb283fceb088ee7
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-08-08 19:00:57 +09:00
Luke Go
1407f7fe35 ODROID-N2: mem: Enable devmem.
Change-Id: I8440910e964df6571a25acb11a9b1de62d54a280
s922_9.0.0_20190719
2019-07-10 11:54:44 +09:00
Kevin Kim
42f258358a ODROID-N2: Merge amlogic BSP 2019.0415 (fix build err)
Change-Id: I1987cce33154a36658b066f44ce1463d267d0043
2019-07-03 13:53:32 +09:00
Zhe Wang
44d03cb80f audio: TM2 bringup: enable ADC for linein [1/1]
PD#SWPL-7027

Problem:
audio path AVin is on audio

Solution:
enable ADC for linein

Verify:
Verify on AB311

Change-Id: Iea1d694e0b605d62596635d85416d33f56dbbcb2
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301_1g.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301_1g.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301_2g.dts
	sound/soc/codecs/amlogic/ad82584f.c
2019-07-03 13:53:32 +09:00
Zhe Wang
5cb5cb7873 audio: TM2: bringup AMP ti5805 on ab301 [1/1]
PD#SWPL-7074

Problem:
speaker doesn't work

Solution:
bringup AMP ti5805 on ab301

Verify:
Verified on T962x3_ab301

Change-Id: Icb27691b4fd5a1e54070c4a6d3d3c68cdf3a60b7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2019-07-03 13:53:32 +09:00
Zhe Wang
30a5909fa7 audio: TM2 audio basic function bringup [1/1]
PD#SWPL-6721

Problem:
TM2 bringup

Solution:
audio basic function bringup

Verify:
Verified on T962e2_ab311

Change-Id: Ic48ded3964ea87e40c4d683d71a50bbdc1975f91
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2019-07-03 13:53:32 +09:00
Zhe Wang
bf6c152e02 audio: support 16ch i2s playback for SM1 [1/1]
PD#SWPL-5430

Problem:
new function lane 6 and lane 8

Solution:
support max 16 channel playback

Verify:
sm1_ac200, verify pass

Change-Id: I3af42a0b68bca8804afa042ad4a506a379b9bf86
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
Xing Wang
3b88fb7750 audio: auge: support earc rx for sm1 [1/2]
PD#SWPL-5389

Problem:
earc rx dmac reset and clk issue

Solution:
fix earc rx dmac and clk

Verify:
ac200

Change-Id: Ie8e5582f1ee358a8cf694965c9963ae1eeb6685a
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-03 13:53:32 +09:00
Xing Wang
5f2d2f624f audio: auge: add sound card for sm1 [2/2]
PD#SWPL-6151

Problem:
sound card for sm1

Solution:
add sound card for sm1

Verify:
ac200

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

Conflicts:
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/ddr_mngr.h
	sound/soc/amlogic/auge/spdif.c
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
yujie.wu
28979f105f 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>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
Xing Wang
2615bd4e2e 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:
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/resample.c
	sound/soc/amlogic/auge/spdif.c
2019-07-03 13:53:32 +09:00
Xing Wang
c6017751c3 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/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/sharebuffer.c
	sound/soc/amlogic/auge/spdif_hw.c
	sound/soc/amlogic/auge/spdif_hw.h
2019-07-03 13:53:32 +09:00
Xiaoming Sui
f13656ff13 avsync: spdif: fix the avsync for ms12 [1/4]
PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: I199383aa1c0de1b4f0ec646d9d066910b3bb2b42
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-07-03 13:53:32 +09:00
bing.jiang
c982a597ca dts: Add new dts files for S400 SBR [1/3]
PD#SWPL-4435

Problem:
    adapt Soundbar solution to S400 SBR platform

Solution:
    new dts file axg_s400_v03sbr.dts changed from axg_s400_v03.dts
    add reference remote control mapping in mesonaxg.dtsi
    add tas5782m

Verify:
    S400+D621 A113D

Change-Id: I6feee3993192656eb66b7ee5a9ff6c85d22075e4
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>

Conflicts:
	MAINTAINERS
	sound/soc/codecs/amlogic/tas5782m.c
2019-07-03 13:53:32 +09:00
Shuai Li
21768da866 audio: enable hw resmaple pause thd [1/1]
PD#TV-4638

Problem:
Speaker output high frequency howling
after change from pattern 615 to pattern 1 on chroma22294.
The hw resampler keeps sending noise if it has no input.

Solution:
Enable the hw resample pause thd by default.

Verify:
TL1 X301.

Change-Id: Ib6f0924025e155eaa8ba0e3681b307f7ff56b449
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-07-03 13:53:32 +09:00
Jianxin Pan
32118e848b Revert "audio: enable hw resmaple pause thd [1/1]"
This reverts commit 8398f8a917.

Change-Id: I76a3c8fc66b528b62e57630603ad3887b0b3abdc
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-07-03 13:53:32 +09:00
Shuai Li
e6d20c3605 audio: enable hw resmaple pause thd [1/1]
PD#TV-4638

Problem:
Speaker output high frequency howling
after change from pattern 615 to pattern 1 on chroma22294.
The hw resampler keeps sending noise if it has no input.

Solution:
Enable the hw resample pause thd by default.

Verify:
TL1 X301.

Change-Id: I076d1b80c6482661fdc3fd5808f1cc231666d07e
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-07-03 13:53:32 +09:00
Zhe Wang
5a4ab4e8a4 audio: fixed kernel panic when resample is disabled [1/1]
PD#SWPL-7039

Problem:
Kernel Panic when resample A is disabled

Solution:
When resample is disabled,don't init resample

Verify:
Verified on T962e2_ab311

Change-Id: Id9552ffc6be40f133b828dbded4ad3f15d177ab0
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-03 13:53:32 +09:00
Shuai Li
c52565790e audio: always on DDR arb [1/1]
PD#TV-3452

Problem:
Toddr stuck after a long time playback.

Solution:
For debug usage.

Verify:
No need.

Change-Id: Ibf4446148f5e028040d7d6527c7695f23f964f7c
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-03 13:53:32 +09:00
Shuai Li
6ade3942fb audio: add HW resample for HDMIRX [1/1]
PD#SWPL-6118

Problem:
No resample will cause mismatch between
input and output if they are not at same
samplerate.

Solution:
Add resample for hdmirx case

Verify:
Local tested.

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

Conflicts:
	sound/soc/amlogic/auge/ddr_mngr.c
	sound/soc/amlogic/auge/ddr_mngr.h
2019-07-03 13:53:32 +09:00
Zhe Wang
1679242634 audio: add tdm and spdif clk fine tuning interface [1/1]
PD#SWPL-5518

Problem:
In DTV passthrough, the output clk drifts from input

Solution:
add clk fine tuning interface

Verify:
verify by X301

Change-Id: I969d3eb865fb1aba90f155965548454cc3040c99
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
Shuai Li
a69fa11073 audio: add spdif/HDMI mute ctrl [1/1]
PD#TV-3016

Problem:
HDMI SPDIF mute interface has no effect.

Solution:
Add these interfaces for auge platform.

Verify:
Tested locally.

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

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	sound/soc/amlogic/auge/spdif.c
2019-07-03 13:53:32 +09:00
Xing Wang
e5ee5e3673 audio: auge: transfer audio data to wake word algorithm [1/3]
PD#TV-3389

Problem:
add vad wake engine in kernel

Solution:
transfer audio data to wake engine

Verify:
x301

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

Conflicts:
	MAINTAINERS
2019-07-03 13:53:32 +09:00
Zhe Wang
ac376f6761 audio: add soc DRC tune interface [1/3]
PD#SWPL-5904

Problem:
Audio DRC in SOC is out of work

Solution:
Add DRC tune interface

Verify:
Verify on X301

Change-Id: I5e8ecc6dafd7fc3805b0c3e60a6ec4c945729119
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-03 13:53:32 +09:00
Shuai Li
e2b4a32030 faudio: add I2S samesrc channel mapping to spdif [1/1]
PD#SWPL-6147

Problem:
I2S has 8 channels but spdif only 2.
Need map every single i2s lane to spdif sharebuffer.

Solution:
Add the DTS setting MASKS as former does.

Verify:
Local tested.

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

Conflicts:
	sound/soc/amlogic/auge/tdm.c
2019-07-03 13:53:32 +09:00
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