Commit Graph

764 Commits

Author SHA1 Message Date
Linux Build Service Account
e83932585b Merge "Asoc: codec: Fix compilation errors for sdmsteppe target" 2018-11-21 20:45:52 -08:00
Linux Build Service Account
a49eeaac30 Merge "Asoc: Enable audio-dlkm compilation for sdmsteppe target" 2018-11-21 20:45:52 -08:00
Linux Build Service Account
5bbb86f402 Merge "asoc: msm-audio-effects: initialize struct before use" 2018-11-21 20:45:50 -08:00
Linux Build Service Account
b5caafccd1 Merge "asoc: msm: update max eq sessions based on fe dai max" 2018-11-21 20:45:49 -08:00
Linux Build Service Account
b6c04f460a Merge "asoc: sm8150: use locked version of soc_find_component" 2018-11-21 20:45:48 -08:00
Linux Build Service Account
3a0e91bf0c Merge "ASoC: wcd937x: Fix pop after PDR" 2018-11-20 19:53:17 -08:00
Linux Build Service Account
523f345c3a Merge "asoc: codecs: bolero: Disable HD2 on RX macro" 2018-11-20 19:53:16 -08:00
Linux Build Service Account
aea561ec79 Merge "asoc: wcd937x: Handle button press before release interrupt" 2018-11-20 19:53:15 -08:00
Linux Build Service Account
e0d44204fe Merge "ASoC: msm: remove pcm_i2S_sel_vt_address from machine driver" 2018-11-20 19:53:12 -08:00
Linux Build Service Account
13c086dcee Merge "ASoC: wcd934x: mark wdma3 output widget as ignore_suspend" 2018-11-20 19:53:11 -08:00
Karthikeyan Mani
773b1d1ad0 asoc: sm8150: use locked version of soc_find_component
Use soc_find_component locked version to ensure proper
access of component list while trying to find wsa
components from the list.

Change-Id: I1960d5b023c3d59f5c97ca0f616b4d9e39c15c50
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-20 10:34:09 -08:00
Md Mansoor Ahmed
26d8bddff4 Asoc: codec: Fix compilation errors for sdmsteppe target
Fix compilation errors for sdmsteppe target.

Change-Id: I511bfd5271d04b455e46a101c47ea1535681dcca
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-11-20 11:07:28 +05:30
Md Mansoor Ahmed
2382aaad1a Asoc: Enable audio-dlkm compilation for sdmsteppe target
Enable compilation for sdmsteppe target and also fix
compilation errors.

Change-Id: I18a13764415ae955843706943e338bb575c11853
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-11-20 11:06:32 +05:30
Vatsal Bucha
79da9fb84a ASoC: wcd937x: Fix pop after PDR
Pop is heard after PDR is triggered. This is
because while device down PA is still on.
Disable PA before SSR device down to prevent pop.

Change-Id: I6bfe3e731bdf60fba8fee90ab39c03a0512006ce
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-19 14:41:52 +05:30
Linux Build Service Account
e95846085a Merge "ASoC: Fix null pointer dereference for prtd pointer" 2018-11-18 23:46:57 -08:00
Linux Build Service Account
712efd3aa3 Merge "wcd934x: Fix NULL pointer dereference for wcd9xxx pointer" 2018-11-18 23:46:54 -08:00
Linux Build Service Account
d72c877e31 Merge "soc: vote for LPASS NPA resource from LPI TLMM driver" 2018-11-17 09:56:49 -08:00
Meng Wang
49e9a4081b ASoC: msm: remove pcm_i2S_sel_vt_address from machine driver
lpaif_muxsel_virt_addr to select AUXPCM or I2S is not needed in
machine driver. ADSP would select AUXPCM or I2S according to
afe port.
Remove related change in machine driver.

Change-Id: I55520a56bab2134a08e86909b98eb15d588c53ba
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-11-16 17:18:24 -08:00
Bhalchandra Gajare
9ae91fb765 ASoC: wcd934x: mark wdma3 output widget as ignore_suspend
Paths using WDMA3_OUT widget are currently not marked to be ignored
during suspend, which results in the path teardown during suspend.
Due to this the audio use-case is broken. Fix this by marking
WDMA3_OUT widget as ignore_suspend.

