Commit graph

3,459 commits

Author SHA1 Message Date
George Gao
0be9048845 asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases
This change ensure all concurrent low latency/ultra low latency use cases run on core 1 and 2.

Change-Id: I83456a992d1de748854308f3efc7555b3ca9aaad
Signed-off-by: George Gao <georgao@codeaurora.org>
2020-08-10 22:18:20 -07:00
Laxminath Kasam
214f88cc12 asoc: wcd938x: Update SWR clock rate based on modes
Update SWR clock rate based on active ADC modes
for concurrency during powerup and teardown.

Change-Id: I610aa205a857a5fac2163a248de4800f3c8042f7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-11 08:54:31 +08:00
Sudheer Papothi
54b9ee2e2e ASoC: lahaina: Update soundwire frame configuration
Update soundwire frame configuration to support audio capture
and voice activation concurrencies.

Change-Id: I0c20bc0514ed08c04fdccb888311ba74743117f4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-11 05:00:37 +05:30
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
Vatsal Bucha
560fe2bc62 ASoC: rouleur-mbhc: Fix impedance detection issue on rouleur
Impedance values are not correct sometimes due to ramp
being controlled by hw. Run detection routine for sometime
and take final value as impedance value to resolve issue.

Change-Id: I3a34813657751aa304e150cfa294a42f556d06c4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-10 18:50:58 +05:30
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
Xiaojun Sang
67e19082df AsoC: lahaina: support right speaker as mono device
Current design assumes mono device uses left speaker.
Modify the logic to remove the limitation.

Change-Id: I6a7cd2b14ed5a4c10106593fe707a449d05efe48
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-08-10 15:50:00 +08:00
Vignesh Kulothungan
912fd67d6c ASoC: wsa883x: add function to get swr device number
Add a function in wsa883x which returns the sound wire
device number for a given wsa883x codec slave instance.

Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-07 11:37:27 -07:00
qctecmdr
d135c72b0b Merge "asoc: lahaina: use new pm_qos API to let audio ULL run on core 1 and 2" 2020-08-07 03:46:12 -07:00
qctecmdr
53ad10c501 Merge "asoc: lahaina: update log type to reduce log" 2020-08-07 03:46:12 -07:00
qctecmdr
a1cb6b5d86 Merge "asoc: routing: add missed widget connection" 2020-08-07 03:46:12 -07:00
qctecmdr
e97057aed1 Merge "asoc: add missed name for codec dma dais" 2020-08-07 03:46:12 -07:00
qctecmdr
07f045f49b Merge "asoc: add fe-dai multimedia31/32/33/34 and routing rules" 2020-08-07 03:46:12 -07:00
qctecmdr
de3c9d719e Merge "soc: swr-mstr: Fix random headset detection issue on scuba" 2020-08-07 03:46:12 -07:00
qctecmdr
70b35a5320 Merge "asoc: wcd937x: Add support to clear ack registers" 2020-08-07 03:46:12 -07:00
qctecmdr
cc39746bbd Merge "asoc: use the correct APR header structure for PSPD set params" 2020-08-07 03:46:12 -07:00
Sudheer Papothi
379cb0cfb5 ASoC: swr-dmic: Update sequence for voice activation usecase
Update soundwire dmic sequence for voice activation usecase.

Change-Id: I1a170fe3be17b1d44abb707b550aa2972d01047b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-06 22:05:09 -07:00
Guodong Hu
261aa8e7d3 asoc: add dai-link media31/32/33/34 for auto targets
Add more DAI-LINK to support concurrent audio for
lxc host and containers.

Change-Id: I4acf44e19cafb081653e9f93e0fc184700b05831
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-08-07 11:14:25 +08:00
Vangala, Amarnath
36b5278d54 asoc: Fix dailink init function in holi machine driver
Remove unwanted code from a dailink init function.

