Commit Graph

2277 Commits

Author SHA1 Message Date
Vatsal Bucha
fc40b33b24 ASoC: wcd-mbhc: Fix null pointer dereference for mbhc
IRQ data pointer is corrupted due to slimbus NGD errors.
This may happen as IRQ will be received from slimbus.
Check for mbhc null pointer before dereferencing to avoid crash.

Change-Id: I142ee535c6d643b53063b57c0f45414aff8b6304
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-22 12:22:04 +05:30
qctecmdr
360a45bad1 Merge "ASoC: wsa883x: Add support for wsa883x speaker amplifer" 2019-10-16 23:52:29 -07:00
qctecmdr
15e89245c3 Merge "dsp: afe: call get params with afe cmd lock held" 2019-10-16 23:46:59 -07:00
qctecmdr
bda988eed1 Merge "asoc: msm-pcm: Add mutex lock to protect prvt data" 2019-10-16 23:42:54 -07:00
qctecmdr
da0caa48e2 Merge "asoc: dsp: move ctl "SLIM_7_RX APTX_AD Enc Cfg" to the bottom" 2019-10-16 23:35:30 -07:00
qctecmdr
26247b9b1c Merge "asoc: wcd937x: Fix compile error in wcd937x codec driver" 2019-10-16 23:32:44 -07:00
qctecmdr
731807e0a2 Merge "asoc: codecs: restore wsa analog driver files" 2019-10-15 01:13:13 -07:00
qctecmdr
73d4531d52 Merge "asoc: codecs: wcd938x: Add support for setting ear gain ctl" 2019-10-15 01:12:28 -07:00
qctecmdr
bf7e1c0567 Merge "asoc: bengal: Add new machine driver for bengal target" 2019-10-15 00:51:27 -07:00
qctecmdr
f4ad6ff187 Merge "asoc: codecs: bolero: audio HM voting only supported on bengal" 2019-10-15 00:47:21 -07:00
qctecmdr
18fe524741 Merge "soc: soundwire: Update hctl gate setting for SWR version 1.6" 2019-10-15 00:42:55 -07:00
qctecmdr
565f0218db Merge "asoc: codecs: Make compander write coefficients as volatile" 2019-10-15 00:36:09 -07:00
qctecmdr
e5a9a64b36 Merge "asoc: add routing for RX_CDC_DMA_RX_1 to connect for hostless FE" 2019-10-15 00:26:14 -07:00
qctecmdr
0f6392dc14 Merge "asoc: codecs: Check for core votes count before accessing registers" 2019-10-15 00:22:20 -07:00
qctecmdr
e59a8a66f5 Merge "dsp: lsm: don't print physical address of invalid lsm client pointer" 2019-10-15 00:18:43 -07:00
qctecmdr
6a164b940d Merge "asoc: codecs: bolero: ignore children for pm suspend" 2019-10-15 00:15:16 -07:00
Prasad Kumpatla
2ef0c88aec asoc: msm-pcm: Add mutex lock to protect prvt data
Add mutex lock to protect private data in _put() and
_get() calls

Change-Id: I92f5a6515b6d1c4ad650a7dcf22a0a231a84dd30
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2019-10-14 12:38:58 -07:00
Laxminath Kasam
57e66c0251 asoc: wcd937x: Fix compile error in wcd937x codec driver
Update codec to component param for 4.19 kernel compatible.

