Commit Graph

3144 Commits

Author SHA1 Message Date
qctecmdr
d9213f6bf7 Merge "asoc: flags is used but is uninitialized" 2020-06-17 06:08:08 -07:00
Aditya Bavanari
204e309fad soc: pinctrl-lpi: Add 100msec before resetting hw votes
Add 100msec delay before resetting hw vote counts in
SSR up sequence in order to ensure AVS is up when
votes are requested.

Change-Id: I0f46c60555f6bf833b1cac76f86a54afdcb78ba0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-16 21:25:03 -07:00
Sanjana B
42e9d9cebd asoc: update block size for dsd input
Update dsd channel block size from codec options.

Change-Id: I54011f1092eb8a687d1d4899928daad6746c7aed
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-16 20:46:02 -07:00
Linux Build Service Account
e41f9eab53 Merge 700bd78ede on remote branch
Change-Id: Iff0d63a9984de909dceac115d82f13c25984950d
2020-06-16 20:31:30 -07:00
qctecmdr
8c500e2d43 Merge "dsp: Fix out of bound memory access." 2020-06-16 20:17:02 -07:00
qctecmdr
5e475581e8 Merge "ASoC: wsa883x: Avoid temperature read during playback" 2020-06-16 20:17:02 -07:00
qctecmdr
6b6cf2666c Merge "asoc: codecs: retry for soundwire slave enumeration" 2020-06-16 20:17:02 -07:00
qctecmdr
7284897e35 Merge "asoc:support for DSD on MI2S interface" 2020-06-16 20:17:02 -07:00
qctecmdr
122fd6707a Merge "audio-kernel: Add void param in function definition" 2020-06-16 20:17:02 -07:00
qctecmdr
ab89ce9e65 Merge "dsp: q6adm: Update the proper param_hdr for offset" 2020-06-16 20:17:02 -07:00
qctecmdr
28a89ca1bd Merge "wcd938x: add dummy widgets to codec inputs/output" 2020-06-16 20:17:02 -07:00
Divya Sharma
795442a29c Revert "ASoC: lahaina: Add soft dependencies for BT"
This reverts commit d7b8622205.

Change-Id: Ia965e76bb3212b333f53f140d4b7644f6056f38d
2020-06-16 17:43:21 -07:00
Vatsal Bucha
298c198b37 ASoC: wcd937x: Add mixer ctl for TX CH power level
Add mixer ctl for tx channel power level.

CRs-Fixed: 2703598
Change-Id: Iecb0dfe491afaface4c4dd1995aa13c7efd9df82
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-16 09:24:02 +05:30
Xiaoyu Ye
32482607bc asoc: convert pr_info to pr_debug to reduce kernel logs
To reduce kernel logs, change unnecessary pr_info to
pr_debug in audio drivers.

Change-Id: I32e2e31b87bf0486352c99c04d455f3fdd2677da
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-06-15 19:18:25 -07:00
Vatsal Bucha
f0c7f88868 soc: swr-mstr: Fix headset detection during sva clk switch
Headset insertion/removal is not detected sometime due to
fifo read failure due to swr underflow. This is because if
headset sva is enabled, during clk switch swr force stop
happens and if mbhc has already taken pm vote for 3sec
further mbhc reads/writes will fail. If swr is in clk switch
mode then call swrm runtime_resume during reads/writes
to resolve issue.

Change-Id: I0d65869bd1c645bbf7ded9c0265f8d7de0dc624b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-15 07:06:13 -07:00
Zhou Song
d8005c664b dsp: don't reset rx ec ref channel after adm open
Remove reset of rx ec ref channel for adm after using,
if the channel value is not changed, user space won't
set it to driver again, then causing adm opening failed.
2020-06-15 20:46:17 +08:00
Meng Wang
91572c7890 asoc: lahaina: add stub fe for wsa capture
When WSA is disabled, WSA related widgets is not registered and it
causes soundcard registeration fail. Add stub fe for wsa capture to
avoid soundcard registeration failure.

