Commit Graph

3857 Commits

Author SHA1 Message Date
Deru Wang
34019b598d ASoC: add machine driver for sa8295 based automotive platform
Add machine driver for SA8295 based automotive platform,
which extended support for TDM interfaces which is used
for data transfer between SA8295 SoC and the automotive
COODEC H/W. Changes include TDM backend and refactored
automotive frontend DAI links as well as kcontrol functions
to configure TDM slot and offset configuration.

Change-Id: I82b2e4515443a5bd7bec8af34447a537cec5ecf3
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-03-29 19:35:16 +08:00
Erin Yan
ea098207c6 asoc: add get function for mixer controls
When set amixer command, it will first read the control element before write.
If the get function is missing, the amixer command will fail.

Signed-off-by: Erin Yan <xinyey@codeaurora.org>
Change-Id: Id5eb1ead1787490d75a21b9cc9ee69bc54e0ea5b
2021-03-29 00:20:32 -07:00
qctecmdr
965a68a22a Merge "dsp: codecs: Add flag to check if wait event initialized before access" 2021-03-27 10:13:18 -07:00
qctecmdr
40bfaf0e9e Merge "asoc: active GPIO122 and enable mclk for sa6155 auto platform" 2021-03-27 10:13:17 -07:00
Soumya Managoli
a567a8e232 ASoC: dsp: Synchronise adm commands
Race condition observed while processing the
get/set_pp_params and adm_close command.
Synchronise adm open, close and get/set_pp_params
by sending the apr cmd pkt using the same lock.

Change-Id: I9a1ebcedc91f78f3940846688f8569ec9088e1e7
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-03-26 16:09:49 +05:30
Vatsal Bucha
0d30652d51 dsp: codecs: Add flag to check if wait event initialized before access
Add flag to check if wait event initialized before access.

Change-Id: Ib4b4654dfe1b0a18506ae6fb8029296a5f780fe9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-25 23:20:19 -07:00
Vatsal Bucha
a1ca1d889d ASoC: bolero: Set interpolation rate for IIR input
In rx macro set interpolation rate, sample rate and
bit width is not set if IIR is connected. Set sample
rate and bit width for IIR as well. Also correct
iir_inp_mux_text to follow same sequence as reg value.

Change-Id: I2e90265c066d38ccec9f47a6d25b8224ed710d2d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-25 16:09:32 +05:30
qctecmdr
d1a41d7256 Merge "ASoC: msm: Add 24KHz sample rate for EC Reference" 2021-03-23 00:39:57 -07:00
qctecmdr
50d8130a5d Merge "dsp: adm: add to check output/input channel" 2021-03-23 00:39:57 -07:00
qctecmdr
c0a246ee48 Merge "asoc: changes to fix KW errors." 2021-03-23 00:39:57 -07:00
Deru Wang
f45c5b4585 asoc: active GPIO122 and enable mclk for sa6155 auto platform
enable GPIO122 as mclk2 for externel AMP on sa6155 auto platform.

Change-Id: I9cb9012096a3a7620aeaeae5c690ae9ff168457a
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-03-19 12:16:33 +08:00
qctecmdr
1c3c1cf248 Merge "ASoC: remove unused variable definition for compling issue" 2021-03-17 17:20:29 -07:00
qctecmdr
8cf97af576 Merge "asoc: add AFE logging PID and APIs" 2021-03-17 17:20:29 -07:00
qctecmdr
577aef21c4 Merge "dsp: adm: ensure hyp assgin is called when FNN module is used" 2021-03-17 17:20:29 -07:00
Hongtao Peng
fa487b7506 ASoC: msm: Add 24KHz sample rate for EC Reference
Support 24KHz sample rate setting from kcontrol

Change-Id: Iba0b8f4f6b2732be68c609032a0225ffe194c3e4
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-03-17 01:07:52 -07:00
Lakshman Chaluvaraju
7096716fdb asoc: changes to fix KW errors.
Add changes to fix KW errors.

Change-Id: I87fc8bf5b2753cef6af881713637e9521389708d
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-03-17 13:25:29 +05:30
Deru Wang
7903818708 asoc: add AFE logging PID and APIs
The current AFE logging point is global, once enabled all active
AFE ports will log its data through DIAG to PC, However, diag
logging throughput is limited.
Need add kcontrol for enable/disable AFE logging by AFE port
per direction.

