Commit Graph

1088 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
0064cf4db8 Merge "ASoC: wcd938x: Disable ADC mode for tx at power down after record" 2019-10-30 10:24:20 -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
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
Karthikeyan Mani
9810a5cc92 asoc: codecs: bolero: suspend swr at VA use case switch
While switching from a VA use case, suspend the soundwire
immediately so that if the next use case switches clock
soundwire will also be reset.

Change-Id: I18b65a01bc02329e9a53de93c0ccfb621c95a1f4
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-24 11:00:40 -07:00
qctecmdr
88faaba9d0 Merge "asoc: wsa881x-analog: Defer wsa probe until mclk node available" 2019-10-23 04:52:53 -07:00
Guodong Hu
42658f4480 asoc: fix audiodlkm compile error on sa8195 perf
* To fix a compile error in sa8195 perf image:
  uninitialized variable in wcd_cpe_core.c.

Change-Id: I2aac81068299202509eebcb854c53348451c522b
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2019-10-22 10:05:18 -07:00
Laxminath Kasam
2e13d64340 asoc: bolero: Update SWR TX moved to AO region
In bengal target, SWR TX moved to AO region.
Update SWR TX as child of VA macro and handle
respective SWR register/clock sequences from
VA macro.

Change-Id: I6b632ce56a885f2ccc8516840b0e5d270fe0b2c0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-22 15:29:58 +05:30
Laxminath Kasam
4651dcbbb0 asoc: codecs: Update VA/TX controls based on bolero version
Update route map, dapm widgets, snd controls for VA and
TX macros based on bolero version.

Change-Id: I6f517f2c243624d44601192295c50838c7ee0e05
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-22 15:21:25 +05:30
Laxminath Kasam
f1623021b1 asoc: bolero: Update version query for bolero 2.1
Expose API from bolero driver to retrieve version
info by macro drivers. Update bolero driver to
get version from dtsi.

Change-Id: Idc3735721de90ee4f74319537b17a530d3c125a6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-22 15:20:01 +05:30
Vatsal Bucha
fc40b33b24 ASoC: wcd-mbhc: Fix null pointer dereference for mbhc
IRQ data pointer is corrupted due to slimbus NGD errors.
This may happen as IRQ will be received from slimbus.
Check for mbhc null pointer before dereferencing to avoid crash.

Change-Id: I142ee535c6d643b53063b57c0f45414aff8b6304
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-22 12:22:04 +05:30
Karthikeyan Mani
35955cb60f asoc: codecs: bolero: do not perform soft reset
In event handler for soft reset, do not perform
soft resetting of the compander as this is not
the recommended sequence. Compander config
needs to be done only in interpolator enable
function.

Change-Id: I9bb1d493860adc924252827594219618f16309b0
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-21 12:02:33 -07:00
Aditya Bavanari
d7ee50cc8e asoc: codecs: Avoid spi data transfer during suspend
SPI data transfer can happen during suspend due to race
conditions leading to NOC issues. Synchronize data transfer
and suspend to fix this issue.

Change-Id: Ia5b4d0d16d9bf4fa4a4b73e3509a7d04b45d843f
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-21 19:07:26 +05:30
qctecmdr
1543085859 Merge "asoc: codecs: Vote for codec core and NPL clocks before regcache_sync" 2019-10-18 08:29:51 -07:00
qctecmdr
fd60ba91e4 Merge "bengal: enable compile of required modules" 2019-10-18 08:20:09 -07:00
Vatsal Bucha
a267a11e94 ASoC: wcd938x: Disable ADC mode for tx at power down after record
ADC mode for tx 0,1,2,3 is not disabled at power down after record
causing noise during next headset record. Disable ADC mode
to resolve noise.

Change-Id: I0a98b06318b55cfce20c6a90fecd71d83dce28c5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-18 12:44:44 +05:30
qctecmdr
360a45bad1 Merge "ASoC: wsa883x: Add support for wsa883x speaker amplifer" 2019-10-16 23:52:29 -07:00
qctecmdr
26247b9b1c Merge "asoc: wcd937x: Fix compile error in wcd937x codec driver" 2019-10-16 23:32:44 -07:00
Laxminath Kasam
2b85d8e050 asoc: wsa881x-analog: Defer wsa probe until mclk node available
Update wsa analog driver to defer probe until mclk node
is available.

Change-Id: I8c1e9dc8fe014ebd9845cf8e9fc759106bd3ffff
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-16 11:18:49 +05:30
Vatsal Bucha
d06525fa68 ASoC: 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: Ie5bc4b5292e5f69066760cab44d78989a74f13f4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-15 05:07:51 -07:00
qctecmdr
731807e0a2 Merge "asoc: codecs: restore wsa analog driver files" 2019-10-15 01:13:13 -07:00
qctecmdr
73d4531d52 Merge "asoc: codecs: wcd938x: Add support for setting ear gain ctl" 2019-10-15 01:12:28 -07:00
qctecmdr
f4ad6ff187 Merge "asoc: codecs: bolero: audio HM voting only supported on bengal" 2019-10-15 00:47:21 -07:00
qctecmdr
565f0218db Merge "asoc: codecs: Make compander write coefficients as volatile" 2019-10-15 00:36:09 -07:00
qctecmdr
0f6392dc14 Merge "asoc: codecs: Check for core votes count before accessing registers" 2019-10-15 00:22:20 -07:00
qctecmdr
6a164b940d Merge "asoc: codecs: bolero: ignore children for pm suspend" 2019-10-15 00:15:16 -07:00
Laxminath Kasam
3d89d5356b asoc: codecs: Add wakeup register update for chip register
Update cdc-pinctrl driver to handle wakeup control
provided in any spare chip register.

Change-Id: Iaa413d4b78e0c9841e40d01d0b891da34ff79de2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-13 00:24:19 +05:30
Laxminath Kasam
00f60bae1e bengal: enable compile of required modules
Update compile of required modules for bengal target.

Change-Id: If4d512b7270cc811a05524caac5292234a0ac437
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:40:48 +05:30
Laxminath Kasam
57e66c0251 asoc: wcd937x: Fix compile error in wcd937x codec driver
Update codec to component param for 4.19 kernel compatible.

Change-Id: Ia08283de4b01b45a6cd96c7f488f55bb0d4a5a53
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-12 23:31:17 +05:30
qctecmdr
f138524159 Merge "asoc: codecs: bolero: Add support to disable aux hpf" 2019-10-12 09:01:00 -07:00
qctecmdr
75b962681c Merge "asoc: codecs: bolero: Do not return error for unused gpio" 2019-10-12 08:58:56 -07:00
qctecmdr
d9328bec09 Merge "asoc: codecs: wcd938x: Fix HPHL mute when ear path teardown" 2019-10-12 08:57:06 -07:00
qctecmdr
18b8880076 Merge "asoc: codecs: wcd937x: restore clear_ack setting for wcd937x" 2019-10-12 08:51:14 -07:00