Commit Graph

107 Commits

Author SHA1 Message Date
qctecmdr
2315f62c6a Merge "APR FE : SSR Handling in LAGVM" 2021-05-27 06:41:01 -07:00
qctecmdr
48734a1623 Merge "ipc: apr: Add KPI marker to notify ADSP is ready" 2021-05-22 23:44:00 -07: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
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
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
Deru Wang
5922d64b86 ASoC: add gvm config file for auto sa8295 platform
Bring up LV GVM audio module for automotive sa8295 platform.

Change-Id: If56b83c3bf0f49480bd1531474e5942c607741b0
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-03-31 19:28:14 +08:00
Hongtao Peng
eae52c27a7 ASOC: fix audio machine driver compile issue
LV Platform use the same LVGVM cause Kbuild mismatch issue

Change-Id: Iad092ebcbd991e52daedb87406920055528e3a1c
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2020-11-15 18:32:38 -08:00
Prasad Kumpatla
a07613afcd soc: Add ratelimit to supress the pr_err/dev_err.
Add ratelimit to supress the logs flooding at the
time of SSR.In all places defined ratelimit as,
in 1sec one debug msg prints.

Change-Id: I6dfe140848e5cecb1b311c432f8311cdf0615a58
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-10-07 10:21:42 +05:30
xsang
1513b912b3 ASoC: limit error log print rate
Limit error log print rate to avoid crash.

Change-Id: I76ff715cb98a19d2885ca89d281a882a898a8264
Signed-off-by: xsang <xsang@codeaurora.org>
2020-09-08 10:51:44 +08:00
qctecmdr
994eb4e818 Merge "ASOC: fix audio machine driver compile issue" 2020-09-03 18:06:23 -07:00
qctecmdr
6047761857 Merge "ipc: apr_vm: add symbol apr_register_adsp_state_cb" 2020-09-03 18:06:22 -07:00
Guodong Hu
0d65a666bc ipc: apr_vm: add symbol apr_register_adsp_state_cb
apr_register_adsp_state_cb is declared in apr.h.

Change-Id: Ifd5b9c53af62868076db066f12615af22f54f5be
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-09-01 00:48:19 -07:00
Guodong Hu
6d6529a694 dsp/ipc: update kbuild and header files for gvm bringup
Update Kbuild and header files in msm_audio_ion_vm.c
and apr_vm.c for kernel 5.4 gvm audio bring up.

Change-Id: I6bcd0e49f783aaec43a64ad308b817a474b30dc7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-09-01 00:47:51 -07:00
Fei Tong
111a594520 ASOC: fix audio machine driver compile issue
LV Platform use the same ARCH cause Kbuild mismatch issue

Change-Id: I803aeb3bbee45566b1f9e66b4a6c8b8c26ba86f3
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2020-08-31 14:48:19 +08:00
qctecmdr
b6adfb5938 Merge "ipc: apr: set q6 state down when ECONNRESET from TAL" 2020-08-29 00:30:36 -07:00
qctecmdr
4b151cba32 Merge "soc: qcom: qdsp6v2: promote priority of apr_vm_cb_thread" 2020-08-25 11:21:17 -07:00
Laxminath Kasam
35d2276eac ipc: apr: set q6 state down when ECONNRESET from TAL
When SSR happens, APR state can update to DOWN
immediately which ensures avoid continuous retry
for PCM open from userspace as audio clients check
APR state at pcm_open and return ENETRESET if
APR is down.

Change-Id: I60a6d217786b3d610b70adbd12d0e5f2a7c12205
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-24 14:05:31 +05:30
Han Lu
6d78e2c24d soc: qcom: qdsp6v2: promote priority of apr_vm_cb_thread
The promoting is necessary to prevent audio tick noise under
heavy cpu loading.

Change-Id: I3fccb3b758b5fb5571031902344e542886b89209
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-08-19 19:33:12 -07:00
Han Lu
8ab5ee64d9 soc: qcom: audio: remove unnecessary ack
Remove send/check ACK in HAB communication, it consumes HAB bandwidth
without necessity. Remove it to improve audio performance.