Change-Id: I05a12f2eb4bc5b5a3ad39b8bbf2f4148bec05002
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-03-14 19:29:33 -07:00
qctecmdr
f8b4b87d8b Merge "dsp: update size check for get VI param function" 2021-03-11 10:16:11 -08:00
qctecmdr
1e9f85edf3 Merge "ASoC: Enable gain ctl of display port hostless playback" 2021-03-11 10:16:10 -08:00
Kunlei Zhang
2d347e8deb dsp: adm: ensure hyp assgin is called when FNN module is used
1. During SSR, app_type is NONE got from this_adm struct.Add
change to get app_type from current cal block when app_type
is NONE.

2. FNN module is added in DMFE and QMVC CoPP topology. Add
change to remove topology condition to ensure hyp assign is
called when FNN module is used.

3. FNN moudle is not supported for 44.1Khz. Set the rate to
16Khz for VPM_TX_VOICE_FLUENCE_NN_COPP_TOPOLOGY.

Change-Id: Ie64a04b8d29202eda5c6153cb0dd478f15b7485b
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-03-10 14:30:33 +08:00
Fei Tong
972c98a02e ASoC: remove unused variable definition for compling issue
transcode_loopback_session_lock is defined but not used, and cause build issue
remove the unused definition

Change-Id: I233ca61084370cd17ccd04fa51fa1c25c8885c36
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2021-03-09 19:33:14 -08:00
qctecmdr
2e51c87fc7 Merge "asoc: qcs405: Update clk src string from dts" 2021-03-09 09:41:00 -08:00
Shashi Kant Maurya
8851d6d145 dsp: adm: add to check output/input channel
To avoid out of bound value of output/input
channel add the check.

Change-Id: I25b7616d6fc08c2d0bb530dfb1457471dc25861c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-03-04 12:59:56 +05:30
qctecmdr
82ecd917d7 Merge "asoc: makefile: remove audiodlkm headers install in makefile" 2021-03-03 21:46:20 -08:00
qctecmdr
eca4af349c Merge "asoc: wsa883x: Update OTP_REG_0 as volatile reg" 2021-03-03 21:46:20 -08:00
qctecmdr
3ae0fd9f44 Merge "ASoC: wcd937x_slave: Add retry while getting logical addr for wcd937x slave" 2021-03-03 21:46:20 -08:00
qctecmdr
a1ba6206ad Merge "asoc: refine the probe for loopback devices" 2021-03-03 21:46:20 -08:00
Vatsal Bucha
f22f468a91 ASoC: Enable gain ctl of display port hostless playback
Enable gain ctl of display port hostless playback.

Change-Id: I7beb64a657db7349ad5c3ed374389564cf68bfea
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-02 02:47:51 -08:00
qctecmdr
94a768cf5c Merge "asoc: bolero: Update PCM_RATE based delay for amic" 2021-02-28 23:33:31 -08:00
Vatsal Bucha
c455f79f85 ASoC: wcd937x_slave: Add retry while getting logical addr for wcd937x slave
Add retry while getting logical addr for wcd937x slave.

Change-Id: Iff3f6a071c13f8bdccc72da69e95432be2d4f90a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-02-28 21:30:17 -08:00
Guodong Hu
55f68af3b7 asoc: makefile: remove audiodlkm headers install in makefile
audiodlkm headers should be installed in audiodlkm*.bb do_insatll().
Only in this way, the DEPENDS can work for other recipes
in sstate cache condition.

If the headers are installed via audiodlkm do_compile(),
recipes depend on audiodlkm will fail
in audiodlkm sstate cache enabled condition.

Change-Id: Ieeb2fc8cd772e8cf239be74bb2021283bacb658a
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2021-02-28 17:25:52 -08:00
Guodong Hu
0433734505 asoc: refine the probe for loopback devices
msm_pcm_loopback_probe should be conducted only for
normal loopback devices, not low-latency.

And such kcontrol should not be added twice.

Change-Id: Iaab631019b5b964473bfaebade0697eb7c4373e7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2021-02-28 17:25:35 -08:00
qctecmdr
258bb5db28 Merge "asoc: Add support for display port hostless fe" 2021-02-26 09:34:15 -08:00
qctecmdr
877781d540 Merge "ASoC: remove unnesssary log message for virtual port" 2021-02-26 09:34:15 -08:00
Laxminath Kasam
0a21bc23e0 asoc: wsa883x: Update OTP_REG_0 as volatile reg
For WSA variant info is available in this register
OTP_REG_0. Make it volatile read-only register
to always read from hardware.