Change-Id: I282d843d02544aaf2f2b646aba4fca731fc6f47e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-12 12:46:32 +08:00
Sudheer Papothi
b3fa5a0dc5 asoc: codecs: retry for soundwire slave enumeration
Retry for soundwire slave enumeration during bootup before
EPROBE_DEFER to avoid soundcard enumeration failures.

Change-Id: I083ec76fc84a2b367f93a2dc166a1419a75ff8b4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-11 21:40:46 +05:30
Deru Wang
f1a7ecab50 asoc: flags is used but is uninitialized
initialize flags to resolve static code analysis issue

Change-Id: I23e74050e69db6894b02cbc00605861abdce0e56
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2020-06-11 08:08:49 -07:00
Aditya Bavanari
6bacce4b9c audio-kernel: Add void param in function definition
Add void param in function definition to
avoid compilation errors when strict prototypes
flag is defined.

Change-Id: I4515c730139fff18638805cd70db24ec1886f127
2020-06-11 07:03:04 -07:00
Avinash Chandra
5638ecaf5d dsp: q6adm: Update the proper param_hdr for offset
For Source Tracking adm_get_param, param_hdr (struct param_hdr_v3) size
being sent was different as param_hdr(struct param_hdr_v1)size used for
offset of virtual memory to copy the param data in out-band case get_param.

Change-Id: I01dd4f704cc5b6994f1203a0e28199a6936cba7f
Signed-off-by: Avinash Chandra <avicha@codeaurora.org>
2020-06-11 07:02:18 -07:00
qctecmdr
700bd78ede Merge "asoc: send codec dma data alignment when it's set" 2020-06-11 04:15:17 -07:00
qctecmdr
c250412b5d Merge "ASoC: wcd938x: Add dapm ignore suspend for DAIs" 2020-06-11 04:15:16 -07:00
qctecmdr
064de7b487 Merge "ASoC: swr-dmic: Add ignore suspend for dapm widgets" 2020-06-11 04:15:16 -07:00
qctecmdr
17b9010fb5 Merge "ASoC: wsa883x: Update interrupt handling on WSA883x driver" 2020-06-11 04:15:16 -07:00
qctecmdr
f1b31e25a5 Merge "ASoC: bolero: Disable wsa swr gpio as wakeup capable" 2020-06-11 04:15:16 -07:00
qctecmdr
a14bf0fa0a Merge "soc: soundwire: update soundwire debug logs" 2020-06-11 04:15:16 -07:00
qctecmdr
e0a48cd1e5 Merge "q6afe: add support for handling rx proxy ports concurrency" 2020-06-11 04:15:16 -07:00
qctecmdr
0f5df347f1 Merge "soc: mstr-ctrl: Retain Audio_HM voting until suspend" 2020-06-11 04:15:16 -07:00
qctecmdr
bfa84ffadd Merge "ASoC: add dai link for playback compress3" 2020-06-11 04:15:16 -07:00
qctecmdr
e5b0943baa Merge "ASoC: lahaina: Add support for VI sense backend" 2020-06-11 04:15:16 -07:00
qctecmdr
c14ab52d6e Merge "asoc: codecs: Fix out of bounds access in register show function" 2020-06-11 04:15:16 -07:00
qctecmdr
a3a76f4a28 Merge "ASoC: Remove unused config" 2020-06-11 04:15:16 -07:00
Soumya Managoli
d1a006c81e dsp: adsp-loader: Support ADSP restart recovery when stuck
Changes to support silent restart of adsp subsys
based on the apr callback when packet transfer
to adsp timesout.

Change-Id: Icedb76907a441792d1953a08dd071791e5b08706
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-06-11 12:05:42 +05:30
Harshal Ahire
e7ca214c29 dsp: Fix out of bound memory access.
Fix out of bound memory access in q6afe_load_avcs_modules()
for afe_avcs_payload_port_mapping structure.

