PD#SWPL-140396
Problem:
There are two methods for hdmitx audio setting:
hdmitx_notify_callback_a() and old API
hdmitx_ext_set/get_i2s_mask().
This may make concurrency issue.
Solution:
Unify the audio parameters setting with callback
Verify:
sc2-ah212
Test:
DRM-TX-33
Change-Id: I0c1dd19b66d783290008a83428141dd2a427ea01
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
PD#SWPL-136744
Problem:
hifipll not disable when power off
Solution:
when power off, disable hifipll clk
Verify:
use txhd2
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: Ida793f3a43f118d356a8b8d199aba3e9f2de4f16
PD#SWPL-132354
PD#OTT-43684
Problem:
when the audio hw sample freq changes, the audio sample packets
still keep send out. Compared with 3rd devices, there will stop
the sample packets, only keep the ACR send out.
Solution:
Optimize the audio setting flow
disable ACR in PREPARE
finial enable ACR
sync the aud_src_if and aud_output_ch variables
when prepare, add the temporary CT_PREPARE
Verify:
sc2
Change-Id: Ic3a589fd16124e3036d93b766d84f600bf9cb811
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
PD#SWPL-137289
Problem:
some AVR with pop noise when spdif out is set to mute
Solution:
On TV platform, mute spdif out with soft mute register
Verify:
T5M
Change-Id: I22c30a301c655d1fce66a7f4b6c7510d0729b945
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
PD#SWPL-127860
Problem:
1. arc pop when switch speaker and AVR
2. there is speaker audio when switch earc mode
Solution:
1. switch to force mode for consume data when switch earc mode
2. unmute earc tx when the starem is running
3. don't send disconnect msg when switch earc mode
Verify:
t5m
Change-Id: I2d31656fbaeb3c8837ef883517524fba50e9c0c1
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
PD#SWPL-134941
Problem:
1. log print to much when dtv in
Solution:
1. change to pr_debug
Verify:
txhd2
Change-Id: I823c9ed0d893737821e768a37a72c8175c3bc8f4
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
PD#SWPL-131815
Problem:
1.AED resume has not restore the AED parameters such as volume gain、
slew count、mute、Clip、mixer、EQ、DRC、DC cut and ND.
2.resample can not work when power domain reset
Solution:
1.need restore AED parameters when suspend/resume,
once the audio power domain is reset.
2.need restore the resample parameters.
Verify:
A4
Change-Id: I4cbf0a70293fbc5e38a3bcd19aa048d3fbcea514
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
PD#SWPL-133400
Problem:
For kernel version 5.15,the open source code change
sequence of closing ALSA device.It close CPU DAI first
and then close codec DAI. It will cause pop noise.
And there is also hardware issue for pop noise.
Solution:
1.Change this sequenceZ.Close codec DAI first and then
close CPU DAI.
2.Fix this hardware issue by mute.
3.Increase gain step.
Verify:
Test on board T5M. It works well now.
Change-Id: Ie86e395e92d62ae5ba08b16e145b679730964a63
Signed-off-by: wei huang <wei.huang@amlogic.com>
PD#SWPL-128467
Problem:
1. when suspend && resume, the dclk sometimes not change to hifi
Solution:
add set parent instead of write reg directly
Verify:
t5m
Change-Id: I62509c2d71a4d3710e9f9fd9359c78397d0e8461
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
PD#SWPL-131727
Problem:
The current driver can't adapt to the A1 only input spdif interface.
Solution:
1.Add "only_capture" configuration item for A1 spdif.
2.Modified that the output parameters are no longer
read from DTS when "only_capture" is configured.
Verify:
A1-A113L-T404
Change-Id: I62a022ba3a6df77c8822de1b137416ac1dc1a77a
Signed-off-by: shu.wang <shu.wang@amlogic.com>
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>
PD#SWPL-132441
Problem:
when str mode with vad, the kernel panic may happen
Solution:
1. use spinlock for vad status change
2. use vmalloc instead of kzalloc
3. add toddr control when VAD buffer change
Verify:
use t5m
Change-Id: Iefbae217608a2b46d94ffb62c3cdd185c0eb8e9a
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
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>
PD#SWPL-130775
Problem:
hifipll not work when disable fix pll, need reinit
Solution:
disable audio clk and hifipll when enter into suspend
Verify:
use Txhd2
Change-Id: I6881915cf6f03637243d31348fc67d4f9a81ac34
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
PD#SWPL-132243
Problem:
merge eARC tx related fix to reference
Solution:
TV-82137 mute arc before stop spdif
TV-81075 clear dmac status when earc is idle1
TV-83914 add hold bus and arc fade out
TV-85602 mute arc when ss_free and mute/unmute only at arc enable
TV-86164 fix earc crash, use delayed_work instead of work_struct
TV-86092 send disconnect msg when earc is idle1
TV-85119 mute arc when set earc mode
SWPL-107425 free fddr need to clear the same source flag
Verify:
t5m
Change-Id: I55864a41624b24d7846205da5d1b18f084e6203e
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
PD#SWPL-128804
Problem:
1. platform HDMI2 ARC connect some AVR(YAMAHA RX-V4A),
can't resume after suspend;the tx_resume_work_func wake up early,
the eARC has not resume to restore clk for hw write
Solution:
1. use the resume when callback
Verify:
verify by t5m
Change-Id: I54656557d56a77988911aa4d8647a8874aec8872
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
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>
PD#SWPL-131198
Problem:
support hdmirx audio for txhd2
Solution:
support hdmirx audio for txhd2
Verify:
use txhd2
Change-Id: I489c27dadf58592daf4c7a9f5bd2afbc767b4de7
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
PD#SWPL-130072
Problem:
Zapper size increase after txhd2 merge back to trunk
Solution:
optimize some code and add macro to reduce size
module: pinctrl, clk-measure, adc, audio, tvin, dtv_demod
ddr_port_desc, and amvecm
Verify:
Zapper
Change-Id: I0c781a657811cf664ffdbb4d9c18060e9b39554e
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
PD#SWPL-127490
Problem:
the speaker has "po" noise when bootlogo displayed
Solution:
when audio dac init, mute spk pa
Verify:
use txhd2
Change-Id: I641252c2ceccdd11cfcb99d0eedf5d71899a6d38
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
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>
PD#SWPL-123541
Problem:
need support pdm dclk 2.048M for 32k
Solution:
support pdm dclk 2.048M for 32k
Verify:
use t3x
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: Idef51bd1047f956fe1933f76c4af7c19d176a1fd
PD#SWPL-126727
Problem:
after STR, audio volume changed
Solution:
In resume, audio AED master & channel volume
is set to default value. Only set master & channel
volume after platform start.
Verify:
t5m
Change-Id: Ic54782d1d456c5f864a7bf55b9b0d706d442f149
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
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>
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>
PD#SWPL-125525
Problem:
the earc timeout max is 550ms by spec,
the register default value is 500ms, thers will timeout for
some AVRs
Solution:
set earc timeout value as 550ms
Verify:
t7c
Change-Id: Ib552d6f078fece32744af2876d2211826ca9b268
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
PD#SWPL-124867
Problem:
{Android R}{T5M}{HDMI}the platform will crash and restart.
Solution:
If the dts regmap is not configured, return 0
Verify:
use t3x
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: If4e9aeb0f75529a6effdd4eaea2bd6072aea8a3f