CRs-fixed: 2176596
Change-Id: I72a2dda21aabfe9b13ea8660d4e3a51b3185d9ea
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-11-16 17:14:17 -08:00
Linux Build Service Account
d2d43fa980 Merge "ASoC: wcd937x: Enable hph OCP" 2018-11-16 10:16:59 -08:00
Linux Build Service Account
bef6a02c0d Merge "asoc: add SBC support for BT Sink in dai-driver" 2018-11-16 08:34:30 -08:00
Linux Build Service Account
67a099c6cc Merge "asoc: sdm845: set flag ignore_pmdown_time for ultrasound RX DAI" 2018-11-15 22:54:08 -08:00
Vatsal Bucha
8d8602219b wcd934x: Fix NULL pointer dereference for wcd9xxx pointer
During bind/unbind of ngd_msm_ctrl power_gate_digital_core
is called. Simultaneously tavil_remove is also called
making tavil pointer as NULL.  Check for tavil as not NULL
at the start of function to avoid NULL pointer dereference.

CRs-Fixed: 2267796
Change-Id: I6fc476cc8b706b556836f30838983de0f34d4fc1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 18:05:52 -08:00
Vatsal Bucha
2eb2e613df ASoC: Fix null pointer dereference for prtd pointer
Private data pointer may not be initialized before
access it in adsp_stream_cmd_put. NULL check for prtd
avoids the issue.

CRs-Fixed: 2250112
Change-Id: I0a033d7e867b183c329941b57b49232729191f1b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 18:01:31 -08:00
Florian Pfister
4b3b0c8401 asoc: add SBC support for BT Sink in dai-driver
Receive SBC stream parameters from IPC library.

Change-Id: I59e938589c912c85aa3b84203ff20c469b978671
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
2018-11-15 06:09:47 -08:00
Vatsal Bucha
204f59cd14 ASoC: wcd937x: Enable hph OCP
Update registers to enable OCP for HPHL and HPHR.

CRs-Fixed: 2321013
Change-Id: I51a872981ee2dc435757152b9122067944d13924
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 04:32:14 -08:00
Laxminath Kasam
d3ffb3368b asoc: codecs: bolero: Disable HD2 on RX macro
HD2 canceller on analog codec is performing
better and enabling HD2 block on rx macro side
as well impacting THD+N spec. As per HW
recommendation, disable HD2 on digital bolero
rx macro by default. Mixer control option is
provided if required to enable it in future for
any requirements.

CRs-Fixed: 2343436
Change-Id: Ic1696ff9a6dea22a3c2a6071708267e2a024a4c7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-15 15:01:09 +05:30
Linux Build Service Account
ffb86ea061 Merge "asoc: bolero: Add support to register wake irq" 2018-11-14 23:15:24 -08:00
Linux Build Service Account
3de80a4abd Merge "asoc: codecs: Add new class-H driver for wcd937x" 2018-11-14 23:15:18 -08:00
Mangesh Kunchamwar
920015ceb8 asoc: codecs: bolero: vote for LPASS NPA resource
Updates for voting for LPASS island NPA resource while
access any LPASS registers.

Change-Id: Ibcebd2d6ef368f309594689335bc07a36eafeaf0
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-15 12:22:48 +05:30
Vatsal Bucha
53b4e14f94 ASoC: bolero: Add callback to tanggu in SSR Disable
Add callback event in ssr_disable to disable
tanggu PA before regcache_cache_only
to avoid pop after PDR. Also update proper bit
while RX Mute.

Change-Id: I06402269d393ca74c11611482cafbde03f4c62b9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 11:40:25 +05:30
Mangesh Kunchamwar
912a96accb asoc: codecs: update audio clock driver for LPASS NPA resource
Add new clock node for LPASS NPA resource for clients
to enable or disable the resource.

Change-Id: I8aa587771618d301ace72d6df1045078cdf39c9c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-14 18:39:09 +05:30
Aditya Bavanari
3e19f3c007 asoc: sm6150: Add changes to send wake_irq mechanism
SM6150 V1.0 target uses ipc wake up mechanism. Based on
version info of sm6150 chipset, register for
wake up interrupt either by ipc_wakeup or hardware
interrupt line machanism.

Change-Id: I7f12d919418b284f310c8b7bb5cd24e47f2099ec
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-11-14 03:38:37 -08:00
Aditya Bavanari
c4e96121c5 asoc: bolero: Add support to register wake irq
Add reg_wake_irq macro callback and issue an event
from Tx macro to Tx sound wire master instance
in order to register for wake irq and to handle
the ipc wake up interrupt.

Change-Id: Iefddc1f85173ce267c0b00c9d06be3a4a2fe29fe
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-11-14 17:06:38 +05:30
Ramprasad Katkam
0730ecfaa0 asoc: wcd937x: Handle button press before release interrupt
If button press and release interrupts occur at same time
processing button release first would treat the button event
as fake, as it is not preceeded with press event. Hence
process button press before button release in irq driver.