Change-Id: Ieeb244f2319fc6f2f1cf202748fe6826dba229a8
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-07 00:23:40 +05:30
Sanjana B
df48f09425 asoc: qcs405: add support for dsd input
Update machine driver to include support for dsd input.

Change-Id: I37aa46484aa617f3ea543391b0edec4f5193d5bf
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-08-06 08:28:50 -07:00
Vangala, Amarnath
7e364887e9 asoc: wsa881x: Fix wsa881x name prefix property read
Fix for reading wsa881x name prefix from dtsi
and update in proper structure.

Change-Id: If80e9c26192e7918204c36849ca5cc19875e7084
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-06 16:27:25 +05:30
Vangala, Amarnath
7f911b43b8 asoc: update the wsa entry in dai link header
Update the wsa881x analog codec entry in dailink header for holi.

Change-Id: I58ca525b528fe949921ed9e21af3a61779c67d65
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-06 15:08:34 +05:30
Meng Wang
36b9a31a37 asoc: lahaina: add wcd_disabled check in late_probe
Add wcd_disabled check in late_probe to avoid checking
wcd component when WCD is disabled.

Change-Id: I9fe4fa993b94b09d7ffef0f59505b102165b87ac
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-06 14:52:42 +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
Nirav Khatri
d4422e276e 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>
2020-08-06 06:11:06 +05:30
Vignesh Kulothungan
7514e5c33e soc: update wake interrupt check condition
Call pm runtime functions from wakeup interrupt
only if soundwire master is not in SSR and if dev up is
true.

Change-Id: Ic394be964437bdc009f1b4c5dd6e46673875b0df
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-05 15:33:50 -07:00
qctecmdr
5fbd9fb16f Merge "asoc: lahaina: add flag to indicate if wcd is disabled" 2020-08-05 09:48:33 -07:00
qctecmdr
759cdeeb90 Merge "ASOC: audio machine driver bringup" 2020-08-05 09:48:33 -07:00
qctecmdr
8b28c314d0 Merge "ASoC: wsa883x: Update register sequence to reduce CnP" 2020-08-05 09:48:32 -07:00
qctecmdr
3238629396 Merge "ASoC: swr-dmic: Update soundwire mic probe sequence" 2020-08-05 09:48:32 -07:00
George Gao
bb5c832e51 asoc: lahaina: use new pm_qos API to let audio ULL run on core 1 and 2
The sound core driver used old pm_qos APIs which does not have CPU afinity mask.
As a result, ULL playback runs on all cpu cores.
This change uses new API call with affinity to core-1/2.

Change-Id: If59b6f32a421038c0f89611d160e4031e03a10ce
Signed-off-by: George Gao <georgao@codeaurora.org>
2020-08-05 01:35:25 -07:00
Sudheer Papothi
65b24ebabc ASoC: tx-macro: Allow regcache sync during clock enablement
Allow regcache sync during clock enable to make sure the registers
are in proper state before the usecase.

Change-Id: I8a9214e460c7f77759d1956e0e7e2d6b2f5b3d3a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-08-04 17:02:00 -07:00
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
Vangala, Amarnath
60eaa6b160 asoc: wcd937x: Add support to clear ack registers
WCD937x codec requires clear registers to be written '1' and
'0' for clearing interrupts. Enable clear_ack flag in regmap
irq chip structure for wcd937x.

Change-Id: I0a2e4fc85fe6dca75885b5300840669afeabc80c
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-04 16:14:51 +05:30
Meng Wang
5487799a92 asoc: bolero: add SWR MIC registers as volatile
Add SWR MIC registers BOLERO_CDC_TX_TOP_CSR_SWR_MIC0_CTL
and BOLERO_CDC_TX_TOP_CSR_SWR_MIC1_CTL as volatile to
resolve SWR TX1 port mute issue.

Change-Id: I66e0d8e63ebabaca6f4aa562f18d7b58592a1d74
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-03 23:52:57 -07:00
Guodong Hu
84e0e29f39 asoc: add fe-dai multimedia31/32/33/34 and routing rules
Add more FE-DAI to support concurrent audio for
lxc host and containers.