Change-Id: Idee1d0276f40d463186e3caea6c4b28ef16ab67c
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-08-19 19:32:20 -07:00
qctecmdr
06ed8063cd Merge "dsp: adsp-loader: Support ADSP restart recovery when stuck" 2020-06-17 06:08:08 -07:00
Deru Wang
f1a7ecab50 asoc: flags is used but is uninitialized
initialize flags to resolve static code analysis issue

Change-Id: I23e74050e69db6894b02cbc00605861abdce0e56
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2020-06-11 08:08:49 -07:00
Soumya Managoli
12aec928b6 ipc: apr: Support ADSP restart recovery when stuck
Add interface to register callback with adsp loader client.
When adsp is stuck and does not respond for apr_send_pkt,
resulting in continuous EAGAIN error, trigger this
callback to enable adsp subsystem restart.

Change-Id: Ib59cfdfba3313581d6612b872a2b7f1e19f8a76d
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-06-09 23:15:35 +05:30
Laxminath Kasam
e65c93c8f1 audio-kernel: Fix compile with CONFIG_DEBUG_FS removed
Add fix for compilation failure after remove
CONFIG_DEBUG_FS.

Change-Id: I94f851916e1c397848aa5d107774f7480a74270f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-05-20 13:00:49 +05:30
Vignesh Kulothungan
e0bdd11269 ASoC: update headers for upstream compliance
Update uapi header reference path to include
path prefix "audio/"

Change-Id: Ic7b1d22910b07be3ffe8d9f02514ed89facea974
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-06 11:26:15 -07:00
Prakruthi Deepak Heragu
6b2d8c3234 asoc: lahaina: Fix compilation issues when DEBUG_FS is disabled
Fix the compilation issues in audio drivers when CONFIG_DEBUG_FS
is disabled.

Change-Id: I6eeb2b36b054ba30431f7b045c182888997dc331
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2020-04-09 00:29:51 -07:00
Meng Wang
efd560a70b ipc: apr: update scm header file
Update scm header file folder.

Change-Id: I535f133f9da1553daf7ee37049b26e6cdf2d71dd
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-25 15:32:33 +08:00
Vignesh Kulothungan
d71ec81bb0 audio: update kernel version reference
Update kernel version references from 4.19 to 5.4.
Update symbolic links to new kernel version files.

Change-Id: I38baa52218b16e0b0c86ad898912d29ec4d3d516
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 17:04:52 -08:00
Vignesh Kulothungan
92187a5038 audio: Remove android make files
Remove android make files from audio tech package.

Change-Id: I21770bf64cef2bc767cdc81b0b864efff135bf84
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:55:09 -08:00
Laxminath Kasam
00f60bae1e bengal: enable compile of required modules
Update compile of required modules for bengal target.

Change-Id: If4d512b7270cc811a05524caac5292234a0ac437
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:40:48 +05:30
qctecmdr
a8878c531d Merge "audio-kernel: Update Kbuild support for bengal" 2019-08-25 03:13:29 -07:00
Vijayakumar Badiger
30a1c046b4 ASoC: Preliminary Android target definition for sdmshrike
Add target definition support for sdmshrike.

Change-Id: Ic87588d7aa9e14d2893bc1d6172cb35c34f6ede2
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-08-02 17:02:18 -07:00
qctecmdr
5dcf7dd485 Merge "ASoC: msm: update makefiles for auto platform support" 2019-08-02 07:11:19 -07:00
qctecmdr
3f29588ad6 Merge "ASoC: msm: Add audio support for sdmshrike on auto platform" 2019-08-02 07:06:59 -07:00
Laxminath Kasam
fdda2d8146 audio-kernel: Update Kbuild support for bengal
Update config file to pick for bengal in Kbuild files.

Change-Id: Ic86e22204bbc16ca751eceb0391e38b4a60ac8b5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-07-31 21:26:30 +05:30
qctecmdr
237662b0a1 Merge "audio-driver: Update build files for sa6155" 2019-07-29 02:50:05 -07:00
P.V. Phani Kumar
55a4312929 Initial target enablement changes for bengal.
Change-Id: I7296e39fcedd9ecec5bb788ac3706b297ac8d6d7
2019-07-24 23:19:33 -07:00
Derek Chen
e780bb9ce6 ASoC: msm: update makefiles for auto platform support
Update makefiles to use TARGET_BOARD_AUTO instead
of TARGET_PRODUCT for automotive platform support.