Change-Id: Ibe0e90e4fbedc2cf6a88abd9f3845643020a904a
2020-06-10 23:12:39 -07:00
Harshal Ahire
c702957fa2 dsp: Add support to dynamically load and unload BT modules
Add new APIs to enable dynamic load and unload of BT
modules before afe_port_start and afe_close.

Change-Id: I74da9a49aac754d4557c7206155de65cf9b6bdaf
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-06-10 23:02:37 -07:00
Sanjana B
02d1c6dc11 asoc:support for DSD on MI2S interface
Add support for DSD in MI2S interface and corresponding api updates
from ADSP.

Change-Id: I494205763fa429f95e43497ed5b8f91332f5a2a3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-09 23:41:10 -07:00
Vignesh Kulothungan
4a38ad6bdc wcd938x: add dummy widgets to codec inputs/output
With multicodec approach, codec widgets are added much earlier during sound
card registration than aux codec approach. The connections between bolero and wcd938x
are done via device tree at a later point. DAPM does power checkup for codec widgets
before the codec-codec path is connected. This results in wcd938x dapm inputs/output
to be considered as endpoints, which results in playback/record failure once after
bootup. Hence, add dummy output/input widgets to wcd938x dapm inputs/output which are not
codec endpoints.

Change-Id: I5ab4839e9b76adba24c9254ae56dc784b4448af7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-06-09 19:03:26 -07:00
Sudheer Papothi
aea784377c ASoC: wsa883x: Avoid temperature read during playback
Avoid reading temperature during playback usecase.

Change-Id: If471e19ea0ca5856d17f694ce084145d7132e365
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-10 00:34:55 +05:30
Soumya Managoli
12aec928b6 ipc: apr: Support ADSP restart recovery when stuck
Add interface to register callback with adsp loader client.
When adsp is stuck and does not respond for apr_send_pkt,
resulting in continuous EAGAIN error, trigger this
callback to enable adsp subsystem restart.

Change-Id: Ib59cfdfba3313581d6612b872a2b7f1e19f8a76d
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-06-09 23:15:35 +05:30
qctecmdr
839a48af63 Merge "include: uapi: update header for upstream compliance" 2020-06-09 09:24:19 -07:00
qctecmdr
c2b840c7c5 Merge "ASoC: Update Compress driver as per ASoC framework expecatations" 2020-06-09 09:24:19 -07:00
qctecmdr
b797291c55 Merge "Soc: soundwire: Update hw_ctl on HCLK at bootup" 2020-06-09 09:24:19 -07:00
qctecmdr
6c188e55ac Merge "lsm: add support for SVA multi sound model" 2020-06-09 09:24:19 -07:00
qctecmdr
b434c07e7c Merge "asoc: routing: move volume and app type cfg controls from asoc to driver" 2020-06-09 09:24:19 -07:00
qctecmdr
6454e7791d Merge "asoc: kona: Update wsa8815 default config" 2020-06-09 09:24:19 -07:00
qctecmdr
a77e7d4be8 Merge "asoc: codecs: Add delay to eliminate playback pause post SSR on hs" 2020-06-09 09:24:19 -07:00
qctecmdr
2cd5203bcc Merge "ASoC: pcm-routing: Add WSA VI sense macro to support capture" 2020-06-09 09:24:18 -07:00
Laxminath Kasam
1e558673c6 asoc: wcd938x: Add WCD ADC Mode mask to control modes
To set correct swr clk rate in concurrency,
use WCD ADC modes as status mask bit to confirm
ADC paths active and control set clock rate.

Change-Id: Id3401d6ed59bd617e0751e7c704268346b36dac4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-06-09 19:39:22 +05:30
Zhou Song
0a79d42770 q6afe: add support for handling rx proxy ports concurrency
In case of two concurrent active rx proxy ports, add
separate callback data to handle proxy reading.

Change-Id: I4de631b9cfead777c970103a79578964e5950eb9
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-06-09 09:43:59 +08:00