Commit Graph

220 Commits

Author SHA1 Message Date
shaohui sheng c7acd700df audio: T6D EQ/DRC Driver [1/1]
PD#SWPL-180383

Problem:
Need updata EQ/DRC driver in T6D.

Solution:
updata EQ/DRC driver in T6D.

Verify:
test on locally

Change-Id: Iaf4d289eaf745e18704416bb15103e3e67dd4413
Signed-off-by: shaohui sheng <shaohui.sheng@amlogic.com>
2024-08-23 02:05:57 -07:00
jiebing chen 7e53e9c214 Audio: add the suspend/resume function for sy602x [1/1]
PD#SWPL-174940

Problem:
need power off the sy602x when suspend

Solution:
add the suspend/resume function

Verify:
s7d

Change-Id: I6227b5f2589520b9b0bb9381c62337c7b078b983
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-08-22 17:42:50 -07:00
jiebing chen 554afc353e Audio: fix adc reg config [1/1]
PD#SWPL-180378

Problem:
adc reg 4 is not right

Solution:
fix adc reg 4 config problem

Verify:
t6d

Change-Id: Iff0f5a612243872a45f2dc2e42060e7f5ea3868c
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-08-22 14:27:53 +08:00
jiebing chen 2742ba13f8 Audio: t6d bringup audio driver [1/1]
PD#SWPL-180378

Problem:
need support t6d audio driver

Solution:
add t6d audio driver

Verify:
s6d

Change-Id: Ic8f57592551fcde4c936c93baf86630a6f09c80b
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-08-22 14:27:52 +08:00
jian zhou f040a91d5b audio: set t3x earc tx idr trim and dmac slew value [1/1]
PD#SWPL-179089

Problem:
earc tx dmac Swing at TP2 is 320 mV - 480 mV, type is 400 mV.
earc tx cmdc Swing at TP2 is 160 mV - 240 mV, type is 200 mV.

Solution:
set t3x earc tx idr trim as 0x14 and dmac slew as 0x3 by hw
suggest.

Verify:
t3x

Change-Id: Iae665d818ed375430fbc054d0a0b4078a82a61ff
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-08-18 22:57:16 -07:00
qing.zhang 249e641fb5 audio: fix hibernate audio std [1/1]
PD#SWPL-146159

Problem:
std off: freeze and shutdown, pm will power off audio.
std on: only call restore, need restore some modules
and coeficients

Solution:
1. add hibernate for tdm/pdm/spdif/resample and the other modules need
freeze/restore
2. remove earc and effect

Verify:
T7C an400

Change-Id: I822c661ce9113789f3a5796b7ad9e2013131802a
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-08-07 21:48:20 -07:00
Shuai Li e2f1607544 audio: enable earcrx CS mute function [1/2]
PD#SWPL-177511

Problem:
EARCR_RX_CERT audio test mute/unmute doesn't work.

Solution:
Add channel status mute bit change handler to mute/unmute
earcrx spdifin.

Verify:
SC2: ohm soundbar

Change-Id: I058a16e635ddaee1128ba990875def9c2f4122c5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2024-08-01 04:10:05 -07:00
jian zhou 86264a6508 audio: fix HFR5-2-39: eARC RX HDMI_HPD and TX EDID Test FAILED [2/2]
PD#SWPL-177527

Problem:
HFR5-2-39: eARC RX HDMI_HPD and TX EDID Test FAILED.
root cause: DUT does not reread the HDMI EDID in the
eARC TX after HDMI_HPD returns to "1".

Solution:
call hdmitx read edid interface after HDMI_HPD returns to "1".

Verify:
sc2

Change-Id: I0e93702e88be2a0084dff36cbc71d691dca1a505
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-07-31 01:52:33 -07:00
chuntian.miao c9e211fcdd Audio: fix no sound for switching mat to pcm [1/1]
PD#SWPL-176561
PD#OTT-61559

Problem:
switch to pcm from auto,sometimes no sound.

Solution:
HDMITX not prepare/reset fifo/buffer for
this switching action, some sink device can‘t
parse these data that causes no sound.

