Commit Graph

3671 Commits

Author SHA1 Message Date
qctecmdr
9f0c670400 Merge "ASoC: Add check to prevent buffer overflow for port_idx" 2021-04-07 23:34:50 -07:00
qctecmdr
bfc25980ce Merge "ASoC: add machine driver for sa8295 based automotive platform" 2021-04-07 23:34:50 -07:00
qctecmdr
b8a843ab95 Merge "dsp: fix KW errors in adm_close" 2021-04-07 23:34:50 -07:00
qctecmdr
46de70fe9c Merge "ASoC: add gvm config file for auto sa8295 platform" 2021-04-07 23:34:50 -07:00
qctecmdr
31f4eab8ba Merge "ASoC: msm: Loopback Driver send asm cal data in prepare stage" 2021-04-07 23:34:49 -07:00
qctecmdr
9ccf0ef6a5 Merge "ASoC: dsp: find CAL block using buffer number" 2021-04-07 23:34:49 -07:00
qctecmdr
fabbedbba2 Merge "asoc: support non-runtime per-stream, per-device asm channel map" 2021-04-07 23:34:49 -07:00
qctecmdr
4cab09cf7a Merge "ASoC: dsp: find CAL block using buffer number" 2021-04-07 23:34:49 -07:00
qctecmdr
0f28ed9daf Merge "ASoC: bolero: Set interpolation rate for IIR input" 2021-04-02 03:50:41 -07:00
qctecmdr
deceaf9e56 Merge "ASoC: QCS405: Additional TDM samplerates and channels" 2021-04-02 03:50:41 -07:00
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
Vatsal Bucha
2781295e91 ASoC: Add check to prevent buffer overflow for port_idx
Add check to prevent buffer overflow for port_idx in
dai driver.

Change-Id: Id3126520e52590204fdb8bf92d3c4c52b1867354
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-31 12:32:02 +05:30
Viraja Kommaraju
83338b5ec0 ASoC: dsp: find CAL block using buffer number
Use FEdai_id to calculate the buffer number and
use the same to identify the right CAL block for
ASM CAL types.

Change-Id: Iab83892f5c2f2bc54c8fa97ac084d8a04586f712
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-03-31 00:10:44 +08:00
Viraja Kommaraju
7e2ffcdcbc ASoC: dsp: find CAL block using buffer number
Use FEdai_id to calculate the buffer number and
use the same to identify the right CAL block.

Change-Id: I3a429d8d12ab670370ec947f2d789f2abf4066f1
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-03-30 16:58:16 +08:00
Guodong Hu
3987721c06 asoc: support non-runtime per-stream, per-device asm channel map
For non-typical channel number playback and capture, we need to
provide asm channel map info, otherwise pcm prepare will fail.

But there is no such default asm map info in audio drivers.

This change is to provide mechanism to set asm channel map, to
ununblock non-typical channel playback and capture.

Change-Id: Idad08c6f3f50b36f5c9c0a813bc0ef493cc57c59
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2021-03-30 15:56:45 +08:00
Hongtao Peng
6aa368c112 ASoC: msm: Loopback Driver send asm cal data in prepare stage
Add the q6asm_send_cal in msm_pcm_prepare for loopback driver.
This will allow to send asm calibration data to POPP

Change-Id: I649734ff735a2253c7e01fd5bdd8e9665ef5244a
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-03-29 21:11:28 -07:00
Kunlei Zhang
afdda77f70 dsp: fix KW errors in adm_close
Add null check for cal_block before pointer access.

Change-Id: I485093998ede4d3f5a304df1617fcb2af63ea670
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-03-30 10:42:28 +08:00
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
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