Commit Graph

1767 Commits

Author SHA1 Message Date
Meng Wang
efbe46a1c5 asoc: wcd938x: reinit registers after SSR
Reinit wcd registers after SSR.

Change-Id: I5a8f22e4f76ffd8b279d1513eaa2f50973e3408c
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-29 11:07:33 +08:00
qctecmdr
f6dc08395d Merge "asoc: Add machine driver changes for sa6155" 2019-05-27 20:10:02 -07:00
qctecmdr
5df0e02847 Merge "asoc: dsp: do extention to support aptx adaptive R2" 2019-05-27 20:10:02 -07:00
qctecmdr
9142ab92c8 Merge "asoc: codecs: Add inline keyword to all stub functions" 2019-05-22 06:38:16 -07:00
qctecmdr
935e9bdbd0 Merge "asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN" 2019-05-22 06:35:21 -07:00
Rahul Sharma
a070ce5bc8 asoc: Add machine driver changes for sa6155
Add machine driver interface for 615x to support dynamic loading
of kernel module.

Change-Id: I5691c2730d31390d6f6b4ce30794182421dc1861
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-05-21 21:23:17 -07:00
qctecmdr
16f8ca3df0 Merge "asoc: msm: add support for senary interfaces in dai and routing driver" 2019-05-21 20:40:51 -07:00
qctecmdr
cbadda916f Merge "dsp: add senary MI2S and TDM port IDs" 2019-05-21 20:36:44 -07:00
qctecmdr
1f03ebdb1a Merge "ipc: add audio apr virtualization support" 2019-05-21 20:34:45 -07:00
qctecmdr
34b7d3b2fd Merge "ASoC: hide bind/unbind in sysfs" 2019-05-21 20:33:23 -07:00
qctecmdr
4d046667df Merge "ASoC: Add mixer control to configure port specific channel map" 2019-05-21 20:31:27 -07:00
qctecmdr
9a8c144a5a Merge "ASoC: wcd937x: Fix invalid memory access in wcd937x_suspend" 2019-05-21 20:29:26 -07:00
qctecmdr
6ef83ef671 Merge "ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5" 2019-05-21 20:26:51 -07:00
qctecmdr
8717168d90 Merge "asoc: codecs: bolero: Reset power mode register at teardown" 2019-05-21 20:25:28 -07:00
qctecmdr
c9a2aff3be Merge "audio-kernel: Add support to compile statically on Kona" 2019-05-21 20:23:41 -07:00
qctecmdr
3411218d88 Merge "asoc: codecs: bolero: Add adc1 condition to tx hold callback" 2019-05-21 20:21:11 -07:00
qctecmdr
edae774372 Merge "asoc: codecs: wcd938x: Read and store mic bias value" 2019-05-21 20:18:48 -07:00
qctecmdr
699b2827c7 Merge "asoc: routing: clean up bootup errors" 2019-05-21 20:17:19 -07:00
qctecmdr
ade2442709 Merge "asoc: Kona: add support to send island mode config for VA usecase" 2019-05-21 20:15:29 -07:00
Meng Wang
ddca68611f asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN
During suspend on new kernel, FE/BE path would tear down and
pinctrl for related component would be deactived. On kona, FM
is connected to TERT MI2S and during suepend, pinctrl for TERT
MI2S would be sleep state and FM has no sound.
Add ignore_suspend for all BEs, BE_OUT and BE_IN to avoid tearing
FE/BE path during device suspend.