Audio invoke callback to inform hdmitx prepare
for this case. That can resolve this issue.

Verify:
local coffey + S7D

Change-Id: I3b733c0d2946e10696d60318e900c9bf99ec9a08
Signed-off-by: chuntian.miao <chuntian.miao@amlogic.com>
2024-07-26 06:05:50 -07:00
jiebing chen 2700917174 Audio: set earc rx trim efuse value [1/1]
PD#SWPL-176946

Problem:
need set trim efuse value for kernel boot up

Solution:
read efuse value in earc driver probe, if can't read
efuse value, then set default value 0x10.

Verify:
bl201

Change-Id: I8a43becbb1d5823851fa1ad0238a52c58f8cf588
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-07-22 21:53:53 -07:00
saisai.chang 23b37ec11e audio: start pdm clk enable [1/1]
PD#SWPL-172596

Problem:
1.pdm clk will close while arm sleep
2.sc2 not need vad driver

Solution:
1.keep pdm clk opening
2.disabled vad

Verify:
ohm

Change-Id: Iae661918a4a01fbe38dcc9772a5b528633d14e68
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-07-22 04:01:35 -07:00
wei huang f69d0471c6 audio: Play any video, unplug HDMI, MBOX speaker no output. [1/3]
PD#SWPL-175394

Problem:
The mute setting is wrong. So it causes this issue.

Solution:
It does right mute setting when switch to speaker device.

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

Change-Id: I1e6b9a39f8cc9a662707bbcaf9966582b433aeea
Signed-off-by: wei huang <wei.huang@amlogic.com>
2024-07-18 21:07:26 -07:00
haiyang.ren f01d3d3ce1 audio: s7d speaker mute/unmute invalid [1/1]
PD#SWPL-171292
PD#SWPL-170876

Problem:
The function and kctrl operate spk mute/unmute
at the same time, causing a conflict

Solution:
Add mute flag for determination

Verify:
s7d

Change-Id: I3711e695710eefb31f35fc83d5c16033846cac54
Signed-off-by: haiyang.ren <haiyang.ren@amlogic.com>
2024-07-08 03:00:53 -07:00
jian zhou a2b9c9b47b audio: fix s7d earc rx data wrong [1/1]
PD#SWPL-176238

Problem:
s7d earc rx data is wrong when tv send 2 channel data.
Rootcause: channel number sync is fixed 8 channel.

Solution:
1.channel number sync is setting by channel number.
2.optimized earc rx code

Verify:
S7D

Change-Id: Idb820a4865cf1482d38e691691cccc28d2b6c70b
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-07-07 20:15:18 -07:00
qing.zhang 69d2ca5cb5 audio: EARC suspend resume with earc mode off [1/1]
PD#SWPL-160717

Problem:
when earc mode is off, suspend/resume with no audio output,
because the d2a is poweroff when suspend, and no restore
when resume

Solution:
no need power down when suspend.
power d2s only just save power consume.

Verify:
T962D4-AT301

Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
Change-Id: Ib9fac42532f49cecab20d74849100c420fb4c57b
2024-07-07 20:14:15 -07:00
qing.zhang 8126955d98 audio: loopback can not use [1/1]
PD#SWPL-161894

Problem:
hfp capture error

Solution:
1. enable loopback with pdm and resample

Verify:
t7c

Change-Id: Iabacbe5e8df042a3efc07de2b8c1c965880afb6c
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-07-07 20:13:54 -07:00
jiebing chen f709ceca1e Audio: bringup audio driver for s6 [1/2]
PD#SWPL-173023

Problem:
support audio driver for s6

Solution:
support audio driver for s6

Verify:
bl201

Change-Id: I2c08b614805bc875ff9ec2a2fda93cdaeea833fe
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-07-05 10:40:49 +08:00
chuntian.miao 2b51dfb427 Audio: add protect code for oops [1/1]
PD#SWPL-175816

Problem:
oops happen

