Commit Graph

243 Commits

Author SHA1 Message Date
Prasad Kumpatla
e569b3b05e dsp: Defer clients probe, when audio notify probe is not complete.
Audio notify probe is defer and PDR state change is not happening before
the clients calls to audio_notifier_register(). Due to this the
service_data[service][domain].state remains as UNINIT_SERVICE (where service is
PDR domain is ADSP) and due to this audio_notifier_reg_client() return success
without registering to PDR service, which is incorrect. To avoid this, will
defer the client probes when the audio notify probe is incomplete.

Change-Id: Ib96bdb24dd92ea8b81a0201a7b48e917c7b1403c
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-07-27 10:32:03 -07:00
Prasad Kumpatla
6a758782b1 audio-kernel: select param id vote against sleep when enter to securezone
select param id vote against sleep when enter to securezone with the help of
mixer ctl from pal.

Change-Id: Icb0d6aba4b13edc0658e676eb89c996d440e9971
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-05-27 12:51:23 +05:30
Meng Wang
95c95b2d67 asoc: update digital_cdc_rsc_mgr_hw_vote API
Update digital_cdc_rsc_mgr_hw_vote_enable/disable API with device
info for easy debug. Also, add swrm clock enable checks during SSR.
When SSR happens, swrm->hw_core_clk_en and swrm->aud_core_clk_en will
be reset without resetting audio_vote and core_vote clk. This would
cause clk mismatch in audio driver and adsp and device fails suspending
when there's no audio usecase. Make this change to reset audio_vote
and core_vote clk when receiving SWR_DEVICE_SSR_DOWN.

Change-Id: I9875aac9f6faf8b6481457a70f31b005073369e0
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2022-05-06 10:50:36 -07:00
Phani Kumar Uppalapati
0ceec6c1ac audio-kernel: select RCO clock if lpi PCM logging is enabled
Select clock root as RCO for VA use-case whenever LPI
PCM logging feature is enabled.

Change-Id: I461b2afb9eeb595975d550d56c54e7548f0f2130
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-02-27 23:55:47 -08:00
sarath varma ganapahiraju
6b039c6b85 asoc: dsp: prm: Add support to send reg info to PRM for UPD
Send codec register's and its value to enable/disable EAR PA
when codec duty cycling is enabled.

Change-Id: I6ce7183bda3dd2d02829d280d27e5a5573e3efcc
signed-off-by: sarath varma ganapahiraju <ganavarm@codeaurora.org>
2021-09-15 22:21:07 -07:00
Prasad Kumpatla
d8f2af06e6 asoc: common: configure mi2s interface clocks
Add support for mi2s interface clock configuration.

Change-Id: I439de17670d9521898d8bde893255025eceab84d
Signed-off-by: Prasad Kumpatla <pkumpatl@codeaurora.org>
2021-08-11 13:51:01 +05:30
Amitkumar H
2daa21da03 ASoC: include: Remove obsolete header files
Remove to avoid maintenance of code.

Change-Id: I093518ff11486df229ed5276c90e463250be5679
Signed-off-by: Amitkumar H <amih@codeaurora.org>
2021-06-17 20:52:03 -07:00
pavanisr
ba39b85277 dsp, ipc: add fluence NN changes
Change-Id: Ie8323156c74601333871646052068a609c7cf474
2021-03-19 16:22:04 -07:00
pavanisr
e8e79f3322 dsp: remove global msm_audio_ion_private_data
Change-Id: I2903b19295695c91d62fa5bbb8a9c9c884dfaf98
2021-03-18 12:00:07 -07:00
pavanisr
3f099a7afc dsp: clean up unnecessary apis
Change-Id: I6e92fcea9a7185bd1bc7c47ca16270641fd471de
2021-03-18 11:24:38 -07:00
Jyotirmoi Sarma
21d89c12d0 audio-kernel: dsp: Upgrade dsp to support 5.10 kernel
Change-Id: I774b4eb80d9b428a50b046e1b29957932a9eda11
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-14 12:53:34 +05:30
Phani Kumar Uppalapati
b15db3b6c8 Merge commit 'd9fa9d435ba1b92cf0f0361a0749107b7abc45a5' into audio-kernel-5-4.lnx.1.0
Change-Id: Iaf98532030ee4ef5fe6a70df083a685733dd5670
2020-11-05 19:15:07 -08:00
Manisha Agarwal
da866c30a6 q6afe: add support for lc3 codec playback
Add support for lc3 codec playback.

Change-Id: I96ee7bb869c89c71bf8ee986529bf8575efd4b5b
Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
2020-10-12 21:39:47 +05:30
Saurav Kumar
97d18542c1 dsp: add change to handle use-after-free in cal_utils_is_cal_stale
Add change to address the race condition between
pointer dereference and memory deallocation.

