Commit Graph
3155 Commits
Author SHA1 Message Date
qctecmdr 308165f20f Merge "asoc: codec: enable the cpe on tasha" 2021-03-03 21:45:58 -08:00
Manjunatha Madana a8c5685e1a dsp: Disable q6_pdr build for msm8937 and msm8953
Disable compilation of q6_pdr module for msm8937
and msm8953 SPF targets as it is not supported and also
results in secondary images build error.

Change-Id: I9590ddfdfb51c35744d4cb8e2a108f5f5449864f
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-03-03 11:00:26 +05:30
Subhadra Jagadeesan 0ba1e60241 asoc: Fixed wsa881x codec machine driver callback
Removed unused callback method for wsa881x analog codec
from machine driver. Also update digital codec driver name
to register the codec component successfully.

Change-Id: I1c2ada4b184ee582e657748bf883b59798dd7d34
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-03-02 14:18:17 +05:30
qctecmdr 94212ef857 Merge "asoc: wsa881x: Fix to set the correct volume level" 2021-02-28 23:34:25 -08:00
qctecmdr e43c62d52f Merge "Use proper TARGET_SUPPORT entry for sxr2130" 2021-02-28 23:34:25 -08:00
Shashi Kant Maurya 25c770574f asoc: codec: enable the cpe on tasha
Enable the CPE driver compilation on tasha
target.

Change-Id: I04b7df2734132b058abc64ceee889165401c67b5
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-02-25 10:25:37 +05:30
Faiz Nabi Kuchay 73fc28fd06 Use proper TARGET_SUPPORT entry for sxr2130
Add proper TARGET_SUPPORT entry for sxr2130 to compile all required dlkms.

Change-Id: I68597efe2f8c0f88cffa124bd8d0bcfc4465cd6b
2021-02-23 06:26:13 -08:00
Shashi Kant Maurya 625f5e556d asoc: wsa881x: Fix to set the correct volume level
To avoid mismatch volume level on WSA8810, update
the enum.

Change-Id: I01f592d0817d83a1e0ea7b736c0c101e6903cceb
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-02-22 15:57:49 +05:30
Nirav Khatri 5e1de13785 ASoC: ep92: Add external mclk support
Add support for external mclk configuration based on input sample clock.

Change-Id: I90b40636e6c3877c5ab9d2c2a60c4d61a83b149e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
2021-02-22 10:19:46 +05:30
Shashi Kant Maurya cb0e210c37 ASoC: msm: Add WCD interrupt config for SDA660
Configure LPI interrupt registers inorder to setup
WCD interrupt triggered via LPI TLMM as direct apps interrupt.

Change-Id: I8786a27a60010dd94df3863ed54ceff09559d8e1
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-02-16 12:27:21 +05:30
qctecmdr 4315848f8e Merge "dsp: Unload the BT modules when APR handle is NULL" 2021-02-04 22:19:59 -08:00
qctecmdr db9fc7ab97 Merge "dsp: Fix improper mutex unlock in afe close" 2021-02-02 09:06:44 -08:00
qctecmdr 1e7d2da1e8 Merge "asoc: Update copy_to_user to requested buffer size" 2021-02-02 09:06:44 -08:00
qctecmdr 132b93d11a Merge "ASoC: Audio bringup changes for msm8937_32go." 2021-02-02 09:06:44 -08:00
Harshal Ahire 3ab64ab211 dsp: Unload the BT modules when APR handle is NULL
As a part of SSR/PDR, afe_close() is called. If APR handle
is NULL, BT modules were not unloaded. Unload the modules
to recover post SSR/PDR.

Change-Id: I69bdb3ab1d55ad9a0a8ed3eed069c97af9143722
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2021-02-01 12:09:08 +05:30
Laxminath Kasam 411c3ff0a6 asoc: Update copy_to_user to requested buffer size
Avoid copy to user more than requested buffer size
to avoid memory corruption.

Change-Id: Ibf1607f777a358ebd16fd8b8728809afda34eba7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-29 21:43:32 -08:00
Subhadra Jagadeesan 411c3d05fc ASoC: Audio bringup changes for msm8937_32go.
Enable compilation for msm8937_32go, 8953, sdm439, sdm429 targets.
Bring in msm8952 machine driver and SDM450 auto configs.
Update asoc, codec driver to component driver to align
with kernel-4.19 ALSA.