Change-Id: I8988a9e15675b23a99621db12ee9a4b500c4a12b
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-08-03 21:45:43 -07:00
Vatsal Bucha
d4b25f9f73 soc: swr-mstr: Fix random headset detection issue on scuba
When headset is inserted and reboot device sometimes
headset is not detected after reboot as host_irq from
swr slave gets masked. This is because of cmd error seen
after clearing all irq which results in fifo flush.
Read swrslave irq before clearing so as to resolve cmd error.
Also enable host irq after clearing enum interrupt at master.
This ensures irq is properly enabled.

Change-Id: Id66029c65c4d813391bfeb8c0c619560f298eeab
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-04 07:50:37 +05:30
Meng Wang
d2e050bfc0 asoc: routing: add missed widget connection
Add missed frontend for QUIN_TDM_RX_1 and MultiMedia30
to reduce error log during bootup.

Change-Id: Ibe675df1b719dda3fd940cf0fd392018f9a99e63
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-03 15:31:13 +08:00
qctecmdr
d6f802b1cb Merge "asoc: wsa881x: correction to codec name." 2020-07-31 03:41:23 -07:00
qctecmdr
6d8a12d43b Merge "asoc: wcd937x: add dummy widgets to codec input and outputs" 2020-07-31 03:41:23 -07:00
qctecmdr
1fdec48b8b Merge "asoc: machine driver updates from lahaina to holi." 2020-07-31 03:41:23 -07:00
qctecmdr
be469faa06 Merge "asoc: holi: disable wsa macro" 2020-07-31 03:41:23 -07:00
Meng Wang
f018ce04f6 asoc: lahaina: update log type to reduce log
Update log type to reduce error log during bootup.

Change-Id: I9e95ea8d121f7dbf15d5c02268d7f8dc67d840e0
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-31 10:47:28 +08:00
Meng Wang
7cf70c060c asoc: add missed name for codec dma dais
Add missed name for codec dma dais to reduce warning
log during bootup.

Change-Id: Ie95100a359fa992d323e68b98e3f76b202846337
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-31 10:19:20 +08:00
qctecmdr
5f61bf8378 Merge "ASoC: add null check for component prefix" 2020-07-30 01:29:54 -07:00
qctecmdr
4e91300a68 Merge "dsp: add support for CMA heap allocation during call" 2020-07-30 01:29:53 -07:00
qctecmdr
d0dcd129ba Merge "asoc: wcd938x: reverse datapath_control and connect_port for teardown" 2020-07-30 01:29:53 -07:00
Meng Wang
7f0ed8f900 asoc: lahaina: add flag to indicate if wcd is disabled
On some lahaina devices, wcd codec is disabled and it would cause
issue when trying to use wcd widgets. Add flag to indicate if wcd
is disabled

Change-Id: Id19d0bd83728b10b457767f7d43cba8dac916772
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-30 08:11:58 +08:00
Xiaoyu Ye
7f362c71b1 asoc: use the correct APR header structure for PSPD set params
Fucntion msm_qti_pp_send_chmix_cfg_cmd() uses the param_hdr_v3
as the APR header structure for PSPD MtMx set params command.
This structure is the incorrect one which causes ADSP to parse
the PSDP set params payload wrongly and results failure for
non-LPI headset SVA. Use param_hdr_v1 instead to match the
one that ADSP uses to parse the PSPD set params payload.

Change-Id: Icc1d0b50193ab28e33007ca474eeebcb61e4d634
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-07-29 02:29:48 -07:00
Sudheer Papothi
ea214d5c91 ASoC: wsa883x: Update register sequence to reduce CnP
Update register sequence of WSA883x codec to reduce CnP
during bringup and teardown of speaker path.

Change-Id: I348a55e1324b5c26a36b8d7c78edf52a66e40381
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-28 23:10:01 -07:00