Change-Id: Ia1ed47986ec81d3dc2feb3bc874847fadddac292
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-10-01 09:35:23 +05:30
Vidyakumar Athota
88c1c0288c Merge commit '1a7cee75ba63d6cce68924591b125d604bef39f5' into audio-kernel-5-4.lnx.1.0
Change-Id: Ie4363b4d1be12c7fd85e261bf728462009d8a2cf
2020-09-30 10:01:03 -07:00
Vidyakumar Athota
584244b6ac Merge commit '5efb3a4ee3959f20ed2b697663205ec9a6bd1e5c' into audio-kernel-5-4.lnx.1.0
Change-Id: I58fbdf6b91c33ab5d147efbe5f5706616052c7fe
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2020-09-06 18:25:28 -07:00
Vignesh Kulothungan
26c1ce2fb7 dsp: afe: send cps config after sending topology
Set params for a module should be done after sending
the topology information in which the module resides in.
Send cps configuration after sending afe topology.
Send cps configuration only for speaker protected usecases.

Change-Id: I89c7df9f0d70862813aa7a2bd1ea1afc2ddcc882
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-27 17:11:05 -07:00
Divya Sharma
5efb3a4ee3 Revert "dsp: add afe function to send cps configuration"
This reverts commit 3fa8c9411f.

Change-Id: Id5c26b7c417be946b5867b1dda97101bc7519441
2020-08-26 13:54:18 -07:00
qctecmdr
5caa78db45 Merge "dsp: add support for SVA to use afe topology deregister" 2020-08-25 11:21:17 -07:00
qctecmdr
694c6f67cc Merge "dsp: adm: change channel number for AUDIO_RX_MONO_VOIP module" 2020-08-17 01:44:20 -07:00
qctecmdr
f5c694ecab Merge "ASoC: lahaina: add support for CPS speaker protection" 2020-08-17 01:44:19 -07:00
Sanjana B
afcc911b4e dsp: add support for SVA to use afe topology deregister
To handle erroneous scenario when audio afe driver registers
a FFNS topology in non-island mode instead of island mode,
add capability for audio afe driver to deregister previously
created topology before registering a new topology for SVA.

Change-Id: Iff871da998847ea5d3bcee417c780b8acaf70ca3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-08-13 18:24:08 -07:00
Vignesh Kulothungan
3fa8c9411f dsp: add afe function to send cps configuration
Define cps hw interface configuration structures.
Add AFE_PARAM_ID_CPS_LPASS_HW_INTF_CFG parameter id.
Add a function to send afe cps speaker protection
configuration.

Change-Id: I865e9981b6dd1da4b9ef1a3e18be82cea2996309
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-10 16:12:04 -07:00
Kunlei Zhang
13803a3ca6 dsp: adm: change channel number for AUDIO_RX_MONO_VOIP module
AUDIO_RX_MONO_VOIP module in COPreP topology doesn't support
stereo input. Update channel number to mono for
AUDIO_RX_MONO_VOIP_COPP_TOPOLOGY.

Change-Id: I23632808cfcf82496f0e8f9618e28915974fc584
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-08-10 18:12:36 +08:00
Nirav Khatri
ac1e77dc77 ASoC: Add external mclk mixer support
Add mixer control and callback for selecting external mclk at start of
next playback for a particular BE.

Change-Id: Ifc25eda2f14da564c6b066eb8f76049697bbd44e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
2020-08-06 06:17:08 +05:30
Harshal Ahire
2fdf19ac8e dsp: Add support for GET_PARAMS
Add support to query module parameters from ADSP.

Change-Id: Ie63dd95cf27277f9c836becc98952d48971a3ec3
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-08-04 21:03:04 +05:30
Phani Kumar Uppalapati
726d5ea145 Merge commit '33ea77356f47c6c596c8505ca90307fc1245ef3f' into audio-kernel-5-4.lnx.1.0
Change-Id: Iacb389506a643a1ac70a3d51c2dfc1eeb47f690c
2020-07-30 19:48:24 +05:30
Kunlei Zhang
d9bf6df220 dsp: add support for CMA heap allocation during call
Add support for CMA heap allocation during call.

Change-Id: I65cd291a9db56bf53d9bb9b4e6c7236da9d7288c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-07-27 11:53:28 +08:00
Viraja Kommaraju
5fdef1b590 ASoC: msm: Support different POPPs to single COPP
For multi COPP feature it could only allow POPPs with same app_type
to connect single COPP. But it's possible to connect different POPPs
with different app_type to single COPP, to achieve this, it should
skip the app_type check when create copp_idx.

Change-Id: I9da6e84b8ef4a5e13d29d71c016b114ea759b94f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2020-07-15 01:33:26 +05:30
Phani Kumar Uppalapati
bc326d21fd audio-kernel: upgrade to ar/spf changes
Rename casa to ar and gecko to spf in audio-kernel.

