Commit Graph

3378 Commits

Author SHA1 Message Date
Divya Sharma
530a9c8d6e Revert "asoc: bolero: switch clk to VA_CLK for LPI SVA"
This reverts commit 1a7cee75ba.

Change-Id: I27f4b23650ed66560dca8e067ca010870e121e52
2020-10-05 19:05:30 -07:00
Meng Wang
1a7cee75ba asoc: bolero: switch clk to VA_CLK for LPI SVA
When switching TX_CLK to VA_CLK, there could be some
IRQ missing with current design. Switch the clk in bolero
to avoid the corner case.

Change-Id: I9a8b15ade3358c7276356a0f6555b541651d85a5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-21 11:45:19 +05:30
Meng Wang
0dbd04d871 Revert "Revert "ASoC: bolero: check clock source before clock switch""
This reverts commit 68cbba47d0 as this
causes AMIC SVA issue.

Change-Id: Icb08cec87b108243fc9660a519c332c1f3ffb48d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-21 11:44:00 +05:30
Vignesh Kulothungan
b0df2d8ab5 soc: remove error log in lpi gpio write
When sound wire master suspend is called, it holds the mutex lock
and does lpi_gpio_write, which gets preempted during pr_err_ratelimited.
Any other calls to master suspend will be blocked waiting for the above
mutex lock resulting in timeouts.
Remove pr_err_ratelimited log when device is down.

Change-Id: I148263ddbb89d436b0ce27bdc4519f196d90679a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-09-20 13:16:43 -07:00
Meng Wang
48ff19f071 dsp: ion: avoid dma_buf_put twice when msm_audio_ion_map_buf fails
Update logic to avoid calling dma_buf_put twice
when msm_audio_ion_map_buf fails.

Change-Id: I6958ec55dc78f245e93fbaedf085873fe0f4cb93
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-19 10:56:51 -07:00
Linux Build Service Account
21429ed59f Merge 3944bb8d29 on remote branch
Change-Id: Ie5b564e2bc4c75d70e7c941fdd2cde12712785bb
2020-09-18 08:38:29 -07:00
qctecmdr
3944bb8d29 Merge "Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"" 2020-09-15 10:44:42 -07:00
qctecmdr
73bd1902ea Merge "ASoC: codec: Change name for enum defined for callback between wcd and bolero" 2020-09-15 10:44:42 -07:00
qctecmdr
156b36504a Merge "dsp: Fix issues due to accessing array out of bounds" 2020-09-15 10:44:42 -07:00
qctecmdr
d46b228359 Merge "ASoC: limit error log print rate" 2020-09-15 10:44:41 -07:00
Salendarsingh Gaud
5d69def3cf Revert "Revert "Revert "ASoC: bolero: check clock source before clock switch"""
This reverts commit bdb29e89ea.

Change-Id: Ie82e94c86cb063ec9cc45695f4df9b0e5f842217
2020-09-13 13:01:06 +05:30
Salendarsingh Gaud
48dd09c650 Revert "asoc: bolero: switch clk to VA_CLK for LPI SVA"
This reverts commit 87d4e3c1b9.

Change-Id: Ie2e5d7a9ce900d3f390481d3fc7ac207260ab315
2020-09-13 13:01:06 +05:30
Salendarsingh Gaud
b9e32ed773 Revert "soc: swr-mstr: check swrm->state in swr_runtime_suepend"
This reverts commit 7072e2e8d5.

Change-Id: I285a71795aaf4c5cef3037b2f9f4792567ff452f
2020-09-13 13:00:54 +05:30
Meng Wang
7072e2e8d5 soc: swr-mstr: check swrm->state in swr_runtime_suepend
in swrm_runtime_suspend, current_state is not updated and
causes audio_core_vote is not disabled. Update to check
swrm->state to resolve this issue.