Change-Id: Ic688e8b13ba9c4b6f100c1acec50940053895d3d
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-20 19:27:19 -07:00
Derek Chen
583e3bf1c6 ASoC: msm: Add audio support for sdmshrike on auto platform
Add audio support for sdmshrike on automotive platform.

Change-Id: I39c70fd7ed66124827f55b7a6e0a834cf735d301
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2019-07-20 19:27:05 -07:00
Rahul Sharma
f53de7f9fb audio-driver: Update build files for sa6155
Enable conditional build for audio driver modules
specific to sa6155.

Change-Id: I58701a907242afcfe230623ff42b47c001e3d5f4
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-07-19 12:31:25 -07:00
Timothy Sham
4a6979f60e audio-driver: Update build files for auto LA-GVM
enable conditional build for audio driver modules for
automotive LA GVM.

Change-Id: I058f3e6ca557f8ca6d02e33e80f6c190b1a2a29e
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-06-25 13:11:38 -07:00
Cong Tang
1fa4e0449c audio-driver: Update build files for LA automotive
enable conditional build for audio driver modules for LA
automotive.

Change-Id: Ifb18ea6f8af531a99e29904c2245424657b42df7
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-06-20 13:50:31 -07:00
qctecmdr
1f03ebdb1a Merge "ipc: add audio apr virtualization support" 2019-05-21 20:34:45 -07:00
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Timothy Sham
150c909ba3 ipc: add audio apr virtualization support
Add support for virtualized APR frontend driver for audio.
Virtualized APR frontend driver resides in guest VM and
supports all legacy APR APIs. It will rely on MSM_HAB
to communicate with APR backend driver, which resides in
physical VM, where legacy SMD is utilized for communication
between APPS and ADSP.

Change-Id: I1df70a76defec17a45db93f3707c35e4fa796bc0
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-05-13 23:45:35 -07:00
David Ng
4025a25a24 makefile: kona: remove make export <all variables> instances
Replace all kernel make export <all variables> instances with
export of specific variables.  Depending on existing build
environment, exporting all as environment variables and
interaction with existing environment variable expansions
can lead to undefined behavior.

TODO:  This change is restricted to kona flow to narrow impact.
All remaining export <all variables> need to be evaluated and
fixed similarly via subsequent changes.

Change-Id: I9114b88f7511d1b3f9b496b76fb6da9db97772b8
Signed-off-by: David Ng <dave@codeaurora.org>
2019-04-26 23:44:02 -07:00
qctecmdr
66ae68b936 Merge "Audio: Add lito target for audio-kernel" 2019-04-25 06:46:40 -07:00
Vatsal Bucha
d284ff1e0c Audio: Add lito target for audio-kernel
Add lito target for audio-kernel modules.

Change-Id: Ic8b43df74504950e4baad9701abeddcf8f30b420
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-19 11:14:56 -07:00
Ramprasad Katkam
b91472bedb ipc: apr: Handle ssr return code from glink
Glink may receive ssr reset event before audio has received.
Handle the ssr return code from glink as ssr reset event
at apr.

Change-Id: I62058ad56bece93cac52f26446e9c780cba3c633
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-04-15 02:19:31 -07:00
Karthikeyan Mani
5670cbd6e3 dsp: afe: get apr handle before sending apr pkt
Make sure to get apr handle before sending a packet
so that it does not end up with no handle to send
the apr packet.

Change-Id: Iaaebee3ddc6c83896e4cb9dc8149d310fc7d67f1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-25 17:45:17 -07:00
Karthikeyan Mani
eca1a399c4 ipc: apr: check for packet size to header size comparison
Check if packet size is large enough to hold the header.

Change-Id: I7261f8111d8b5f4f7c181e469de248a732242d64
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-06 16:57:48 -08:00