Change-Id: I1c543875748d08304b4abe6c73594bc116d08c6d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-02-26 13:47:17 +05:30
Kunlei Zhang
7a4d8574ec dsp: update size check for get VI param function
In afe_get_cal_sp_th_vi_param functions, data size
should check with size of cal_type_header. The check
is not present which might lead to out of bounds access.

Update condition to ensure data_size is greater than
or equal to size of cal_type_header.

Change-Id: Ib2904f53243f4fb858131511812fd90de32b4656
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-02-26 16:00:20 +08:00
Soumya Managoli
a8631caadd ASoC: dsp: Synchronise adm and rtac commands
Race condition observed while processing the
set_pp_params command responses sent back to back
by adsp for commands sent from adm and rtac.
Handle this by synchronising the get/set pp_params
command in both the drivers.

Change-Id: Id89d98217dc5cad3703e5d545ddee21cb145c874
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-02-24 05:54:30 -08:00
qctecmdr
e514776d95 Merge "dsp: adm: avoid FNN model memory unmap when closing non-FNN port" 2021-02-22 21:31:40 -08:00
Soumya Managoli
9908997a77 asoc: bolero: Update PCM_RATE based delay for amic
The PCM_RATE bit field in LPASS_TX_CDC_TXn_TX_PATH_CTL
ranges from 0 to 6.
In the current implementation of tx-macro, the value
read is mapped directly to the sample rate instead of
the indices. Change is to correct this.
Add the delay based on pcm_rate in va-macro as well.

Change-Id: I6cb7e58e71f2a25356608611f1dfed83171706f6
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-02-22 13:31:03 +05:30
Fei Tong
766e9afba0 ASoC: remove unnesssary log message for virtual port
Remove unnessary log message for virtual port or it will print a lot of error
message while driver work normal.

Change-Id: Ie8d6e955fc4eaeda169bb92bdc58769c9c005a4e
Signed-off-by: Fei Tong <ftong@codeaurora.org>
2021-02-22 15:20:25 +08:00
Laxminath Kasam
135182a25f asoc: Add support for display port hostless fe
Add DP port hostless frontend for port mixer usecases.

Change-Id: I54fe24731efd592d2c1867e9a878be57e5ebbd52
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-02-18 11:49:13 +05:30
Tahir Dawson
bd2b060777 dsp: q6asm: Delete all nodes in mmap_handle_list during RESET_EVENT
Clear the common_client mmap_handle_list when a RESET_EVENT is
received to avoid access to stale, unmapped handles

Change-Id: Ifcb7e98db45c476d159ac57a50333ea95391da8b
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2021-02-12 13:48:01 -08:00
qctecmdr
0fbe6935e5 Merge "asoc: add missed routing for Multimedia31" 2021-02-11 20:36:33 -08:00
qctecmdr
fc6c5e98b8 Merge "asoc: modify the ref_count check for substream" 2021-02-11 20:36:32 -08:00
Kunlei Zhang
677ccd1b56 dsp: adm: avoid FNN model memory unmap when closing non-FNN port
In VoIP FNN and audio record concurrence, FNN model shared memory
is wrong to unmap when audio record stop.

Fix it by checking FNN topology and app type to ensure the memory
is unmapped properly.

Change-Id: If24b6aa75d41b629a3ef33b9585d9d7d82aa9b25
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-02-11 00:28:21 +08:00
qctecmdr
9735cce457 Merge "dsp: avoid start voice happens before unmap cal memory" 2021-02-07 10:02:18 -08:00
qctecmdr
b41ef9ba59 Merge "asoc: lahaina: add ch_mask check for CPS to avoid endless loop" 2021-02-04 22:20:09 -08:00
qctecmdr
6308e43e30 Merge "ASoC: wcd-mbhc: Check if mutex is locked before mutex destroy" 2021-02-04 22:20:08 -08:00
qctecmdr
3ef050a503 Merge "ASoC: shima: Resolve tmic mute during amic voice call" 2021-02-04 22:20:08 -08:00
Meng Wang
d6b23e660f asoc: add missed routing for Multimedia31
Add missed routings for Multimedia31.

Change-Id: I9135d95e045c612f636e4327d08bec97962b6fd4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-02-05 09:05:57 +08:00