Change-Id: I8868f35d6c418987ffe287d64a3f5ae3d1abf1c1
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-21 09:31:44 +08:00
qctecmdr
1a78e2262a Merge "asoc: Add control to set AFE Tx loopback port" 2019-05-18 03:10:52 -07:00
qctecmdr
a6b16919e9 Merge "dsp: add audio ion virtualization support" 2019-05-18 03:08:36 -07:00
qctecmdr
ac042711f0 Merge "asoc: qcs405: Add AFE Tx loopback controls" 2019-05-18 03:06:52 -07:00
qctecmdr
283d38b8c3 Merge "asoc: Ratelimit error logs to avoid excessive logging" 2019-05-18 03:04:55 -07:00
qctecmdr
4a0cf5086c Merge "asoc: Ratelimit error logs" 2019-05-18 03:03:10 -07:00
qctecmdr
f78ad1d9ee Merge "asoc: update missed file header to SPDX" 2019-05-18 02:59:44 -07:00
qctecmdr
805c422306 Merge "asoc: msm-lsm-client: add support for shared buffer DAM module" 2019-05-18 02:57:52 -07:00
qctecmdr
8105363ccb Merge "soundwire: return error if vote for LPASS HW Core fails" 2019-05-18 02:55:52 -07:00
Xiaoyu Ye
ffbdc9fe0f asoc: Kona: add support to send island mode config for VA usecase
Currently audio driver doesn't send island mode config to ADSP
to set the LPI mode, which causes ADSP to remain in Non-LPI mode.
Fix it by adding support in Kona machine driver to send island
mode config for VA usecase.

Change-Id: I2294950055cb74a1a9d3ee630e74f63eb6435e7b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-05-17 16:37:01 -07:00
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Vignesh Kulothungan
1572b9f03f asoc: routing: clean up bootup errors
Fix errors shown during bootup to enable cleaner bootup process.

CRs-Fixed: 2455248
Change-Id: I239d366674cc33276deda8dc61e1daa102a49ca7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-05-16 16:16:48 -07:00
Karthikeyan Mani
090de46cad asoc: codecs: Add inline keyword to all stub functions
Add inline keyword to stub functions to compile them
inline when the corresponding feature config is disabled.

Change-Id: I933d508fc0fd5c2ad8daa26be7d39eea2a3434b9
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-16 10:54:47 -07:00
Karthikeyan Mani
c3d8c9f2c3 asoc: codecs: wcd938x: Read and store mic bias value
Mic bias value is needed in case of special headset
detection logic and the same needs to be read and stored
from device tree to be used by mbhc driver.

Change-Id: I11c8ac6b0abc7ba04b6750c59405794bc768dc42
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-15 15:22:28 -07:00
Karthikeyan Mani
70df516a60 asoc: codecs: bolero: Add adc1 condition to tx hold callback
TX hold callback returns without making a callback
to external codec if the ADC with number one is called.
Add the condition for the missing ADC to make the callback
for ADC1.

Change-Id: Iec480b40cfbe199fbe06151abd99d9ad6aaf9c9d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-14 17:48:56 -07:00
Ramprasad Katkam
14efed6eb7 asoc: Ratelimit error logs
Ratelimit error logs to avoid excessive logging during
ssr/pdr.

Change-Id: Icdc9823cef5b070ed70cdd002bb3cd00d482a869
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-05-14 17:42:22 +08:00
Aditya Bavanari
53fbc925c9 asoc: Ratelimit error logs to avoid excessive logging
Ratelimit error logs of boundary check conditions
in audio effects driver to avoid excessive logging.

CRs-Fixed: 2426159
Change-Id: Iaf10eee281389773a21340997e3ffbe88c6e79f6
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-05-14 16:51:40 +08:00
Chaithanya Krishna Bacharaju
5074a712ab asoc: qcs405: Add AFE Tx loopback controls
AFE Tx loopback is used to capture playback data from Rx port
and use it for echo reference. Add controls to configure
capture backend channels, sample rate and format.

Change-Id: I68bd89461f3f37870a6d946fb03fe4124ee2fa6f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-14 01:49:42 -07:00
Chaithanya Krishna Bacharaju
166ccaeb1e asoc: Add control to set AFE Tx loopback port
AFE TX loopback is used to capture playback data from RX port
and use it for echo reference. Add new control to configure
Rx port to read data from in this case. Existing control was
re-using EC Ref rx port control and can lead to far end
configuration in undesired cases. Extend existing
MultiMedia1 Output Channel control to support 10channels.