Change-Id: I95a6ee3dbb3b9d3b89cc6961346baf1efb3cb9c8
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-01-27 11:39:25 +05:30
Harshal Ahire b94373abe8 asoc: Add check to handle negative value passed for num_app_cfg_type
Long int negative value passed as part of ucontrol structure
is assigned to int num_app_cfg_type making it positive and
leading to overflow while populating maximum supported
lsm_app_type_cfg structures.

Change-Id: I81e3c75eea82265c8e8e1b3f8f95d9e334c895c4
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2021-01-24 22:16:19 -08:00
Linux Build Service Account 0baca36c2f Merge 6f7624eab4 on remote branch
Change-Id: I746bc4705958337c61f06dc56d70e8ac41b55559
2021-01-21 20:49:15 -08:00
Sanjana B 702192ac1a ASoC: QCS405: Additional TDM samplerates and channels
Add support for additional TDM samplerates uptil 384KHz
and uptil 32 channels

Change-Id: Ie93da52ed524a9c14c38bec2e4af42777a397951
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-19 22:36:33 -08:00
Sanjana B d97fa6fc38 asoc: qcs405: Add support for TDM interface
Add mixer controls for TDM interface in machine driver.

Change-Id: Ic177bcde59607c7ef3aecb78dfffdaf0388ed444
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-20 11:04:51 +05:30
Sanjana B 18d788af00 asoc: Add support for QUAT and SEN TDM interface
Add FE and BE support for QUAT and SEN TDM interface.

Change-Id: Ic1fb96b1d5004f07849673e1e6369609652f0dc1
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-11 10:24:24 +05:30
Sanjana B 9eab8132cb asoc: qcs405: Update clk src string from dts
Extract clk src string from dts and update in afe.

Change-Id: I5004a5364d2d557072bbafc0c3476c50e18a4479
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-11 10:14:26 +05:30
Sanjana B 1b2393eba3 dsp: Add support to update and store clk src values
Add support to update clk src array from machine driver.
Update clk src for different be ids based on clock
frequency at playback.

Change-Id: Ifa09d556fd50f9e2ddef39b5e3ddd25f579f8f6e
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-10 20:28:11 -08:00
Sanjana B d747558a4a dsp: afe topology deregister
To handle erroneous sequence when HLOS audio driver registers
a FFNS topology in non-island mode instead of island mode:
Call afe topology deregister to deregister any previously
created topology before registering the topology.

Change-Id: Iff871da998847ea5d3bcee417c780b8acaf70ca3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-01-10 20:26:54 -08:00
Nirav Khatri 70b6f018f9 ASoC: qcs405: Add external mclk support
Implement afe callback for external mclk.

Change-Id: I68a433fb65d4583bc1927e080075301f359c5d64
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
2021-01-11 09:50:23 +05:30
Nirav Khatri 239a93e8ab 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>
2021-01-11 09:42:15 +05:30
Aditya Bavanari 38aa2b9e5e dsp: Fix improper mutex unlock in afe close
During SSR use cases, when AFE APR handle is NULL
and AFE close is invoked, mutex unlock is done without
locking. Fix it and bail out without unlocking the
mutex in this scenario.

Change-Id: Ia2988b56425d8c2d5c726d5860c13e655e7e4ed1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2021-01-06 13:30:59 +05:30
Linux Build Service Account 5a257368b2 Merge 9e13ab7f6a on remote branch
Change-Id: Iaaf49a9dc164b34f8d1d4f835eea9ba467b53353
2020-12-23 02:22:13 -08:00
qctecmdr 6f7624eab4 Merge "Revert "dsp: avtimer: Add adsp ready check before accessing avtimer registers"" 2020-12-16 02:14:14 -08:00
qctecmdr 23e24577f4 Merge "ASoC: wsa883x: Handle PA_ERR interrupt on WSA speaker" 2020-12-16 02:14:14 -08:00
qctecmdr 9e13ab7f6a Merge "ASoC: Add support to send voice UI port id to afe" 2020-12-12 09:48:51 -08:00
Sudheer Papothi 0d3cccf90f ASoC: wsa883x: Handle PA_ERR interrupt on WSA speaker
PA_ERR can happen during speaker path setup. Log the
error status in the interrupt handler and clear the error
status for next audio playback to resume properly on
the speaker.