Change-Id: I9413def87537502c470236a3948a21be47c479bc
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-11-14 11:48:09 +05:30
Linux Build Service Account
71d091e2ec Merge "asoc: wcd937x: move export functions to new header" 2018-11-13 21:59:22 -08:00
Laxminath Kasam
7adc34e496 asoc: codecs: Add new class-H driver for wcd937x
Add new class-H driver with sequences to support
both class-H and class-AB modes on wcd937x variants.

Change-Id: Ie109f3d951af1e8a0079dd39ab2fe1e9883bd6c2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-13 13:15:59 +05:30
Laxminath Kasam
838f0b885f asoc: wcd937x: move export functions to new header
For export functions from wcd937x use separate
header as internal header is only supposed to be
used within wcd937x driver logic.

Change-Id: Ice373ff95f7166a2f968458b25223c582edc7fba
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-12 21:49:59 +05:30
Laxminath Kasam
de09dfb301 asoc: codecs: bolero: Add HPH power modes on bolero
Two power modes are supported on bolero digital.
Add support to set required power mode using
mixer control and enable runtime during powerup
sequence.

Change-Id: I4c5a7560984d60745ac98848f1eec1d1f8485323
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-12 20:19:57 +05:30
Karthikeyan Mani
4183e32a46 asoc: msm-audio-effects: initialize struct before use
Memset the param header struct to null values before
using or passing it to other functions.

Change-Id: I09ae686e62c8812ea267d4f809529b324fb7106d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-09 17:48:17 -08:00
Karthikeyan Mani
94aca37c6e asoc: msm: update max eq sessions based on fe dai max
Maintain eq data size to be equal to the max fe dais
present to not step over bound in accessing.

Change-Id: Ice0b7675b39a9fe2516a56d4e0b739ce34277958
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-09 14:56:11 -08:00
Xiaoyu Ye
52b9a67618 asoc: sdm845: set flag ignore_pmdown_time for ultrasound RX DAI
During PCM closing, the AIF power down will be delayed due to flag
ignore_pmdown_time is not set. Set this flag for ultrasound RX DAI
to avoid delay in PCM close which causes slimbus overflow.

Change-Id: I5eeaceaacc5be0c200b50d1a7d0f211fa0d41f2b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-11-06 17:33:28 -08:00
Linux Build Service Account
408ba7c759 Merge "asoc: wcd937x: disable TX CH2 after power down" 2018-11-05 21:39:05 -08:00
Linux Build Service Account
2ae2328796 Merge "asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun" 2018-11-05 21:38:56 -08:00
Linux Build Service Account
d577325ee4 Merge "asoc: qcs405: add machine driver support for SLIMBUS_9_TX" 2018-11-04 19:08:06 -08:00
Dhananjay Kumar
4867dc18a8 asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun
ADSP, userspace and LSM client driver, all these three layer are maintaining
independent buffers and rewrite them irrespective of the buffer being read
successfully by their client or not.
Before switching to real-time capture, history buffers cached can be returned
with minimal delay and may lead to overrun in a module if buffering in the
module is not sufficient to store all those data generated almost instantaneously.
LSM driver having buffer size smaller than history buffer duration is hitting
this issue and resulting in buffer overrun for even a small delay from userspace
in start of capture processing thread.
Prevent this issue by synchronising read and write in LSM driver to make
sure the driver waits for read from userspace before writing the same buffer again.

Change-Id: I2710b484a7ef03e8314c7ba05bf729893aecb890
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-11-02 19:54:00 +05:30
Linux Build Service Account
42a69eda3d Merge "asoc: qcs405: add A2DP sink support in machine driver" 2018-11-02 02:54:25 -07:00
Linux Build Service Account
17c1ef34d2 Merge "ASoC: msm: routing: add ec ref for sec and tert tdm" 2018-11-02 02:54:24 -07:00
Linux Build Service Account
aeb99f98ef Merge "Initial Android target definition for trinket." 2018-11-02 01:53:32 -07:00
Xiaojun Sang
80eb5ddfdd asoc: wcd937x: disable TX CH2 after power down
TX channel2 is not disabled after power down. It leads to
noise at the beginning of next recording on CH2.
Disable it after power down.

Change-Id: If12a84df52b9c8cd55de2bdcb91f950b054898b8
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-11-02 12:42:50 +08:00