Change-Id: I98f11d315e97d761ac2c8f8bf3ef387568c85082
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-14 16:48:20 +08:00
Meng Wang
d74f72b86d asoc: update missed file header to SPDX
update missed file header to SPDX.

Change-Id: I694c45965473d00d5a577df1cd2074becbc51372
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-14 01:02:43 -07:00
Timothy Sham
49cbca051c dsp: add audio ion virtualization support
Add support for virtualized ION frontend driver for audio.
Virtualized ION driver currently is designed to extract
physical memory through hypervisor abstracted ion layer,
which can be shared between APPS and ADSP directly.

Change-Id: I3c664ec3c3a99ce092da6ee103a3b2de4073664f
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-05-13 23:46:55 -07:00
Timothy Sham
150c909ba3 ipc: add audio apr virtualization support
Add support for virtualized APR frontend driver for audio.
Virtualized APR frontend driver resides in guest VM and
supports all legacy APR APIs. It will rely on MSM_HAB
to communicate with APR backend driver, which resides in
physical VM, where legacy SMD is utilized for communication
between APPS and ADSP.

Change-Id: I1df70a76defec17a45db93f3707c35e4fa796bc0
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2019-05-13 23:45:35 -07:00
Karthikeyan Mani
8e14752f35 audio-kernel: Add support to compile statically on Kona
Add include and source paths to support compilation
of audio drivers into kernel image on Kona.

Change-Id: I41b5ef7e5d20d517193e8295a61035a28692cb32
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-13 15:19:48 -07:00
Karthikeyan Mani
c141ca9e3d asoc: codecs: bolero: Reset power mode register at teardown
Reset the compander power mode register to default
value upon teardown sequence, so that at next startup
use case it has proper power value.

Change-Id: I851e8a62a910d7018ac74e93abee47a615b3e50c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-13 14:43:41 -07:00
Linux Build Service Account
586382a701 Merge "Revert "Revert "dsp: voice_mhi: use modified mhi sync/put api""" into audio-drivers.lnx.4.0 2019-05-13 14:37:12 -07:00
Sudheer Papothi
3fc2d77434 ASoC: Kona: Add ignore suspend for Digital Mic4 and Digital Mic5
Add ignore suspend for digital mic4 and digital mic5 to avoid suspend
during system suspend.

Change-Id: I13d70510e56835867ee7a56a6af9bf223a64b751
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-11 14:15:02 +05:30
Xiaoyu Ye
845b66f42a asoc: msm-lsm-client: add support for shared buffer DAM module
A new module called DAM is introduced to achieve common shared
memory for SVA use cases in LPI. Add new mixer control interface
to provide support for STHAL to configure the data that LSM gets
from AFE to be either processed or unprocessed.

Change-Id: I8556413257c6a2aee4739bcd89ffd130805af0c5
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-05-10 09:42:27 -07:00
Zhou Song
cde71a9c9c asoc: dsp: do extention to support aptx adaptive R2
Extend the encoder configuration to support aptx
adaptive R2.

Change-Id: I17d7adb62539d9f59222fd0c992424ba98395383
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-05-10 17:30:44 +08:00
Vatsal Bucha
72753620d0 ASoC: wcd937x: Fix invalid memory access in wcd937x_suspend
Invalid memory access happens in wcd937x_suspend if
component bind for slave fails. This is because
as part of component_unbind devres_release_group is called
which removes every node from list and frees corresponding memory.
This results in invalid memory access for wcd937x in wcd937x_suspend.
Do kfree and set drvdata to NULL if component_bind fails
to resolve the issue.

Change-Id: Ia26eb36fe8b92ac0491b03d0d4a2b8def415148b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-05-10 00:42:20 -07:00
qctecmdr
f53186de04 Merge "soc: Do not compile pinctrl_wcd for lito" 2019-05-09 02:57:45 -07:00
Vatsal Bucha
4f798ababf soc: Do not compile pinctrl_wcd for lito
Lito uses pinctrl_lpi. Do not compile pinctrl_wcd for lito.

Change-Id: I4befdc65769b592f0244556db64785b64b885223
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-05-07 23:41:05 -07:00