Commit Graph

800 Commits

Author SHA1 Message Date
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
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
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
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
qctecmdr
55603d0cb0 Merge "asoc: codecs: Add HPH and EAR concurrency state in class-h driver" 2019-10-12 08:49:13 -07:00
Aditya Bavanari
f8be8bdcf1 asoc: codecs: Make compander write coefficients as volatile
Make HPHL and HPHR compander write coefficients as volatile
registers in order to avoid cache operations on these registers
to fix audio glitch issues in headset playback.

Change-Id: If5a2019debdda3c50cc5cf1135dff2ad0e5a49a2
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-11 11:24:52 +05:30
Sudheer Papothi
af0a66b78a ASoC: wsa883x: Add support for wsa883x speaker amplifer
WSA883x is a speaker amplifier with soundwire interface and
enumerates as soundwire slave. WSA883x supports audio playback
on speakers and has temperature sensors for better speaker
protection and enhanced boost control support. Add software
driver support to enable WSA883x speaker amplifier.

Change-Id: Ib9cf2eebdda5ce331154bc786f059c5757f34fa2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-10-11 02:00:27 +05:30
Aditya Bavanari
d577af909c asoc: codecs: Check for core votes count before accessing registers
Check for core votes count before accessing swrm registers
to avoid NOC errors.

Change-Id: I5689d6a6db0886ed4cc791738a28290f3d953412
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-10-10 20:29:49 +05:30
Laxminath Kasam
9e78ef8743 asoc: codecs: restore wsa analog driver files
Add support back for wsa analog codec driver files.

Change-Id: I7ef6ad050b068ec8c0f0275089d670c92234686d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:57:18 +05:30
Karthikeyan Mani
3d209514a9 asoc: codecs: bolero: ignore children for pm suspend
Allow bolero macro's child  devices to pm enable
irrespective of state of their parents.

Change-Id: Ie615ea2db097760de75682b5881f71a37a735fa2
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-06 23:06:32 -07:00
qctecmdr
ae5dca4830 Merge "asoc: codecs: wcd938x: limit buffer copy to max buffer size" 2019-10-06 11:49:21 -07:00
Vatsal Bucha
135b9f0b0c asoc: codecs: wcd938x: Add support for setting ear gain ctl
Add support for setting EAR PA gain directly using
mixer control.

Change-Id: I3667d8f26dc648e44d12c42be0940210763e08d5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-10-03 22:00:16 -07:00
qctecmdr
3c19b49560 Merge "asoc: codecs: bolero: Update mixing path and channel mask for RX path" 2019-09-30 23:31:40 -07:00
Karthikeyan Mani
80b063e8d9 asoc: codecs: wcd938x: limit buffer copy to max buffer size
Check for max buffer size before filling the buffer and
add error handling for cases where buffer copy fails.

Change-Id: I0eede1e5baf63c35c65a704c8bf53c85fe49892e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-27 14:06:11 -07:00
Laxminath Kasam
e6c06ae348 asoc: codecs: wcd937x: restore clear_ack setting for wcd937x
For wcd937x interrupts, need to set clear_ack explicitly
for regmap irq to clear the interrupt.

Change-Id: Ieffc20db0665fa82fe088337fbdf8b518191be3d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-26 15:05:08 +05:30
Karthikeyan Mani
7af16b8364 asoc: codecs: wcd938x: check for device up before writes
During SSR, codec device will be down and wait till
receiving up notification before doing any register
reads or writes.

Change-Id: I0e2967990bfc9d0d780d4c7e666a4c31159e70ce
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-24 14:45:00 -07:00
qctecmdr
63a3452c9c Merge "ASoC: wcd938x: Update wcd938x initialization sequence" 2019-09-23 22:59:02 -07:00
qctecmdr
7347f53ca7 Merge "asoc: codec: bolero: keep internal track of TX votes" 2019-09-23 22:56:48 -07:00
qctecmdr
9d0f53cc20 Merge "asoc: codecs: Fix pop issue on WSA cold start" 2019-09-21 22:13:09 -07:00
qctecmdr
212f9e9be2 Merge "ASoC: tx-macro: Disable wakeup source for soundwire tx data gpio" 2019-09-21 22:09:40 -07:00
qctecmdr
7c8393fd01 Merge "asoc: codecs: wsa881x: turn off PA at ssr" 2019-09-21 22:07:38 -07:00
Karthikeyan Mani
0eef9ab635 asoc: codec: bolero: keep internal track of TX votes
TX clock is needed for setting up or tearing down
VA path. while voting and unvoting for TX clock,
keep track of the votes to unvote only if it was
voted from VA widgets.

