Commit graph

2,467 commits

Author SHA1 Message Date
qctecmdr
fd4cc74d9f Merge "asoc: codecs: fix compile error for bengal_32" 2019-11-12 03:10:23 -08:00
Laxminath Kasam
fbd95edd79 asoc: bolero: Add va/tx macro registers for bolero 2.1
Update VA/TX macro registers for bolero 2.1

Change-Id: I6be9632407c85a36bc746c65b34a52812548ad2a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-12 12:32:37 +05:30
Surendar Karka
afd3e12fbe asoc: update open read call based on ASM version
compress read is failing as the encoder config
format support  is to v5. Update the open read call
to V5 based on ASM version.

Change-Id: I5b74da5719172d31fb488bcd8081c6d0495d3905
2019-11-11 19:02:14 +05:30
Zhou Song
8e7a8d481b asoc: add new path for in call recording
Add path for routing in call uplink and downlink to
MultiMedia9.

Change-Id: Id43519ca3cd31aafc0f88a1c2428b3ddc7cc1f93
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-11-11 18:15:07 +08:00
Laxminath Kasam
e229197566 soc: soundwire: Handle command response sequence
In soundwire version 1.6 as AHB HCLK and MCLK
are decoupled, need to wait for clock stop
entry and exit scenarios to execute before
any further transactions. Keep monitor on
COMP status accordingly.

Change-Id: I03204526d7dd634a79193b55c6744edca8664d93
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-11-08 14:53:28 +05:30
Aditya Bavanari
f5ec84824d dsp: fix MFC config param payload alignment issue
MFC set param failed in DSP due to payload mismatch
and stereo echo reference doesn't work.
Channel type parameter in MFC config payload is an
array of uint16_t, but it is assumed as an array
of uint8_t while copying from device structure.
Fix this by copying the channel type one by one
instead of using memcpy.

CRs-Fixed: 2197468
Change-Id: I4b6959e8db56743ac98da75ddc3aa8f56964b4ca
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-11-07 23:18:53 -08:00
qctecmdr
8ae27622e7 Merge "ASoC: wcd937x: Fix audio distortion issue during headset record" 2019-11-07 01:08:59 -08:00
qctecmdr
4436361d36 Merge "asoc: routing: Add route controls for RX_CDC_DMA_RX_1" 2019-11-07 01:06:59 -08:00
Laxminath Kasam
e1dc0d7901 asoc: bengal: Use dtsi property for VA, RX-TX macros dailinks
Append dailinks for VA and RX-TX macros based on dtsi property.

Change-Id: Ib1f4520cd569546e5954d9295b8455f89a3212ca
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-06 17:55:07 +05:30
Laxminath Kasam
0f73819a4d asoc: codecs: Update default value for chip wakeup regs
For chip wakeup registers used as interrupt mask, set
default value provided via dtsi.

Change-Id: Ie080006cb7a92e8745636c97a67b8e09ab977832
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-06 13:00:46 +05:30
Surendar Karka
c9431f1111 asoc: codecs: register notifier for all bolero codec variants
Playback on speaker is getting mute due to notifier not getting
registered. Register notifier for all  bolero codecs
variants to enable WSA PA.

Change-Id: Id13a533af7096f50de2e1a654393c579a81af953
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-11-06 12:55:12 +05:30
Laxminath Kasam
5b1458d315 asoc: codecs: fix compile error for bengal_32
For bengal_32 local compile fails. Update
the condition check in make to avoid compile
of wsa and hdmi modules for bengal, bengal_32.

Change-Id: I90db0a36b4c435874137d312545e3757f335fa78
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-05 05:06:39 -08:00
Laxminath Kasam
2336053268 asoc: codecs: wcd937x: Update micbias pull up widgets
Add micbias pullup widgets required for VA usecase.

Change-Id: I3f2d0ce3d409297fb5e2bf0468258aaee9365293
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-05 17:22:07 +05:30
qctecmdr
d112152817 Merge "asoc: msm-dai: Add senary mi2s format control" 2019-11-05 02:40:12 -08:00
Laxminath Kasam
b03e82deda asoc: bolero: Update tx swr clk widget for bolero 2.0
TX_SWR_CLK widget is not needed for bolero 2.1.
Update it to retain for bolero 2.0.