Change-Id: I2c5be360fe5ddd964d7bc45696e254579aae5392
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-10 18:10:46 +05:30
qctecmdr
c896ed2237 Merge "soc: swr-mstr: check swrm->state in swr_runtime_suepend" 2020-09-10 01:00:03 -07:00
qctecmdr
9c822fca10 Merge "dsp: add support for CMA heap allocation during call" 2020-09-10 01:00:03 -07:00
Vatsal Bucha
625753df87 ASoC: codec: Change name for enum defined for callback between wcd and bolero
Add enum names defined for callback between wcd and bolero in
separate file and include that file in order to have same enum
across wcd and bolero.

Change-Id: I808c2ad3de37655c1ba2b8e096def60703ced7f2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-09-09 20:26:36 -07:00
Meng Wang
87d4e3c1b9 asoc: bolero: switch clk to VA_CLK for LPI SVA
When switching TX_CLK to VA_CLK, there could be some
IRQ missing with current design. Switch the clk in bolero
to avoid the corner case

Change-Id: Iec5cac16e026e4e46646894c546f1acb3fce4fa8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-09 16:56:04 +05:30
Meng Wang
bdb29e89ea Revert "Revert "ASoC: bolero: check clock source before clock switch""
This reverts commit 68cbba47d0 as this
causes AMIC SVA issue

Change-Id: I0e66c97dfc9499c30942ce2e3a123be58833eac8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-09 16:55:44 +05:30
Linux Build Service Account
1a639ec59f Merge a387074fd0 on remote branch
Change-Id: Ie83fbf5dbdd09f7eb60d9425e252cf395c939a04
2020-09-08 01:04:33 -07:00
Prasad Kumpatla
69415f2e6c dsp: Fix issues due to accessing array out of bounds
Add check for ASM_ACTIVE_STREAMS_ALLOWED
sessions to avoid accessing the array out of bounds.

Change-Id: I7b2fe2dffdb3132fded0b1e268ebd29139050823
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-09-07 22:59:15 -07:00
Meng Wang
91437a36ea soc: swr-mstr: check swrm->state in swr_runtime_suepend
in swrm_runtime_suspend, current_state is not updated and
causes audio_core_vote is not disabled. Update to check
swrm->state to resolve this issue.

Change-Id: I2c5be360fe5ddd964d7bc45696e254579aae5392
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-08 13:13:56 +08:00
xsang
1513b912b3 ASoC: limit error log print rate
Limit error log print rate to avoid crash.

Change-Id: I76ff715cb98a19d2885ca89d281a882a898a8264
Signed-off-by: xsang <xsang@codeaurora.org>
2020-09-08 10:51:44 +08:00
Harshal Ahire
77bfded0b3 asoc: Parse adsp_varient to update sound_card name for holi
Update the sound card name corresponding to 1MB SKU holi varient.

Change-Id: I6d13b5d642dee168cc79be54d0f45a58b396630f
2020-09-07 03:42:21 -07:00
qctecmdr
a387074fd0 Merge "Asoc: fix integer overflow for long duration offload playback" 2020-09-06 02:31:20 -07:00
qctecmdr
a8f17e1f0c Merge "asoc: wcd-mbhc: report headset when it's not reported" 2020-09-06 02:31:20 -07:00
Vatsal Bucha
ece27ec4e9 Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"
This reverts commit 7bc77136ad.

Change-Id: I9c46a0ae8db3c3ea9ab9c908b9faf9b61e4364be
2020-09-04 21:29:05 +05:30
Guodong Hu
d200c2fbe1 dsp: add support for CMA heap allocation during call
Add support for CMA heap allocation during call.

Mirror from: 3226736

