Commit gráf

3113 Commit-ok

Szerző SHA1 Üzenet Dátum
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
Sudheer Papothi
4dc669fa7e soc: soundwire: update soundwire debug logs
Update soundwire debug logs to avoid confusion during soundwire
enumeration of slaves.

Change-Id: Ib265fb3bf777a1461a9041bb269cdcb5c9ac5e2b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-09 06:13:12 +05:30
Laxminath Kasam
d02c7efb35 soc: mstr-ctrl: Retain Audio_HM voting until suspend
Restore change to retain audio_hm voting and
ensure AOP hang issue not seen by masking interrupt
wakeup of swr pinctrl pins.

Change-Id: I51bf36d6d6b0999abf10a4bc94cce900d1adf1d5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-06-08 16:24:54 +05:30
Laxminath Kasam
61f235e5bd asoc: bolero: Register for AFE event for all SVA usecases
For island SVA usecase, ensure register for
AFE in-band interrupt.

Change-Id: I24e6dfadfaa38919114000fb09a7906264020cd9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-06-08 16:23:50 +05:30
Meng Wang
f4c77b97fa asoc: send codec dma data alignment when it's set
Only send codec dma data alignment cmd when it's set.

Change-Id: I413c28bc01b4f49aa0291b868852dfb5835add8e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-06-08 07:59:11 +08:00
Akhil Karuturi
4eed73be71 ASoC: Remove unused config
Config variables are no longer supported and are replaced by
audio effects config in Lahaina.

Change-Id: Ic817791a470a7e4b0fac280115edf849fecc91c7
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-06-05 10:42:07 -07:00
Prasad Kumpatla
d173af6770 asoc: codecs: Fix out of bounds access in register show function
In register show function, when snprintf returns a negative value
out of bounds access occurs while copying the data to user.
Add return value check on snprintf before copy_to_user
to fix this and add sizeof() for tmp_buff to avoid buffer
overflow.

Change-Id: I15f1add37987d2176a165669d7a5b40bd576004c
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-06-05 06:40:55 -07:00
qctecmdr
d187ddf230 Merge "asoc: wsa-macro: Fix mixing path on WSA" 2020-06-05 01:54:03 -07:00
qctecmdr
dfa5675e0b Merge "asoc: Fix a memory leak issue when nvmem read returns invalid length" 2020-06-05 01:54:03 -07:00
qctecmdr
b6aaedd76e Merge "dsp: Fix a memory leak issue when nvmem read returns invalid length" 2020-06-05 01:54:03 -07:00
qctecmdr
c1a9199e09 Merge "asoc: codecs: Update LPM voting support for vdd-mic-bias-supply" 2020-06-05 01:54:03 -07:00
qctecmdr
163b145d07 Merge "ASoC: update audio effects config names" 2020-06-05 01:54:03 -07:00
qctecmdr
7a2578cd8a Merge "asoc: msm-cdc-pinctrl: Add alternate pinctrl state for DSD input" 2020-06-05 01:54:03 -07:00
qctecmdr
b32d95eeb5 Merge "Revert "asoc: check payload length against structure size"" 2020-06-05 01:54:03 -07:00
qctecmdr
261249d3f4 Merge "ASoC: swr-haptics: Avoid soundwire resume during subsystem restart" 2020-06-05 01:54:02 -07:00