Change-Id: I2b38fb807460ca31d1e968e0eb69a24ce46a531e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-05 14:56:08 +05:30
Laxminath Kasam
688db8aa06 dsp: q6afe: Update lpass hw votes to maintain separate handles
lpass client handle variable stores latest lpass hw vote.
During PDR, core hw vote release proceed to call unvote
for stale handle since above variable is set to non-zero
as part of audio hm vote. Maintain separate handles for
respective lpass hw votes inorder to fix this.

Change-Id: I432ce38b253ce6d18a25f9845fa694912718c74f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-05 13:15:45 +05:30
Laxminath Kasam
d6b629414c asoc: wsa881x: Update break after post_fs event
Update missing break after post_fs event handling.

Change-Id: I50894d21445c501366298e8ee8f1f66b854ac44f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-05 12:39:44 +05:30
Karthikeyan Mani
91850713f5 asoc: codecs: bolero: Do not process ssr disable if already down
If codec receives ssr disable notification when
already in disabled state do not have to process it.
This makes sure codec register access are not done when
not necessary.

Change-Id: Iafc2b03d7c707c46c69ca995d36119929c34c222
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-11-04 15:32:39 -08:00
qctecmdr
3adccae508 Merge "ASoC: wcd-mbhc: Fix headset insert not detected after moisture config" 2019-11-01 21:30:24 -07:00
qctecmdr
8b3980d174 Merge "asoc: codecs: bolero: suspend swr at VA use case switch" 2019-11-01 21:30:24 -07:00
qctecmdr
521c66c14c Merge "asoc: codecs: bolero: toggle zero gate for first hpf update" 2019-11-01 21:30:24 -07:00
qctecmdr
0098ac9c7b Merge "asoc: Add new mixer control to reset ecns" 2019-11-01 21:30:24 -07:00
qctecmdr
6ad0cc614e Merge "asoc/dsp: add tert_tdm_tx_0 port for lsm support" 2019-11-01 21:30:24 -07:00
Vatsal Bucha
a9675d1a5d ASoC: wcd937x: Fix audio distortion issue during headset record
Audio is distorted during first 3 secs on headset record
while doing device switch from dmic to headset mic.
Disable BCS before slow insertion detection and enable it
afterwards to resolve the issue.

Change-Id: Icb18a0b5decb0c0bd9959bce7cced70a27566d41
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-11-01 03:15:36 -07:00
Laxminath Kasam
dcf2ab2380 asoc: routing: Add route controls for RX_CDC_DMA_RX_1
Add controls required for RX_CDC_DMA_RX_1 used for
AUX speaker path in bengal target.

Change-Id: Ia7ec59b19960e3c3f3a844406671303f72787bc1
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-01 15:33:47 +05:30
Laxminath Kasam
1a58793f4a asoc: codecs: CSR access requires AHB clock from bolero 1.1
From bolero 1.1, Bolero and SWR CSR moving to AHB clock
and no need to enable other macro RCG clocks.

Change-Id: I6663196a88dbf07868d6426bdda98f33e42004d1
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-11-01 13:02:12 +05:30
Vignesh Kulothungan
6f4285c583 ASoC: add echo ref support for SEN MI2S
Add SEN_MI2S_RX to echo_ref_rx so it can be used for
Audio EC reference.

CRs-Fixed: 2553377
Change-Id: Id326c6f80b0553bd1031b2c4a641d6bc716d03a7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-10-31 20:57:40 -07:00
Sudheer Papothi
8e9a0aecdd ASoC: wsa883x: Update dapm path sequence
Update dapm path sequence for speaker amplifier.

Change-Id: Ia5fcd7d4574d990ef42e6b3e16b3ddd81841d4bc
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-10-31 23:49:10 +05:30
Surendar Karka
4bb8998788 asoc: update number of channel only for default channel map
Volume setting on the custom channel map is failed as
use default channel map is always set to true.
Use default channel map from runtime data and update
number of channels only if custom channel map is not set.

