Commit Graph

24 Commits

Author SHA1 Message Date
saisai.chang 0a9f0ec9c5 audio: fix audio coverity [1/1]
PD#SWPL-134417

Problem:
coverity

Solution:
fix coverity

Verify:
coverity script scan cannot find these problem

Change-Id: I95e25f313644cf94ad80948a348fcfaf94078183
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2023-10-24 15:41:56 +08:00
qing.zhang ed90a2b58e Audio: kernel support features for s1a [1/1]
PD#SWPL-134941

Problem:
1. can't adjust volume in userspace
2. cvbs out and hdmitx with tdma
3. suspend
4. codec crash

Solution:
1. change i2shdmi source
2. change samesoure
3. suspend control
4. delay t9015 analog
5. enable efuse for build in modules

Verify:
use s1a

Change-Id: Ieffdc7a4bda09ca9846589b9d71beeb8699e49c2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-08-17 06:14:48 -07:00
jian zhou e330e43cde Audio: c3 audio bringup [1/1]
PD#SWPL-83864

Problem:
Audio bringup for c3

Solution:
Audio bringup for c3

Verify:
AW419-C308L

Change-Id: I4484b13603dbfa316a551d68c1a2208f6f68e874
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-08-15 04:19:46 -07:00
Zhe Wang 1a8d699b7d audio: fixed audio volume gap when STR [1/2]
PD#SWPL-132440

Problem:
The speaker become louder after suspend and resume

Solution:
1) store user setting before suspending
2) improve the digital extra gain of DAC

Verify:
TXHD2

Change-Id: I1320233e0af3d6ef22e541cc32e3d15e3842f3c1
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-08-01 20:29:16 +08:00
wei huang 393f730fc5 audio: TV standby wake up, speaker has pop noise [1/1]
PD#SWPL-128734

Problem:
When enter or quit STR, the signal will change from one
high level to zero directly. So it causes this issue.

Solution:
1) When enter or quit STR, do fade out or fade in process.
2) disable to toggle SDZ check
3) add trigger control to do soft mute/unmute

Verify:
Test on board T5M. It works well now

Change-Id: If0e59aeb092538ae5e71e5c8846e4af57a18bdf1
Signed-off-by: wei huang <wei.huang@amlogic.com>
2023-07-25 05:57:40 -07:00
shaohui.sheng db824409de audio: acm8625 AMP driver [1/1]
PD#SWPL-126821

Problem:
The acm8625 AMP code is missing
and the acm8625 codec cannot be used properly

Solution:
Supplement to write acm8625 AMP driver
and acm8625 codec can be used normally

Verify:
I check the compilation success myself

Change-Id: I025970f1cfcc5fb1e880cd8d558a37798d6fa9a5
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2023-07-11 03:09:11 -07:00
jiebing chen 27baf9a3cf Audio: audio enable EQDRC [1/1]
PD#SWPL-125834

Problem:
audio enable EQDRC

Solution:
audio enable EQDRC

Verify:
use txhd2

Change-Id: I65863f1ea34c7abbd79691630181aae0e68d0faf
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2023-06-29 10:38:53 +08:00
jiebing chen ef491d8dc4 Audio: bring up audio acodec and arc [1/1]
PD#SWPL-125829

Problem:
bring up audio acodec and arc

Solution:
bring up audio acodec and arc

Verify:
use txhd2

Change-Id: I8df3e6c6a14165881cb8757ca240b2d524484921
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2023-06-29 10:34:03 +08:00
jiebing chen ac966ed9c8 Audio: bringup txhd2 acodec [1/1]
PD#SWPL-125840

Problem:
bringup txhd2 acodec

Solution:
update amlogic acodec code from kernel-5.4

Verify:
use txhd2

Change-Id: I7956ff0fad23128e05352f8afbb5169d7f017582
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2023-06-29 10:34:00 +08:00
shaohui.sheng 1bbef379af audio: Bring up the PA1 chip [1/1]
PD#SWPL-102916

Problem:
PA1 AMP chip lacks driver code, resulting in the inability
to carry out functional testing of AMP chip.

Solution:
Complete the driver code writing of PA1 chip, and then test
the basic function of PA1 and DSP function.

Verify:
Use the small board with PA1 chip and
AR309 socket board self-test

Change-Id: I420fbaca97584427b3969dac76e66acfbe9cf6d2
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2023-06-04 21:08:19 -07:00
shaohui.sheng 46895867af Audio: Standby and wake up [1/1]
PD#SWPL-122847

Problem:
When the standby wake up scenario occur, the speaker
will sound at the same time as ARC

Solution:
Standby and wake up to restore the original state.

Verify:
Test on board T5M.

Change-Id: I6c2bb9b08f7a18a3055c279d068b975de75f3d92
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2023-05-30 03:33:39 -07:00
qing.zhang 2f8104f077 Audio: ad82128 no output when resume [1/1]
PD#SWPL-121925

Problem:
when resume the pd reset need delay

