Commit graph

3,740 commits

Author SHA1 Message Date
Cong Tang
1a11bc825f ASoC: update token mask for port id in adm callback
With hs tdm port ids extension, the total port ids exceed 256
and mask 0xFF is not enough to get hs tdm port ids in adm open
callback which cause adm open timeout issue.

Change-Id: I73f3468677433d060f9585a213dea6828d6e16e1
Signed-off-by: Cong Tang <congt@codeaurora.org>
2021-05-27 11:22:16 -07:00
qctecmdr
5d2599a9f0 Merge "asoc: fix KW issue of using uninitialized variable" 2021-05-27 06:41:01 -07:00
qctecmdr
962dbda2ea Merge "ASoC: msm-audio-effects-q6-v2: Change error logs to debug logs" 2021-05-27 06:41:01 -07:00
qctecmdr
2315f62c6a Merge "APR FE : SSR Handling in LAGVM" 2021-05-27 06:41:01 -07:00
Tahir Dawson
6955a33fec asoc: sa8155: Add support to configure proxy capture channels
Add mixer control to set number of backend channels for AFE_PCM_TX

Change-Id: I978ab0a0b00088efd23e544b18b8f88147109373
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2021-05-25 13:10:21 -07:00
qctecmdr
83feb0e6f9 Merge "ASoC: add voip echo ref support for QUIN_MI2S_RX" 2021-05-22 23:44:00 -07:00
qctecmdr
add48d531b Merge "asoc: msm: change the ifdef for early chime marker" 2021-05-22 23:44:00 -07:00
qctecmdr
7c5214594f Merge "dsp: add ADSP subsystem mount start KPI marker" 2021-05-22 23:44:00 -07:00
qctecmdr
48734a1623 Merge "ipc: apr: Add KPI marker to notify ADSP is ready" 2021-05-22 23:44:00 -07:00
qctecmdr
7cd721cdef Merge "afe: release codec port when afe starts failed" 2021-05-22 23:44:00 -07:00
Zhou Song
fad1a7b95c asoc: fix KW issue of using uninitialized variable
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.

Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-05-21 15:22:59 +08:00
Viraja Kommaraju
bb547d5de5 APR FE : SSR Handling in LAGVM
Fix to set apr Q6 and snd_card to proper state for first SSR

Suggested-by: Karthik D K <kdk@qti.qualcomm.com>
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Change-Id: Ia0423b033ee4aae196005e526cf11c3324af5992
2021-05-20 23:48:04 -07:00
Vatsal Bucha
8184109a44 ASoC: msm-audio-effects-q6-v2: Change error logs to debug logs
Change error logs to debug logs for msm_audio_effects_volume_handler
so as to avoid crash during excessive logging.

Change-Id: I83c6e9122493bda09ae5b734ff4dc2dbba7bcb0c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-05-20 16:12:21 +05:30
qctecmdr
d5397f5c58 Merge "ipc: apr: Fix apr buffer override issue" 2021-05-19 23:52:16 -07:00
qctecmdr
bd89f17f82 Merge "dsp: Add support for setting/getting mad type for proxy capture" 2021-05-19 06:19:18 -07:00
qctecmdr
0df65e3b28 Merge "asoc: add support to set adm channels for a2dp capture" 2021-05-19 06:19:17 -07:00
Viraja Kommaraju
b90792e9ca ipc: apr: Add KPI marker to notify ADSP is ready
Add time stamp marker to notify that ADSP load is complete.

Change-Id: I101d8be79dd46d779502b9d90aa0fc5fcc29046f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2021-05-18 02:37:31 -07:00
Viraja Kommaraju
b4719f9427 dsp: add ADSP subsystem mount start KPI marker
Add the ADSP start KPI marker before starting the PIL routine.

Change-Id: Ia52589a7d3d433136d41178e67841e02347c174c
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2021-05-18 02:34:39 -07:00
Deru Wang
7d17147b04 asoc: msm: change the ifdef for early chime marker
CONFIG_MSM_BOOT_TIME_MARKER has been removed. So 
switch to use CONFIG_MSM_BOOT_STATS to print boot
marker for audio.