Solution:
oops happen in loopback probe if pdma is disabled,
because loopback use pdm as mic-src.
mic device(dev_src) is null if pdma is disabled,
so it leads to oops for null pointer dereference.
Here add judge null code to protect this code.

Verify:
local coffey + S7D

Change-Id: Ia12a834aeb1de597aed2a634c0fc2fcb44464821
Signed-off-by: chuntian.miao <chuntian.miao@amlogic.com>
2024-07-03 00:46:45 -07:00
shaohui.sheng 199f3cba3d audio: Fix subwoofer silent after resume [1/1]
PD#SWPL-173628

Problem:
Register parameters of subwoofer are not saved
after suspend and are not restored after resume.

Solution:
1.After suspend, save subwoofer's register parameters and
power off again
2.Restored register parameters after resume.

Verify:
test on t3x

Change-Id: I2b2b2324804cc4295b9456dc24eb41f2f34f0a53
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2024-07-02 03:09:45 -07:00
wei huang 12e0479dce audio: Speaker will output pop noise when do fast forward. [1/1]
PD#SWPL-167949

Problem:
There is DC signal from HDMI source device when
do fast forward operation.So it causes this issue.

Solution:
Enable DC cut filter to discard DC signal.

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

Change-Id: I4d3f3dc9b3e787c87d3c251890c956d6e01f89c8
Signed-off-by: wei huang <wei.huang@amlogic.com>
2024-06-24 02:36:29 -07:00
jian zhou 6401171742 audio: disable earc tx dmac force mode after earc discovery [1/1]
PD#SWPL-170862

Problem:
there is no sound from earc tx after suspend and resume.
root cause: after resume, dmac force mode is enabled, and it is arc mode,
there is heartbeat signal, but there is no dmac signal.

Solution:
disable earc tx dmac force mode after earc discovery.

Verify:
t5m

Change-Id: I4b621b0fda51f2c5f91d89375c5638b9c1938159
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-06-20 23:42:02 -07:00
qing.zhang 8fc85981fc Audio: G12A kernel 5.15 need oe pin function [1/2]
PD#SWPL-158794

Problem:
oe pin can't work

Solution:
add oe pin control

Verify:
g12a

Change-Id: I43145d13958d9928eb839e8173e1b8fbd2dafbe2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-18 05:51:44 -07:00
sijia.lin 0b60146f4b Audio: remove dts-hd format clk * 4. [1/2]
PD#SWPL-169294

Problem:
for dts-hd 6.144 M/s can't playback.

Solution:
control the clk according to sample rate for different
data rate for dts-hd.

Verify:
use sc2

Change-Id: I88a7bec3f07f589650f00eeb9de5ee9a056b1ed6
Signed-off-by: sijia.lin <sijia.lin@amlogic.com>
2024-06-07 01:03:36 -07:00
jian zhou b98538abdd audio: fix spdifin crash [1/1]
PD#SWPL-169936

Problem:
BUG:sleeping function called from invalid context.

Solution:
use request_threaded_irq instead of request_irq.

Verify:
A5

Change-Id: I2c9b48be3cac9732da6ee908b7165a56ef2e75e2
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-06-06 08:03:50 -07:00
qing.zhang 9a461c7cc4 audio: resample num error [1/1]
PD#SWPL-169776

Problem:
chip info num is not meeting with the real used resample numble.
resample check error when resample B is disabled.
dts only enable resample A, when check resample number, the
resample attach module will error. For example, chip info numble set to
2;when resample A and B all are enabled, the attach module will be 8
for hdmi in and 7 for loopback A; if disable  resample B, the attach
module will be 8 and 0. once tinycap tdmin with to->src = 0, the toddr
bit 27 will be enable, which control the no use bit and cause toddr
hangup

Solution:
1. fix check resample number flow, by use real probe chip info and id

Verify:
ross

Change-Id: I4076024995fd5fdbf5dbbb6b2d7effa990cfbf8e
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-04 07:58:31 -07:00
jian zhou 5b97bd7c08 audio: fix s4d pdm crash when start capture data [1/1]
PD#SWPL-171153