Solution:
1. pd reset pin need delay before cache restore for codec spec

Verify:
calla ref and skt

Change-Id: Ib98886fc35c489256ccf1fe3a5fe048c7d21f320
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-05-05 04:52:27 -07:00
shaohui.sheng 04d0bdd9de audio: Audio T5M AMP driver [1/2]
PD#SWPL-112975

Problem:
Local playback speaker sound is small

Solution:
Modify the AD82128 codec driver code:
1) Create a parameter table for
2) Change the tinymix interface,
so that the parameters in the ini file can be configured to speak
3) Increase the gain value of the AD82128 codec,
so that the sound played locally becomes louder

Verify:
Checking

Change-Id: I7c07a5f754e1ad70b9746bfa4d823614be0a8503
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2023-04-28 14:48:44 -07:00
qing.zhang f720ef9fbb Audio: add power ctrl for t5m ref and skt [1/1]
PD#SWPL-118093

Problem:
need close the power of audio hardware modules

Solution:
1. pdm use h29 instead for skt
2. mask ic2c pin : gpioh_20 for skt
3. skt as5707 suspend, add dual codec reset pin request control
4. add ref ad82128 suspend control
5. earc tx suspend must with hdmi_rx close power

Verify:
calla ref and skt

Change-Id: Ia3547c736ff20de4eca57ed83f9d6963a979690f
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-04-20 19:53:49 -07:00
Zhe Wang 51f6ec3787 audio: Add kcontrol for DAC source select [1/1]
PD#SWPL-106645

Problem:
It needs to implement kcontrol for DAC source select

Solution:
Add DAC source select kcontrol

Verify:
Test on board T3. It works well now.

Change-Id: I6c0241da01da9e829c6f69a1f453689aa478a624
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-03-06 01:42:30 -08:00
Zhe Wang 075b82c4cd audio: fix pop noise when underrun & shutdown [1/1]
PD#SWPL-112419

Problem:
There are pop noise when audio underrun or shutdown

Solution:
1) add soft mute when audio codec is triggered by stop/start and
pause/resume
2) before system shut down, soft mute the audio codec
3) change volume ramp mode

Verify:
T5D

Change-Id: I83ab2d860daf188759405cb809ba5104df25cfb3
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-02-26 22:16:16 -08:00
jian zhou 72b7e1b323 audio: remove mute_stream callback function for ad82128 [1/1]
PD#SWPL-109084

Problem:
sound is from arc and speaker at the same time.

Solution:
remove mute_stream callback function, ad82128 mute by
tinymix, not by mute_stream callback function.

Verify:
t5m

Change-Id: Ia3085bcaf9ba41250b77a2f866b9b11dd165b7f6
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-02-03 04:48:07 -08:00
qing.zhang d48d3d5ab2 audio: add speaker mute for mixer_paths [1/2]
PD#SWPL-108425

Problem:
can't mute speaker by mixer_paths speaker off item

Solution:
add ad82128 mute method

Verify:
t5m

Change-Id: I3b513ccf8dc71c1335ece9649ebe337805c7ec3a
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-01-17 02:11:56 -08:00
qing.zhang 9c5438ab29 audio: add audio codec [1/1]
PD#SWPL-104797

Problem:
audio amp does not work

Solution:
add codec  driver for t5m

Verify:
t5m  ref

Change-Id: Ibf19613121627e58506f5b33748eb40dc4374df8
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2022-12-30 17:18:40 +08:00
qing.zhang be0fdd6a1a Audio: T3 Kernel 5.15 Bring up [1/1]
PD#SWPL-97929

Problem:
codec no output

Solution:
add codec config

Verify:
T3

Change-Id: I3fb129fd393900b85328508f7a1b0cd260e3b481
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2022-12-02 14:04:55 +08:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
xing.fang abfb65a26a Audio: c3 audio bringup [1/1]
PD#SWPL-83864

Problem:
Audio bringup for c3

Solution:
Audio bringup for c3

Verify:
AW419-C308L

Signed-off-by: xing.fang <xing.fang@amlogic.com>
Change-Id: I56caf86b30675ac59ebed47faed0e2da1995f089
2022-06-30 18:20:41 +08:00
jian zhou 735dd18642 audio: porting audio driver for s4d [1/1]
PD#SWPL-74630

Problem:
porting audio driver

Solution:
porting audio driver from kernel 5.4

Verify:
s4d

Signed-off-by: jian zhou <jian.zhou@amlogic.com>
Change-Id: I2ba44665f506c42564eea2b5b40f8465a008e876
2022-03-21 06:16:16 -07:00
wanwei.jiang daefdc103d audio: porting audio driver [1/1]
PD#SWPL-72014

Problem:
porting audio driver from kernel5.10

Solution:
porting audio driver from kernel5.10

Verify:
s4d and C2 AF400

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie69c274441619925df30ec20f85ae2b36e74bc6e
2022-03-04 11:13:37 +08:00