Change-Id: Ia37ee0497ce043443ca70131d2739737cb8f0366
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-25 00:39:53 -07:00
Aditya Bavanari
42a8ba550a audio-kernel: Synchronize hw vote and unvote requests
HW vote and unvote is currently called from multiple
clients leading to synchronization issues
during SSR/PDR scenarios. Synchronize all the vote requests
by using digital codec resource manager.

Change-Id: I7e63f69ab5d761a3bb4c7ce70bbef2e8bfd76cfb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
(cherry picked from commit 31aa875405)
2020-06-25 00:37:32 -07:00
Ashish Jain
de3e09d08d asoc: Expose a sysfs node to notify device open/close.
Add support in kona machine driver to expose a sysfs node.
Userspace uses this sysfs node to notify machine driver
on which dai-link ( pcm id) is opened/closed. This information
regarding device open/close is then compared against shutdown/
startup dai_link ops. If there is a mismatch we conclude
that there has been a userspace service crash and we
issue a close all session command to dsp and also clear
all the dma buffers which were allocated by the service.

Change-Id: I4fc13adf8cc527c87b822a3b189d4ff081539a3c
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2020-06-25 00:35:46 -07:00
Vignesh Kulothungan
8fc7957756 ASoC: add hw_core voting via PRM module
Change-Id: Ifa070caa6e5ff0263d0d471e5f0d7e7b09a41f0d
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:31:10 -07:00
Taha Azzaoui
6c8bf95ddf gecko compliant drivers
Change-Id: I5f19da1472a0e90cc5d16459b5367dc07ec2f28b
Signed-off-by: Taha Azzaoui <tazzaoui@codeaurora.org>
2020-06-25 00:27:26 -07:00
qctecmdr
8c500e2d43 Merge "dsp: Fix out of bound memory access." 2020-06-16 20:17:02 -07:00
qctecmdr
7284897e35 Merge "asoc:support for DSD on MI2S interface" 2020-06-16 20:17:02 -07:00
qctecmdr
e0a48cd1e5 Merge "q6afe: add support for handling rx proxy ports concurrency" 2020-06-11 04:15:16 -07:00
Harshal Ahire
c702957fa2 dsp: Add support to dynamically load and unload BT modules
Add new APIs to enable dynamic load and unload of BT
modules before afe_port_start and afe_close.

Change-Id: I74da9a49aac754d4557c7206155de65cf9b6bdaf
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-06-10 23:02:37 -07:00
Sanjana B
02d1c6dc11 asoc:support for DSD on MI2S interface
Add support for DSD in MI2S interface and corresponding api updates
from ADSP.

Change-Id: I494205763fa429f95e43497ed5b8f91332f5a2a3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-09 23:41:10 -07:00
qctecmdr
6c188e55ac Merge "lsm: add support for SVA multi sound model" 2020-06-09 09:24:19 -07:00
Zhou Song
0a79d42770 q6afe: add support for handling rx proxy ports concurrency
In case of two concurrent active rx proxy ports, add
separate callback data to handle proxy reading.

Change-Id: I4de631b9cfead777c970103a79578964e5950eb9
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-06-09 09:43:59 +08:00
Phani Kumar Uppalapati
11b101167f audio-kernel: Remove Elite drivers
Remove Elite framework related audio drivers.

Change-Id: Ia4bd85052b6212c246a18888372a227e3416a207
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2020-06-08 11:41:46 -07:00
qctecmdr
344b47efbe Merge "asoc: lahaina: add support to send power mode for voice usecase" 2020-06-05 01:54:02 -07:00
qctecmdr
f90e291bfd Merge "dsp: adm: change channel number for FLUENCE_SM module" 2020-06-05 01:54:02 -07:00
qctecmdr
1aec879743 Merge "asoc: qcs405: Add dai links for hdmi tx" 2020-06-05 01:54:02 -07:00
Xiaoyu Ye
18ab344528 lsm: add support for SVA multi sound model
Add support in audio drivers to support multiple sound models
to be registered individually to the same module within a single
instance in ADSP.

Change-Id: I7d1abb206c7505ed10f0384b8286d5000416e1be
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-03 19:52:11 -07:00
qctecmdr
1cb613a506 Merge "asoc: enable TTP generator" 2020-06-01 10:27:01 -07:00
qctecmdr
5481d131cf Merge "asoc: qcs405: add support to set clock drift" 2020-06-01 10:27:00 -07:00
Sanjana B
7f953e1270 asoc: support for audio over hdmi tx
Add support for audio over hdmi tx.

Change-Id: I4f2108fd14eb22ec4e226220787e0defe512bb5f
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-05-29 10:47:10 -07:00
Kunlei Zhang
44c6cc4fdc dsp: Add support to set island cfg and power mode
Add new APIs to set/reset power mode along with
island config before afe_port_start.

Change-Id: Ibd9487b04b691be5ab829cfa32c89953838f3192
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-05-29 12:35:55 +08:00