Commit graph

3,095 commits

Author SHA1 Message Date
qctecmdr
33ea77356f Merge "asoc: update error check to avoid fix crash issues" 2020-07-16 23:56:45 -07:00
qctecmdr
4de12ccc8a Merge "asoc: add MM31 playback on USB and BT devices" 2020-07-16 23:56:45 -07:00
qctecmdr
ce0d91646a Merge "ASoC: wsa-macro: Add core vote before accessing registers" 2020-07-16 23:56:45 -07:00
qctecmdr
f40bc141fb Merge "asoc: kona: update sound wire port frame config routing" 2020-07-16 23:56:45 -07:00
qctecmdr
848466a9cc Merge "dsp: voice: Reset music_info on SSR" 2020-07-14 06:11:20 -07:00
qctecmdr
d36eef9148 Merge "asoc: bolero: Ensure va-macro is registered before other macros" 2020-07-14 06:11:20 -07:00
qctecmdr
a4dc347d72 Merge "asoc: wsa881x: Disable WSA ADC register when teardown" 2020-07-14 06:11:20 -07:00
qctecmdr
ab4679a93f Merge "soc: soundwire: Enable audio core voting" 2020-07-14 06:11:20 -07:00
Kunlei Zhang
e0e3201a64 asoc: kona: update sound wire port frame config routing
update sound wire port frame config routing to ensure use
correct port config for device with no WCD.

Change-Id: I1746323230064f51020850cf8e1dbf2c29977bed
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-07-13 17:13:11 +08:00
Sudheer Papothi
de83e87f07 ASoC: wsa-macro: Add core vote before accessing registers
Add core vote before accessing registers to avoid unclocked
access.

Change-Id: I02ce78d71787f5a12c44cd3194dde62682f20037
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-11 04:27:42 +05:30
Surendar karka
f82b056a61 asoc: update error check to avoid fix crash issues
During negative test case if the backend index is out of range
we will observe crash issues, update error check to avoid crashes.

Change-Id: I07531ee538013841f93acd02537ac5a7c1e350ba
Signed-off-by: Surendar karka <skarka@codeaurora.org>
2020-07-10 16:11:29 +05:30
qctecmdr
779e5fd02d Merge "ASoC: lahaina: start headset detection after soundcard is registered" 2020-07-10 01:59:34 -07:00
qctecmdr
f14fc12662 Merge "soc: swr-mstr: Add delay of 100us after last write during bulk write" 2020-07-10 01:59:34 -07:00
qctecmdr
a24cf2ea0a Merge "ASoC: bolero: Resolve glitch during amic record" 2020-07-10 01:59:34 -07:00
qctecmdr
52c21204de Merge "ASoC: wcd938x: Reduce glitch during headset record" 2020-07-10 01:59:34 -07:00
qctecmdr
a5467e0e4a Merge "dsp: fix compilation issue in dynamic load/unload BT modules" 2020-07-10 01:59:34 -07:00
qctecmdr
38973a8972 Merge "asoc: check param_size before use it in memcpy" 2020-07-10 01:59:34 -07:00
qctecmdr
1b53e55fd0 Merge "ASoC: update swr dmic device down mechanism" 2020-07-10 01:59:34 -07:00
qctecmdr
1ef7ff5ddb Merge "ASoC: lahaina: add be dai link for DSD" 2020-07-10 01:59:34 -07:00
qctecmdr
dd8e5009d5 Merge "asoc: Add check for substream ref_count before access the substream." 2020-07-10 01:59:34 -07:00
qctecmdr
a18ec3d3c8 Merge "asoc: codecs: remove cancel_delayed_work_sync to avoid race condition" 2020-07-10 01:59:34 -07:00
Meng Wang
87f632b0be asoc: add MM31 playback on USB and BT devices
Add MM31 playback on USB and BT devices.

Change-Id: I6b3f4b615b4b3923569e14b57ce091e015b7f493
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-09 08:37:07 +08:00
Dhananjay Kumar
02aa9f5f33 dsp: voice: Reset music_info on SSR
Reset music_info playback states during SSR to fix incall music session
failure after SSR.
Music delivery session requests are getting ignored if the state is not reset.

Change-Id: I7dd736baa538fb3697c874230c5a9c02f90b6a06
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2020-07-09 00:11:46 +05:30
Laxminath Kasam
b9ff5ac5b0 asoc: bolero: Ensure va-macro is registered before other macros
As va-macro has fs_clk gen, ensure va-macro
is registered before other macros.

Change-Id: I8283dc11817caf0c208fe231132951a7a79b7d51
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-08 19:51:47 +05:30
Sudheer Papothi
db0cc84eb7 soc: soundwire: Enable audio core voting
Audio core vote enables soundwire master and establishes
soundwire link without which soundwire master will not power up.
This change votes for audio core during soundwire runtime
resume and unvotes during soundwire runtime suspend.

Change-Id: I3ca283be42670a56102c4f08c0f207ae9dc4e5c3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-07 15:16:47 -07:00
Vignesh Kulothungan
b50df74ac4 ASoC: update swr dmic device down mechanism
Add notification from wcd938x to sound wire dmics
during SSR. Remove device down from dev ops to avoid
deadlock scenarios.

Change-Id: Ifdcbebb748c10deb89ad51ada1a8ce1cf33f2462
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-07 15:11:51 -07:00
Sudheer Papothi
68cbba47d0 Revert "ASoC: bolero: check clock source before clock switch"
This reverts commit 93bc6299f3 and
6cc7f52a6d.

Change-Id: I614b650d6e071b9d1867988ebc88246b9fdc8f91
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-08 03:39:55 +05:30
Harshal Ahire
ed50512138 dsp: fix compilation issue in dynamic load/unload BT modules
Compilation issue addressed in failure case to load
num_modules.