Change-Id: I2326b52687144a584f85ab3db8a2930f8fa5c3ea
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-10-31 03:34:32 -07:00
qctecmdr
2e421b5771 Merge "asoc: bolero: Update SWR TX moved to AO region" 2019-10-30 10:44:38 -07:00
qctecmdr
ec6cd57ba0 Merge "asoc: codecs: Update VA/TX controls based on bolero version" 2019-10-30 10:39:18 -07:00
qctecmdr
5797597129 Merge "asoc: codecs: bolero: do not perform soft reset" 2019-10-30 10:34:51 -07:00
qctecmdr
16ded023c7 Merge "asoc: bolero: Update version query for bolero 2.1" 2019-10-30 10:33:11 -07:00
qctecmdr
994b108f6e Merge "asoc: Add check for valid backend index" 2019-10-30 10:32:16 -07:00
qctecmdr
17923a3092 Merge "ASoC: Add routing for quin tdm tx and voice controls" 2019-10-30 10:29:58 -07:00
qctecmdr
137583f46f Merge "soc: soundwire: change ssp period based on frame shape" 2019-10-30 10:26:57 -07:00
qctecmdr
0064cf4db8 Merge "ASoC: wcd938x: Disable ADC mode for tx at power down after record" 2019-10-30 10:24:20 -07:00
qctecmdr
de37293915 Merge "dsp: Fix NOC error from lpass on accessing LPASS_AVTIMER_LSB" 2019-10-30 10:22:37 -07:00
Guodong Hu
395166b04b asoc/dsp: add tert_tdm_tx_0 port for lsm support
Add backend port: TERT_TDM_TX_0 to support
"LSM Mixer", "LSM Port" and "LSM Function"
mixer controls.

Change-Id: I86d83ba96ee79bbffef4aee2f31a6d16eb09d78f
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2019-10-29 10:38:18 -07:00
Meghana Reddy Mula
58b05be4ab asoc: Add new mixer control to reset ecns
Add support for mixer control to enable/disable
ecns module for voice call.

Change-Id: Icd046e936b0ae0db577e46e139b4f060e0cc7462
Signed-off-by: Meghana Reddy Mula <mmula@codeaurora.org>
2019-10-29 16:05:59 +05:30
Meghana Reddy Mula
6420f70b2d dsp: Add new mixer control to reset ecns
Add support for mixer control to enable/disable
ecns module for voice call.

Change-Id: I085411c4a6394d27880f8055b3348c1eb5f2b6ff
Signed-off-by: Meghana Reddy Mula <mmula@codeaurora.org>
2019-10-29 16:04:27 +05:30
qctecmdr
5a11838d7b Merge "ASoC: Add DTMF support for Audio usecase" 2019-10-25 05:44:29 -07:00
qctecmdr
b8f7df5cfa Merge "asoc: msm: Add 32bit support for mi2s" 2019-10-25 05:43:24 -07:00
qctecmdr
e5345cce2c Merge "asoc: codecs: Add wakeup register update for chip register" 2019-10-25 05:42:34 -07:00
qctecmdr
fb0d3c39be Merge "asoc: codecs: Avoid spi data transfer during suspend" 2019-10-25 05:41:58 -07:00
qctecmdr
8461ad4010 Merge "AsoC: Add mixer controls for incall music delivery" 2019-10-25 05:40:20 -07:00
qctecmdr
0cbb7f2749 Merge "ASoC: wcd-mbhc: Fix null pointer dereference for mbhc" 2019-10-25 05:38:57 -07:00
qctecmdr
80870fbc90 Merge "ASoC: Fix audio distortion issue during headset record" 2019-10-25 05:37:28 -07:00
qctecmdr
0c5dd6fd10 Merge "asoc: fix audiodlkm compile error on sa8195 perf" 2019-10-25 05:35:37 -07:00
Vatsal Bucha
7b663b23b2 ASoC: wcd-mbhc: Fix headset insert not detected after moisture config
Headset insertion is not detected after moisture is configured and then
removed. This is because during moisture_detect GND_DET_EN is configured
irrespective of whether it is enabled or not. Add a check before enabling
gnd_det_en. Also as moisture_en is disabled and duty cycle is enabled
change check during removal to disable threshold and polling.

Change-Id: Iee9d79b38b228e78d1509d59e92d37f1328f079e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-25 00:47:21 -07:00