Problem:
s4d pdm crash when start capture data

Solution:
enable dclk after set rate by the hw and vlsi suggest

Verify:
s4d-oppen

Change-Id: Ic7f0252e28adfb28ad1e0ad8c63a3d64ada4341c
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-05-30 00:04:26 -07:00
qing.zhang cd39c3771d audio: Speaker output for sy6026 [1/1]
PD#SWPL-170755

Problem:
No speaker output for sy6026

Solution:
1. use the sy6026 i2c original api
2. update symbol, it was included in stg already
3. issue from SWPL-169746

Verify:
ross

Change-Id: I525ace5ebfdc5beb4afea40a0c80fb0a5808b6d5
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:29 -07:00
qing.zhang 9b6c39d14b audio: ad82128 gpio control [1/1]
PD#SWPL-170755

Problem:
od pin can not control

Solution:
1. use gpiod api
2. modify dts pin reset config

Verify:
Ohm/ross + D626 board.

Change-Id: I9ff8cda3ee17b3cd65fb96e7466c24c0a3fc26b7
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:25 -07:00
jiebing chen 6ad0069c5f Audio: remove xrun kernel info log when input read data error [1/1]
PD#SWPL-168784

Problem:
T3X}{Android U}{AOSP}{ms12}XBOX or PS5 set input ATMOS audio,
audio noise.(3/3,APPLE TV BOX OK

Solution:
remove xrun log

Verify:
use T3x

Change-Id: I970103bce2980a9683c743daee44b97ade2609ad
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-05-28 23:52:50 -07:00
jiebing chen f5e519f1ca Audio: pdm add mute function when start up [1/1]
PD#SWPL-165912

Problem:
some glitch when pdm record before start

Solution:
mute the glitch when record

Verify:
use t7

Change-Id: I8ccbeda19221ab26ade9775067c87b8a52b5f166
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-05-27 01:52:56 -07:00
qing.zhang 64dab4a33f audio: loopback channel sync issue [1/1]
PD#SWPL-169715

Problem:
1. loopback channel sync error, when loopback data in source is
disabled, the loopback channel sync original channel sync
must not be set.

Solution:
1. when only use loopback lb source, disable the original channel sync

Verify:
Ross Ref201

Change-Id: I116f7d5d28e5eb25c7ca2d63f03986d0ff3fa951
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-22 00:00:07 -07:00
jian zhou 3a977dee6d audio: fix acodec is on when system entry shutdown [1/1]
PD#SWPL-162865

Problem:
acodec is on when system entry shutdown.
rootcause:when shutdown, dapm_power_widgets will set SND_SOC_BIAS_ON,
and then open acodec.

Solution:
remove dapm_widgets and set_bias_level callback setting.

Verify:
T3X

Change-Id: Ia288e86be1f968ee5717bb75eeb939be34f5229a
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-05-16 07:38:08 -07:00
qing.zhang 55d2a39170 audio: hisense earc and resample feature [1/1]
PD#SWPL-168498

Problem:
1. resample
loopbackA with resample_B for 4micin + 4LB.
resample_B only support 2ch resample process, which cause signal
aliasing;
2. earc tx pop issue for some devices

Solution:
1. select resample_A module for loopback 4 +4
changlist from:https://scgit.amlogic.com/#/c/407913
2. holdbus with format change control
changlist from:https://source.amlogic.com/c/tv/customer/
ay30a4/kernel/common_drivers/+/26293

Verify:
T5M

Change-Id: I0eefa11d644a9e27c58e5ce7227b107245e56158
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-16 05:55:16 -07:00
jian zhou 518ccb3334 audio: fix sleeping function called from invalid context [1/1]
PD#SWPL-168067

Problem:
BUG: sleeping function called from invalid context
at kernel/locking/mutex.c:285.
[<c030dd24>] show_stack+0x28/0x2c
[<c103e7a8>] dump_stack_lvl+0x48/0x54
[<c03705cc>] ___might_sleep+0x164/0x188
[<c104283c>] mutex_lock+0x28/0x114
[<f171f9d0>] earctx_init+0x30/0x158 [amlogic_snd_soc]
[<bf5ecf70>] hdmirx_timer_handler+0x4c/0xd0 [aml_media]
[<c03e29d8>] call_timer_fn+0x3c/0x228
[<c03e285c>] __run_timers+0x1f4/0x334
[<c03e19a0>] run_timer_softirq+0x24/0x38
[<c0301488>] __do_softirq+0x118/0x4a4
[<c0339f54>] __irq_exit_rcu+0x94/0x10c
[<c0339fe0>] irq_exit+0x14/0x1c
[<c03af080>] handle_domain_irq+0x7c/0xb4
[<c0910c70>] gic_handle_irq+0x68/0xc4

Solution:
schedule a task for access the register in earctx init function.

Verify:
T5W

Change-Id: I6858ac36957637312aaa39a3aa8a18572064daf6
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-05-11 14:31:35 -07:00
jiebing chen 40121676bb Audio: add toddre and fddre support [1/1]
PD#SWPL-95761

Problem:
need to use fddre and toddre

Solution:
need to use fddre and toddre

Verify:
use T3-ar301

Change-Id: I21fa2f4d2c8a3ea3b265f2d5130ab9f7c7abfa72
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-05-06 04:24:38 -07:00
jian zhou 210d3eae7e audio: add arc in feature [1/1]
PD#SWPL-145976

Problem:
Earc in not support

Solution:
Merge ARC in related function from android S openlinux.

Verify:
sc2

Change-Id: I882854ef02486b263d6cc1ac856e97781b03314a
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-26 00:04:15 -07:00
shu.wang a7907825a3 audio: fixed A1 PDM recording data abnormality problem [1/1]
PD#SWPL-166773

Problem:
When using PDM recording, pdm_sysclk will be enabled repeatedly.

Solution:
Remove duplicate or unnecessary clk enable operations.

Verify:
A113L-AD403

Change-Id: Ie2efbe77d7b9b49cbbef67c130beb2d3dbd6a1a9
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2024-04-26 00:04:09 -07:00
qing.zhang 861319cbd6 Audio: add earc rx for s7d [1/1]
PD#SWPL-163105

Problem:
new earc Rx design

Solution:
changelist from https://scgit.amlogic.com/#/c/417153
1. new default setting for arc in
2. remove pll refresh when startup
3. when cmdc init, need refresh pll after pll default setting
4. force channel sync for channel mapping
5. add dmac bit29 check for common arc check
6. add iec raw channel status check
7. use chip info(arc_ch_sync/arc_in_new)

Verify:
use s7d

Change-Id: Id681334bfde57bfe71a870a16859e24712e262e3
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-24 02:06:36 -07:00
qing.zhang 67a1463db4 Audio: for s7d new codec sy6026 [3/3]
PD#SWPL-166106

Problem:
B201 use sy6026 instead of analog speaker

Solution:
kernel part, only ref b201 use the codec
1. integrate sdk
2. fix i2c addr from 0x54 to 0x2a
3. fix function error
4. review setting for PBTL design, reg 0x22 from
0x1 to 0x3
5. use soft unmute/mute
6. remove pdm pin GPIODV_5 for codec

Verify:
use s7d ref board 201

Change-Id: Ied29b57736c0045bd2ff98bab138f4b9fc91afcf
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-23 04:08:55 -07:00
jian zhou 8129fedced audio: fix eARC TX pop sound issue [1/1]
PD#SWPL-160611

Problem:
There is pop sound when system bootup and play ddp files
with DENON AVR-X3800H connected.

Solution:
Delete eARC log, and then there is no pop sound.

Verify:
T3X & T5M

Change-Id: I23bdd41985efaafd4a1f9f8067fe4871a0593e20
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-22 21:52:59 -07:00
jian zhou 181e3c3f13 audio: fix earc tx watch dog issue [1/1]
PD#SWPL-161355

Problem:
when suspend entry and it close clock,
but there is some access register action on other places.

Solution:
add mutex lock for critical region.

Verify:
t3x

Change-Id: I783c96b39f6a7ba4469f0888f8625ad8140ef3fa
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-21 20:44:27 -07:00
Zhe Wang 3146e09303 audio: set PDM LPF/HPF filter parameters mode to improve ART test [1/1]
PD#SWPL-163636

Problem:
ART FRR and WER test fail

Solution:
FRR test case of ART, high and low frequency noise affect
the detection rate.add LPF and HPF filter to improve it.

Verify:
t5m

Change-Id: Iab7cf909f2939a234079cfb2bd3af32a9f8744c5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2024-04-18 04:55:06 -07:00
jian zhou 7b6721ae4e audio: fix earc tx uevent missing [1/1]
PD#SWPL-165521

Problem:
there may be no rx_cap_chng interrupt, and
so missing earc status uevent.

Solution:
setup a delay task which send earc tx status
200ms later when earc discovery success.

Verify:
t3x

Change-Id: I15b95946f9d0813cd0a6bfc3b9229fa297c35cd9
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-18 04:50:10 -07:00
haijun.gu fbbc5abe6a audio: A113L AUDIO_AILN as loopback datain_src,no sound [1/1]
PD#SH-19162

Problem:
A113L AUDIO_AILN as loopback datain_src,no sound

Solution:
loopback set format

Verify:
verification ok

Change-Id: I997b3b1959476de54c108a1c0cbea47e9fa16a22
Signed-off-by: haijun.gu <haijun.gu@amlogic.com>
2024-04-18 04:49:48 -07:00
jiebing chen 0445c7fe98 Audio: add loopback channel sync and tdm fmt [1/1]
PD#SWPL-158275

Problem:
loopback (8+4) not work

Solution:
add loopback channel sync and tdm fmt

Verify:
use t7

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: Icaa6ae316a702fc005869f9753b70713b5d3a7e7
2024-04-16 05:04:39 -07:00
jian zhou 7cce44e89a audio: keep arc mode continue output [1/1]
PD#SWPL-160783

Problem:
arc out noise when switch format.
root cause:there is a bug when control earc tx
request frddr reset bit, and the data maybe
misaligned.

Solution:
use the new method by vlsi suggest, control
earc tx frddr reg clear by init bit.

Verify:
t3x

Change-Id: I64a06ca9a59aa8614b1c58a9cd8cbf2c6ca65928
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-15 04:44:01 -07:00
qing.zhang b06f780376 audio: the status of spdif mute changed when resume [1/1]
PD#SWPL-143238

Problem:
the spdif was unmuted when resume

Solution:
do not change the status of mute/unmute when resume

Verify:
S5

Change-Id: I063e56f5f652994122d50d6fb915de197e6ccd8a
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-14 22:35:54 -07:00
Zhe Wang 13b27b3def audio: support 32bit audio record in ATV source [1/1]
PD#SWPL-164674

Problem:
All TV source should support 32bit audio

Solution:
Expand 16bit audio data from FRATV module to 32bit

Verify:
T5M

Change-Id: Ic975a7c78240df472a7b7a7ae809e5eaabf49f14
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2024-04-10 21:46:50 -07:00
jian zhou f8250da2d6 audio: remove extcon function [1/1]
PD#SWPL-162520

Problem:
there is selinux issue when access extcon path.

Solution:
use uevent instead of extcon function.

Verify:
T7C

Change-Id: If03ce34921a120582a6efdc5b823983709e4d9b7
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-08 03:03:11 -07:00
jian zhou a87a6d9391 audio: fix earc Cert HFR5-1-35 failed [1/1]
PD#SWPL-159771

Problem:
get CDS info which is not ready by the spec.
rootcause:when the earc connection success, it send
the earc state to framework, then send connet msg to
audio hal, and audio hal get cds info, but the cds is
not ready by the spec.

Solution:
when we get the cds ready info, then send the earc
connection success event.

Verify:
T3X

Change-Id: Ie80a0523d71330d7dd47040cc7f7ec57228f3133
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-01 04:39:33 -07:00