Change-Id: Ieb923074a71f4ddc4c8da379b1169a06ce9267b6
2020-07-07 03:20:28 -07:00
Meng Wang
248a190981 ASoC: lahaina: start headset detection after soundcard is registered
When soundcard registeration fails after headset IRQ is triggered, kernel
panic may happen. Start headset detection after soundcard is registered
in late_probe.

Change-Id: Ibc5cebbf0e3331db1ec89fdcb9082029c510aaf7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-07-06 18:12:51 -07:00
Vatsal Bucha
b5449b40d7 ASoC: rouleur-mbhc: Fix aux cable detected as unsupported sometimes
Aux cable is detected as unsupported sometimes due to it being
detected as cross conn. Increase hph cross conn threshold to 350mV
so that it detects fine.

Change-Id: I87e4bd36f80d7cd62e06c76acf9c9d06bb6f148a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-03 19:58:01 -07:00
Prasad Kumpatla
ef02f940ae asoc: Add check for substream ref_count before access the substream.
Add check for substream ref count before access the substream.

Change-Id: Iccb6226519e8fddf624f82160a0d8d22641944db
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-07-03 00:58:19 -07:00
qctecmdr
5d06056f5b Merge "asoc: lahaina: add stub fe for wsa capture" 2020-07-03 00:42:07 -07:00
qctecmdr
3b7f4a16ae Merge "asoc: add null check for pcm pointer of snd_pcm_volume" 2020-07-03 00:42:07 -07:00
Vatsal Bucha
39b18cbd38 ASoC: bolero: Resolve glitch during amic record
Glitch is observed during amic record due to improper
sequence being followed. Reduce delay between toggle
of hpf gate to depending on sample rate to resolve glitch.

Change-Id: I8d9810dbc00264662f24532be9338198e6d7316d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-02 20:09:54 -07:00
Vignesh Kulothungan
7b1cfaca64 ASoC: lahaina: add be dai link for DSD
Add BE dai link LPASS_BE_RX_CDC_DMA_RX_5 for DSD
playback usecase.

Change-Id: Iacafab0131100ce6631c376b304f8a5006c326b7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-02 12:58:07 -07:00
Prasad Kumpatla
8508b1a103 asoc: codecs: remove cancel_delayed_work_sync to avoid race condition
Remove cancel_delayed_work_sync in swr_down,to avoid race condition
between skr_pa_event POST_PMD and swr_down.we are taking care of
schedule_delayed_work and cancel_delayed_work_sync in PMU and PMD.

Change-Id: I4f43ffc354ec930dabd7c4a8b2382f6064a24653
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-07-01 23:25:21 -07:00
Vignesh Kulothungan
b629237a0e ASoC: bolero: add rx_macro_rx5 dai for dsd
Add rx_macro_rx5 dai for native dsd playback support.

Change-Id: I52a47e1d908fddda4c9d1a5546f9a00d6b8a7ba4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-07-01 12:59:17 -07:00
Laxminath Kasam
070b8d25a1 asoc: wsa881x: Disable WSA ADC register when teardown
To ensure mono/stereo speaker usecases with speaker
protection enabled switch properly and apply register
during powerup, update disable sequence of ADC register.

CRs-Fixed: 2705914
Change-Id: If9ceb4436ed6ce236a4e529d65b0acc8f9f6cd0e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-07-01 17:03:16 +05:30
Xiaoyu Ye
e1e34edd16 asoc: check param_size before use it in memcpy
If param_size is not the correct size when it's
passed to memcpy, it could result wrong parameter
to be sent to ADSP by audio driver.

Change-Id: Iaf66a87c405bd0508bb0771c5fe20626f2b75dda
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-07-01 01:11:57 -07:00
Vatsal Bucha
a20b914402 soc: swr-mstr: Add delay of 100us after last write during bulk write
There is no delay after last write during bulk write. Add 100us delay
so as to ensure that last write goes fine.

Change-Id: Ifc1585f30eec639ffd6b80dde2e0365f368349d7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-30 23:11:50 -07:00
qctecmdr
6f1643eac5 Merge "asoc: compress: move compress controls to compress_new" 2020-06-30 19:16:29 -07:00
qctecmdr
db0a7df795 Merge "dsp: Feedback path cfg to support 3rd party spkr protection algorithms." 2020-06-30 19:16:29 -07:00
qctecmdr
dd29f28450 Merge "soc: swr-mstr: Fix KW issue in swrm_remove" 2020-06-29 11:21:31 -07:00
qctecmdr
668ef31d07 Merge "lsm: fix potential Null pointer dereference" 2020-06-29 11:21:31 -07:00
qctecmdr
66099fcea7 Merge "dsp: redefine audio_notifier_init to silence PDR error" 2020-06-29 11:21:31 -07:00
qctecmdr
92b6ef250c Merge "soc: soundwire: Reduce soundwire runtime suspend delay" 2020-06-29 11:21:31 -07:00
qctecmdr
c6f14b5027 Merge "Revert "soc: mstr-ctrl: Retain Audio_HM voting until suspend"" 2020-06-29 11:21:31 -07:00
qctecmdr
59e150f829 Merge "dsp: don't reset rx ec ref channel after adm open" 2020-06-29 11:21:31 -07:00
qctecmdr
81afbb7af9 Merge "asoc: convert pr_info to pr_debug to reduce kernel logs" 2020-06-29 11:21:31 -07:00
qctecmdr
6aa4e7993c Merge "dsp: convert pr_info to pr_debug to reduce kernel logs" 2020-06-29 11:21:31 -07:00