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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>