Change-Id: Ia013517ed8d932ed3a5242bb7d052c1ee314fdbe
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-20 13:12:40 -07:00
qctecmdr
3336074e53 Merge "ASoC: wcd938x: Add debug support for WCD938x soundwire slave" 2019-09-20 00:37:48 -07:00
qctecmdr
dc92f04266 Merge "ASoC: bolero: Fix audio mute during first 4-5 seconds in headset record" 2019-09-20 00:35:48 -07:00
qctecmdr
a134afc4f5 Merge "asoc: hdmi: return 0 when get_audio_edid_blk is NULL" 2019-09-20 00:32:35 -07:00
qctecmdr
96957b41b9 Merge "ASoC: bolero: Update init registers for tx and rx paths" 2019-09-20 00:29:19 -07:00
qctecmdr
59139d3262 Merge "ASoC: wcd-mbhc: Remove max impedance limit for lineout detection" 2019-09-20 00:26:15 -07:00
qctecmdr
c73a9db04a Merge "asoc: cdc-pinctrl: Update to disable MPM wakeup for multiple gpios" 2019-09-20 00:19:52 -07:00
Sudheer Papothi
92bf3feadb ASoC: wcd938x: Update wcd938x initialization sequence
Update wcd938x codec initialization sequence as per hardware
requirement.

Change-Id: I17989e3f159d106eb9de6b1b8f660a647962539c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-20 00:47:15 +05:30
Laxminath Kasam
e25b02a5e1 asoc: codecs: wcd938x: Fix HPHL mute when ear path teardown
Update mute for RX chain related to AUX (INT2) when
tearing down ear path driven by AUX.

Change-Id: I0ab2630bb681e8dc800c99245b1cd68120290c2b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 18:43:59 +05:30
Laxminath Kasam
ade1444dd5 asoc: codecs: Add HPH and EAR concurrency state in class-h driver
Update the class-h driver state machine to allow HPH and EAR concurrency.

Change-Id: I5e227bdc87929b61fef78956f3a4eba4a686873e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 18:39:21 +05:30
Laxminath Kasam
069df14aa0 asoc: codecs: Fix pop issue on WSA cold start
Observe pop if FS clock is turned on at end of
powerup sequence. Ensure WSA PA is turned on
after FS clock to avoid pop.

Change-Id: Ic1214d361e77db252b7a90a89fc99c69f51e270b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 11:37:00 +05:30
Karthikeyan Mani
13485b7fe1 asoc: codecs: wsa881x: turn off PA at ssr
Register for a callback for ssr notification
and turn off PA at pre-ssr to protect speaker
from any turning off damage during ssr.

Change-Id: I286d9bdcbcba9561424a8f0d4a1e99a8492caf08
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-18 22:42:52 -07:00
qctecmdr
33de327759 Merge "asoc: codecs: wcd937x: Fix compile error" 2019-09-18 04:54:28 -07:00
qctecmdr
ae58e9ee01 Merge "asoc: codecs: wcd938x: Enable EAR over INT2 chain" 2019-09-18 04:01:17 -07:00
Vatsal Bucha
126be65693 ASoC: bolero: Fix audio mute during first 4-5 seconds in headset record
Audio mute is observed if record is started as soon as headset
is inserted. This is because hold time after button release is set
as 800ms causing the delay. Change hold time to 200ms to fix this issue.

Change-Id: I98028fca3412a3d47ad8e5154f25ff1726426955
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-17 14:15:48 +05:30
qctecmdr
fe82be14e0 Merge "ASoC: wcd938x: Update soundwire slave clock rate on WCD938x" 2019-09-17 00:58:09 -07:00
qctecmdr
b42b242127 Merge "ASoC: Add support for event listener from the codec" 2019-09-17 00:55:50 -07:00
Sudheer Papothi
edc65200d0 ASoC: wcd938x: Add debug support for WCD938x soundwire slave
Add debug support for WCD938x soundwire slave register access.

Change-Id: I5984a04cf144e7e858addc5cd060e0ec1264f2a6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-17 09:05:01 +05:30
Sudheer Papothi
bc3f1e5ac7 ASoC: tx-macro: Disable wakeup source for soundwire tx data gpio
soundwire tx data gpio is wakeup source capable. Disable the
interrupt capable during voice activation usecase to let the
device enter into power collapse during voice activation usecase
on headset.

Change-Id: I64a0b5da249dd3da37310fb80909a0ac5fefae54
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-17 04:03:10 +05:30