Change-Id: Ia08283de4b01b45a6cd96c7f488f55bb0d4a5a53
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:31:17 +05:30
qctecmdr
f138524159 Merge "asoc: codecs: bolero: Add support to disable aux hpf" 2019-10-12 09:01:00 -07:00
qctecmdr
75b962681c Merge "asoc: codecs: bolero: Do not return error for unused gpio" 2019-10-12 08:58:56 -07:00
qctecmdr
d9328bec09 Merge "asoc: codecs: wcd938x: Fix HPHL mute when ear path teardown" 2019-10-12 08:57:06 -07:00
qctecmdr
d20a882baf Merge "dsp: Reset core hw vote client handle in SSR" 2019-10-12 08:55:27 -07:00
qctecmdr
21b6b95462 Merge "asoc: kona: vote audio dcodec for mi2s fractional sample rate" 2019-10-12 08:53:33 -07:00
qctecmdr
18b8880076 Merge "asoc: codecs: wcd937x: restore clear_ack setting for wcd937x" 2019-10-12 08:51:14 -07:00
qctecmdr
55603d0cb0 Merge "asoc: codecs: Add HPH and EAR concurrency state in class-h driver" 2019-10-12 08:49:13 -07:00
Aditya Bavanari
f8be8bdcf1 asoc: codecs: Make compander write coefficients as volatile
Make HPHL and HPHR compander write coefficients as volatile
registers in order to avoid cache operations on these registers
to fix audio glitch issues in headset playback.

Change-Id: If5a2019debdda3c50cc5cf1135dff2ad0e5a49a2
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-11 11:24:52 +05:30
Sudheer Papothi
af0a66b78a ASoC: wsa883x: Add support for wsa883x speaker amplifer
WSA883x is a speaker amplifier with soundwire interface and
enumerates as soundwire slave. WSA883x supports audio playback
on speakers and has temperature sensors for better speaker
protection and enhanced boost control support. Add software
driver support to enable WSA883x speaker amplifier.

Change-Id: Ib9cf2eebdda5ce331154bc786f059c5757f34fa2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-10-11 02:00:27 +05:30
Aditya Bavanari
d577af909c asoc: codecs: Check for core votes count before accessing registers
Check for core votes count before accessing swrm registers
to avoid NOC errors.

Change-Id: I5689d6a6db0886ed4cc791738a28290f3d953412
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-10 20:29:49 +05:30
Xiaoyu Ye
56c0d0927d dsp: lsm: don't print physical address of invalid lsm client pointer
Function q6lsm_get_session_id_from_lsm_client will print out the
physical address of a lsm client pointer in error message when it
fails to find the matching lsm client. This is not needed because
the address information is redundant and might cause potential
issue when a lsm client is already invalid.

Change-Id: If8c38b566c839c4b45d98e79802d0fd6efb5bdb9
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-10-09 21:57:42 -07:00
Laxminath Kasam
c7bfab9706 soc: soundwire: Update hctl gate setting for SWR version 1.6
In soundwire version 1.6, hw_ctl gating is required to address
HW limitation as SW workaround to get SWR functionality working.

Change-Id: Ia0939b1271f5400319217433de658a55a05ca404
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 22:38:45 +05:30
Laxminath Kasam
9e78ef8743 asoc: codecs: restore wsa analog driver files
Add support back for wsa analog codec driver files.

Change-Id: I7ef6ad050b068ec8c0f0275089d670c92234686d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:57:18 +05:30
Laxminath Kasam
ae52c99252 asoc: bengal: Add new machine driver for bengal target
Add support for new machine driver for bengal target.

Change-Id: Iffb189136e0ec0ae42d375d112227d4237e4b502
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:27:00 +05:30
Zhou Song
768fe50c7e asoc: dsp: move ctl "SLIM_7_RX APTX_AD Enc Cfg" to the bottom
Move this control definition to the bottom of the array, this
is to avoid changing the index of existing controls.

Change-Id: Id42dd908370b671cc7293f6c0af4adf3c025e1cc
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-10-07 22:27:40 -07:00
Karthikeyan Mani
1a9d750c9b asoc: kona: vote audio dcodec for mi2s fractional sample rate
To enable clock for mi2s running over fractional
sample rate, vote for audio dcodec lpass clock.

Change-Id: Ib8cff3ee0c61f23a4d8d163debea78dfb3a367a9
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-07 15:04:33 -07:00
Karthikeyan Mani
daf7d7af99 dsp: afe: call get params with afe cmd lock held
If get params is called without afe cmd lock, it
leads to race conditions with other callers calling
afe_apr_send_pkt and the status values read back
are getting overwritten wrongly by the callers that
call without lock.