Change-Id: I5800d9505a3036127097745aaa880b73b3e87f30
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-12-09 14:46:29 +05:30
Soumya Managoli d881ddaff8 ASoC: Add support to send voice UI port id to afe
As per the current design in afe, if the
afe_get_cal_topology for AFE_TOPOLOGY_CAL
or send_afe_cal_type for AFE_COMMON_TX_CAL
fails, then the voice UI calblock is fetched/sent.
This is resulting in sending voice UI calblock
on a non voice UI port during concurrent usecase scenario.

Fix is to check if the calblock for get/set is for
a voice UI port or not. Added support to send this
port id info from routing driver to afe when usecase
is enabled via mixer_control.

Change-Id: I356aae61e1b9d11324e7b9f9a57953767a64b71e
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-12-08 17:17:25 +05:30
Surendar Karka 53f1a319b7 Revert "dsp: avtimer: Add adsp ready check before accessing avtimer registers"
This reverts commit 1d2a04aed6e82771bbfa3aca65fda17385ab7ed5.
Get latency query is getting failed, as check added needs vote for adsp ready state.
We need to vote for adsp ready state and add the check condition. Reverting the change
until we come up with the proposed solution

Change-Id: I2cd1ea4a7cb8cc6b9386517dd4040cc91f10aa7d
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2020-12-02 05:09:36 -08:00
Shashi Kant Maurya ddda29b715 asoc: wsa881x: Fix crash while capturing swr_slv codec dump
Swr-slv address is overwritten during wsa881x_swr_probe,
hence soundwire getting incorrect slave address. While
accessing swr master from swr slave due to incorrect
address device crashed
To avoid the issue align the debugfs similar to wsa883x codec.

Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2020-11-30 14:58:05 +05:30
qctecmdr ac4780b41e Merge "asoc: codecs: sdm660_cdc: Fix LPASS register access during PDR" 2020-11-30 00:02:05 -08:00
qctecmdr 437614b705 Merge "asoc: msm_sdw: Handle locking for mclk enable flag" 2020-11-30 00:02:05 -08:00
Saurav Kumar f776525846 dsp: add change to enable preemption at cal_utils_dealloc_cal
Add change to enable preemption at cal_utils_dealloc_cal.

Change-Id: I3d9304851f4d61d7afb82c0512421159ec788db1
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-11-29 05:12:46 -08:00
Linux Build Service Account 42b6863ae6 Merge d06e8ae24c on remote branch
Change-Id: I66d6ce73829fcf04abc540663e6f53fe521fb242
2020-11-27 01:16:34 -08:00
qctecmdr 11f91eb817 Merge "ASoC: lagoon: add support for CPS speaker protection" 2020-11-25 18:59:00 -08:00
qctecmdr 7961f6e686 Merge "dsp: add change to enable preemption at cal_utils_dealloc_cal" 2020-11-25 18:59:00 -08:00
Laxminath Kasam 0039ff6c78 asoc: msm_sdw: Handle locking for mclk enable flag
To synchronize codec read/write with PDR/SSR, take
lock before update of mclk enable flag.

Change-Id: I3e4faa27e2e6af71fd767a6be43bbb9d234c7192
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-11-23 21:56:14 -08:00
Aditya Bavanari a555c1153b asoc: codecs: sdm660_cdc: Fix LPASS register access during PDR
When AFE returns failure in setting the digital codec
core clock during PDR, it leads to LPASS register access
which results in NOC error and AHB timeout. Put the regmap
in cache only mode during clock set failure to fix this.

Change-Id: I221bf02f32b1dae19a02435220dec8a85f5dd998
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-11-23 21:55:49 -08:00
qctecmdr d62420bed8 Merge "dsp: add afe function to send cps configuration" 2020-11-20 02:18:50 -08:00
qctecmdr b17876f509 Merge "ASoC: tx-macro: Allow regcache sync during clock enablement" 2020-11-20 02:18:50 -08:00
qctecmdr b49d3e6337 Merge "ASoC: wsa883x: add function to get swr device number" 2020-11-20 02:18:50 -08:00
qctecmdr 63e67b32cc Merge "ASoC: wsa883x: enable vbat adc filter" 2020-11-20 02:18:50 -08:00
Faiz Nabi Kuchay 98cbc2ad61 ASoC: lagoon: add support for CPS speaker protection
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.

Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-11-19 12:34:37 +05:30
Saurav Kumar d775e3b2ef dsp: add change to enable preemption at cal_utils_dealloc_cal
Add change to enable preemption at cal_utils_dealloc_cal.

Change-Id: I3d9304851f4d61d7afb82c0512421159ec788db1
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-11-17 17:02:35 +05:30