Change-Id: I30a237b360ec6d690515682f0d98a86148acf059
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2020-09-03 18:45:53 -07:00
qctecmdr
994eb4e818 Merge "ASOC: fix audio machine driver compile issue" 2020-09-03 18:06:23 -07:00
qctecmdr
0a07c920ab Merge "asoc: update macro for MAX DAI ID to include all frontend dai" 2020-09-03 18:06:23 -07:00
qctecmdr
d22126dbda Merge "soc: soundwire: Fix soundwire audio core voting sequence" 2020-09-03 18:06:23 -07:00
qctecmdr
b794fac22f Merge "ASOC: update soundwire master port config for holi" 2020-09-03 18:06:23 -07:00
qctecmdr
9fd22f4064 Merge "soc: soundwire: fix for headset mic recording issue with wcd937x." 2020-09-03 18:06:23 -07:00
qctecmdr
61241e3041 Merge "asoc: lahaina: address checkpatch error and warning" 2020-09-03 18:06:23 -07:00
qctecmdr
d512c0e75f Merge "ASoC: shima: Resolve noise during amic record" 2020-09-03 18:06:22 -07:00
qctecmdr
8c5b6cac7e Merge "soc: swr-slave: update swr config for SWR DMIC" 2020-09-03 18:06:22 -07:00
qctecmdr
6047761857 Merge "ipc: apr_vm: add symbol apr_register_adsp_state_cb" 2020-09-03 18:06:22 -07:00
qctecmdr
1831ffeeec Merge "Revert "audio-driver: dsp: Adapt to non sys heap support for GVM"" 2020-09-03 18:06:22 -07:00
qctecmdr
3c36eede88 Merge "dsp/ipc: update kbuild and header files for gvm bringup" 2020-09-03 18:06:22 -07:00
qctecmdr
f56b14ef39 Merge "ASoC: wsa883x: Update hardware sequence for WSA883x codec" 2020-09-03 18:06:22 -07:00
qctecmdr
e793db529e Merge "ASOC: Fix audio compile issue in secure_buffer" 2020-09-03 18:06:22 -07:00
Divya Sharma
7c5b5dde15 Revert "asoc: wsa883x: remove default value setting for WSA883X_OVERRIDE2"
This reverts commit 12e8c617df.

Change-Id: I9310037cb400c3f072b09d35057dbafaa7658636
2020-09-03 11:22:25 -07:00
Divya Sharma
43e43b300a Revert "Revert "ASoC: lahaina: add support for CPS speaker protection""
This reverts commit 4cc52db8b9.

Change-Id: Ie5fca8605eec1bd7271e6c25ca0288ca39d2b972
2020-09-03 11:22:09 -07:00
Divya Sharma
b606922ca1 Revert "Revert "dsp: add afe function to send cps configuration""
This reverts commit 5efb3a4ee3.

Change-Id: Iff31ace5e9deccb8f4a702217a4a08270f19d5a8
2020-09-03 11:21:55 -07:00
Meng Wang
dcc84d6ff8 asoc: wcd-mbhc: report headset when it's not reported
During bootup and headset inserted, headset may first
detect as GND_MIC swap type and not report. During three
seconds polling, it's corrected as headset or headphone.
When wrk_complete is false, it will not report to userspace.
When current_plug is MBHC_PLUG_TYPE_NONE, report headset or
headphone to userspace.

Change-Id: I63394f1704c34cf355f0f4b0c33959332a69a639
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-09-02 13:33:09 +08:00
Akhil Karuturi
9cf05e43f9 Asoc: fix integer overflow for long duration offload playback
update total bytes transffered and received to prevent
overflow when playback goes beyond 24 hours.

Change-Id: Icacae7495d2016788ff0bb3796c5a0724b3f5a29
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-09-01 22:14:48 -07:00
qctecmdr
c0411d8c3a Merge "soc: soundwire: support 600KHz bus clock scaling" 2020-09-01 18:11:51 -07:00
qctecmdr
4716ce11df Merge "dsp: ensure unmap memory is called when PDR/SSR" 2020-09-01 18:11:51 -07:00
qctecmdr
9c3cdfae73 Merge "asoc: bolero: Update bolero version 2.0 entry" 2020-09-01 18:11:51 -07:00
qctecmdr
78ff42400c Merge "dsp: afe: send cps config after sending topology" 2020-09-01 18:11:50 -07:00