Change-Id: I5af4d7bbbe01357dd9b6ae8efbe1831401003508
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-06 23:06:40 -07:00
Karthikeyan Mani
3d209514a9 asoc: codecs: bolero: ignore children for pm suspend
Allow bolero macro's child  devices to pm enable
irrespective of state of their parents.

Change-Id: Ie615ea2db097760de75682b5881f71a37a735fa2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-06 23:06:32 -07:00
qctecmdr
ae5dca4830 Merge "asoc: codecs: wcd938x: limit buffer copy to max buffer size" 2019-10-06 11:49:21 -07:00
Aditya Bavanari
81a54a220e dsp: Reset core hw vote client handle in SSR
Reset core hw vote client handle in SSR use cases
and do not unvote when the client handle is 0.
This is to clean up the client ids in SSR in
order to avoid unusual client deregistrations.

Change-Id: Id0cee50f7ca27e29db6134b7a70ae75334e0d765
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-04 01:08:58 -07:00
Vatsal Bucha
135b9f0b0c asoc: codecs: wcd938x: Add support for setting ear gain ctl
Add support for setting EAR PA gain directly using
mixer control.

Change-Id: I3667d8f26dc648e44d12c42be0940210763e08d5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-03 22:00:16 -07:00
qctecmdr
9781513741 Merge "asoc: Add support for Hifi resampler check with bitwidth and sample_rate" 2019-10-03 20:07:55 -07:00
qctecmdr
4b5cc9dcbe Merge "soc: pinctrl-lpi: Enable gpio for swr tx data3 for lito v2" 2019-10-03 20:07:55 -07:00
qctecmdr
46c1ee44b8 Merge "dsp: adsp-loader: Support dynamic size for array priv->adsp_fw_name." 2019-10-03 20:07:55 -07:00
Laxminath Kasam
e0eca370e8 asoc: add routing for RX_CDC_DMA_RX_1 to connect for hostless FE
Add routing connection for RX_CDC_DMA_RX_1 backend
to frontend CDC_DMA hostless for supporting FM on speaker over AUX.

Change-Id: I14e4344fb6cc943ced4402d323ff6e04448806c4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-03 19:34:45 +05:30
Prasad Kumpatla
6db89c7dc3 asoc: Add support for Hifi resampler check with bitwidth and sample_rate
The check for bitwidht and sample rate along with hifi enable is to ensure not
to open speaker at 32bit in combo usecase of speaker and Hifi-headphone.

Change-Id: I4d1e5f357a74424c28d11d17a9fdfdd9309adec3
2019-10-01 03:50:16 -07:00
qctecmdr
3c19b49560 Merge "asoc: codecs: bolero: Update mixing path and channel mask for RX path" 2019-09-30 23:31:40 -07:00
qctecmdr
61f51296b3 Merge "asoc: msm: Add support for updated tdm slot map cfg version" 2019-09-30 23:29:02 -07:00
Karthikeyan Mani
80b063e8d9 asoc: codecs: wcd938x: limit buffer copy to max buffer size
Check for max buffer size before filling the buffer and
add error handling for cases where buffer copy fails.

Change-Id: I0eede1e5baf63c35c65a704c8bf53c85fe49892e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-27 14:06:11 -07:00
qctecmdr
6fc4b30d6b Merge "soc: swr-mstr: exit irq handler if clock req fails" 2019-09-27 09:15:54 -07:00
qctecmdr
86eff99707 Merge "dsp: Change condition for cal_data for v_vali_param" 2019-09-27 09:13:08 -07:00
Ajit Pandey
72066d3ab6 dsp: adsp-loader: Support dynamic size for array priv->adsp_fw_name.
Current implementation allocates fixed size for array priv->adsp_fw_name
but this may result in out of bound access if source adsp_fw_name_array
dts property size exceed this fixed size. This patch fixes this issue by
allocating priv->adsp_fw_name array with dynamic size of source array.
Also fixes bytes copied in strlcpy.

Change-Id: Iea031952224672c34eb7245996687985e18ef8be
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-27 19:56:30 +05:30