Change-Id: I977ceecce7e06706d34acbab3d9b9b0a24abde58
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-05-17 17:53:19 +08:00
Kunlei Zhang
d9e91f5532 ASoC: add voip echo ref support for QUIN_MI2S_RX
Add voip echo ref support for QUIN_MI2S_RX.

Change-Id: Ife767d38234e685ad1b096499fabe39db6ff5703
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-05-17 16:12:13 +08:00
Zhou Song
f16ce29169 afe: release codec port when afe starts failed
When afe port starts failed, allocated port should
be released to avoid subsequent allocation failed.

Change-Id: If0cacce296d14135d23bf45e47de5b253372ea31
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-05-16 23:06:33 +08:00
Zhou Song
c7ae2f6f04 asoc: add support to set adm channels for a2dp capture
Add new mixer ctl to set the adm channels for audio
capture usecase over a2dp.

Change-Id: Id1bf634e45f8a11514ce7ac367d2f2a0afe140bc
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-05-12 12:22:36 +08:00
Tahir Dawson
7774941730 dsp: Add support for setting/getting mad type for proxy capture
Add support for setting and getting afe port mad type
for RT Proxy Tx port

Change-Id: I7fc550552883b9eee229af4165d4d564578a889a
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2021-05-11 09:12:09 -07:00
Hexuan Zhu
2b79066d24 asoc: clean KWissue warnings
Add change in q6asm.c to fix uninitialized warning.
Add change in msm-pcm-routing-v2.c to fix out of range warning

Change-Id: I9d29b3cfd3f57ebf07d28ecd775759495b4b3a70
Signed-off-by: Hexuan Zhu <hexuzhu@codeaurora.org>
2021-05-10 19:34:23 -07:00
qctecmdr
a64a703eb7 Merge "uapi:add msm_audio_ar.h for AudioReach Elite Co-existent" 2021-05-10 05:35:31 -07:00
qctecmdr
34d009eac4 Merge "q6afe: add support for LC3 decoder" 2021-05-10 00:29:10 -07:00
Narsinga Rao Chella
8043e5b0f6 ipc: apr: Fix apr buffer override issue
Need use one global lock to prevent multiple threads visit single hab
socket at same time, as hab can't guarantee that the coming message is
received by the right thread.

Change-Id: Ie63a48cd9518327c9e4078000e613767ee1321b5
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>
2021-05-07 13:17:35 +05:30
qctecmdr
0fa983ffe2 Merge "ASoC: sa8295 support upto 10 TDM interfaces" 2021-05-04 23:58:43 -07:00
qctecmdr
d295bb719b Merge "asoc: wsa883x: Update wsa8832 variant" 2021-05-04 23:58:43 -07:00
qctecmdr
e305695de0 Merge "asoc: fix chmixer for playback and record" 2021-05-04 23:58:43 -07:00
qctecmdr
0d2dd62a27 Merge "ASoC: routing driver update for septenary tdm interface" 2021-05-04 23:58:43 -07:00
qctecmdr
4b7fb6bf2b Merge "ASOC:Skip first buffer if not full" 2021-05-01 01:24:33 -07:00
qctecmdr
a4fc0b84aa Merge "bolero: tx-macro: Fix link status not connected issue due to clk not enabled" 2021-05-01 01:24:33 -07:00
Siddhesh Sahane
22868f911e q6afe: add support for LC3 decoder
add support for LC3 codec capture

Change-Id: Ib951f5889e700e669ec5bbc9d81b107c35a58f79
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-04-30 17:24:01 +08:00
Hexuan Zhu
44a34d8c47 asoc: fix chmixer for playback and record
If we want to make chmixer work, chmixer input map should be
the same as asm output map, output map should be the same as
adm input map. and need to reverse when record.

Currently if we set chmixer input map under pre-run, the override
flags are not set true, and also default branch didn't work when
record.

Also chmixer didn't support customer value for record during run-time.

This change make chmixer take effect when playback and record
for both default value and customer value during pre-run and run-time.

Change-Id: I3d1455092d41fa6a30c3ddf09c3b0b3023d9cc10
Signed-off-by: Hexuan Zhu <hexuzhu@codeaurora.org>
2021-04-29 10:57:39 +08:00
Cong Tang
65a3c534ee ASoC: routing driver update for septenary tdm interface
update routing driver to support septenary tdm interface.

Change-Id: I19a02ac13f1afcdff5b01b06919640fec6d70d1f
Signed-off-by: Cong Tang <congt@codeaurora.org>
2021-04-28 17:25:35 -04:00
Laxminath Kasam
c747081be4 asoc: wsa883x: Update wsa8832 variant
Add support for WSA8832 variant.

Change-Id: I2fdbe7bf00eb3d10087520749d65b902802619bd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-04-27 14:16:14 +05:30
E V Ravi
910c1c1c7f audio-kernel :Send response to rtac module for cmd_state_pp in non waiting
APPS sends timeout due to mishandling of callback event between RTC and ASM
driver even if they get callback from ADSP. Check for the cmd_state_pp in
ASM before RTAC callback.

Change-Id: I78cb6735b19b53a44f550948efd05446ff8950ad
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2021-04-25 23:50:09 -07:00
E V Ravi
8d11a166ff ASOC:Skip first buffer if not full
Mitigate the issue from ADSP side during low latency record where the PP service takes long time
to propagate the media format and causes buffer drops and time stamp discontinuity, discard the
first partial buffer received from ADSP.

Change-Id: Ib5ef817868ccd4ae597b764ddd85b18b7d870615
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2021-04-25 23:49:36 -07:00
qctecmdr
e2c2fd507c Merge "ASoC: wcd-mbhc: Resolve warning log when mutex destroy before unlock" 2021-04-24 00:36:55 -07:00
qctecmdr
14fec847d4 Merge "dsp: msm_audio_ion_vm: Fix Kernel panic and add token logic in SMMU FE" 2021-04-24 00:36:55 -07:00
Alex Zou
e6e5eb56b2 uapi:add msm_audio_ar.h for AudioReach Elite Co-existent
add msm_audio_ar.h which is a copy of msm_audio.h from AudioReach audio driver branch.

Change-Id: I35b7e3a85a979517fc2a9526f0bdec90542c86c6
2021-04-23 11:06:02 -07:00
Vatsal Bucha
5707577c13 ASoC: wcd-mbhc: Resolve warning log when mutex destroy before unlock
Resolve warning log when hph pa mutex lock is destroyed before
unlock. Initialize hph pa locks as global lock and do not destroy
during SSR to resolve issue.

Change-Id: Idc5af793294f7fdc8dbcc17770f68fe2c46ab337
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-04-22 05:53:57 -07:00
Vatsal Bucha
18342de177 bolero: tx-macro: Fix link status not connected issue due to clk not enabled
Sometimes link status is not connected due to tx_mclk_users
not being properly updated. This is due to tx_mclk_users
enable and disable not being protected by common mutex lock.
Add mutex lock whereever it is accessed to resolve issue.

Change-Id: Ibba208be1f2d3eaf63c49e434c2ae48bc3b5b2d8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-04-22 11:41:14 +05:30
qctecmdr
2ae270f045 Merge "ASoC: DAI driver support upto 10 TDM interface" 2021-04-21 06:12:30 -07:00
qctecmdr
0058626e98 Merge "asoc: support per-stream ec_ref chmix" 2021-04-14 10:50:10 -07:00
qctecmdr
9f7a305e93 Merge "q6asm: retry asm_open_read and asm_open_loopback during session id conflict" 2021-04-14 10:50:09 -07:00
qctecmdr
b2e6980433 Merge "ASoC: keep align of the FE pcm id" 2021-04-14 10:50:09 -07:00
qctecmdr
479e545564 Merge "dsp: q6asm: Delete all nodes in mmap_handle_list during RESET_EVENT" 2021-04-14 10:50:09 -07:00
qctecmdr
3075f30b7f Merge "asoc: swr-haptics: Toggle swr-slave-vdd supply for SSR recovery" 2021-04-14 10:50:09 -07:00