Commit grafiek

2216 Commits

Auteur SHA1 Bericht Datum
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
50caff1bd9 Merge "ASoc: swr-mstr: Avoid changing auto suspend timer value in runtime resume" 2019-09-22 11:32:10 -07:00
qctecmdr
21bd954e24 Merge "asoc: msm-pcm: Added lock in controls _put() and _get() callback" 2019-09-21 23:13:13 -07:00
qctecmdr
8d400e0261 Merge "asoc: msm-compress: Add lock in controls _put() and _get() callback" 2019-09-21 23:08:52 -07:00
qctecmdr
050efd64a3 Merge "asoc: msm-routing: Fix array out of bounds issue." 2019-09-21 22:16:47 -07:00
qctecmdr
0ed4827e2f Merge "dsp: adm: use default rate for unsupported sample rates" 2019-09-21 22:14:56 -07:00
qctecmdr
9d0f53cc20 Merge "asoc: codecs: Fix pop issue on WSA cold start" 2019-09-21 22:13:09 -07:00
qctecmdr
05d1cbfdf2 Merge "dsp: avtimer: Add adsp ready check before accessing avtimer registers" 2019-09-21 22:11:08 -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
cd5eb95e74 Merge "ASoC: Add support for tx data lane3 for lito v2" 2019-09-20 00:23:14 -07:00
qctecmdr
e7ca2c922b Merge "asoc: qcs405: add ignore_suspend for lineout booster" 2019-09-20 00:21:54 -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
Vatsal Bucha
e50b500f6e ASoc: swr-mstr: Avoid changing auto suspend timer value in runtime resume
Changing auto suspend timer to default value without checking module params
is causing audio touch tone to hold CX out of power collapse longer.
Instead set another variable to change autosuspend delay during
swr clk request failed.

Change-Id: Ia85c4ebeea020221c8f385006543a95c69d9124e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-19 03:06:58 -07:00
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
Aditya Bavanari
156a57fbb5 dsp: avtimer: Add adsp ready check before accessing avtimer registers
Add adsp ready check before accessing avtimer registers in
order to avoid NOC errors on these registers during SSR/PDR
usecases while querying offset.

Change-Id: I9246302f01906ab35095c76f729ea082b9756cc5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-09-18 20:46:44 +05:30
qctecmdr
33de327759 Merge "asoc: codecs: wcd937x: Fix compile error" 2019-09-18 04:54:28 -07:00
qctecmdr
4710d04f7b Merge "asoc: msm: Add primary tdm tx line in echo reference" 2019-09-18 04:04:37 -07:00
qctecmdr
ae58e9ee01 Merge "asoc: codecs: wcd938x: Enable EAR over INT2 chain" 2019-09-18 04:01:17 -07:00
qctecmdr
c98f3f9707 Merge "asoc: kona: Update LPI GPIO wakeup disable for all DMICs" 2019-09-18 03:58:07 -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
qctecmdr
de5b3da5ca Merge "SoC: soundwire: Update debug soundwire master read/write functions" 2019-09-17 00:53:25 -07:00
Surendar Karka
1ebf9cc506 asoc: qcs405: add ignore_suspend for lineout booster
Apps is not able to enter into power suspend mode.
Adding lineout booster widget to ignore suspend

Change-Id: I220ff46465e0ad3d2b6852933e00331c055a26d6
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-09-17 11:03:38 +05:30
Ajit Pandey
a557d960dd asoc: msm-pcm: Added lock in controls _put() and _get() callback
There is race condition around private data used in put() and get()
of few mixer ctls with close() callback. Added global mutex lock and
code changes to protect such critical section by accessing such lock.

Change-Id: Ic160b0c7c29d0ea5d517b3bacc53828d8d61e085
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-17 10:12:36 +05:30
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
Laxminath Kasam
2f151367ce asoc: codecs: wcd937x: Fix compile error
Use proper dev handle in print to avoid compile error.

Change-Id: Ieca116199ec4c86f2ee8c1698285fff0ecababbf
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 17:57:03 +05:30
Vatsal Bucha
71e0b484a1 ASoC: Add support for tx data lane3 for lito v2
Lito has three data lanes for tx swr. As gpio support
for swr tx data3 is present for lito v2, enable data
lane for lito v2.

Change-Id: I56faee1974f59e0a506fc74f2dadb95a52071907
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-16 03:27:33 -07:00
Laxminath Kasam
c39ed80b7c asoc: cdc-pinctrl: Update to disable MPM wakeup for multiple gpios
Under same pinctrl node, there are multiple gpios that
require MPM wakeup to be disabled. Update driver logic
to support disable of multiple gpios under same node.

Change-Id: I3a07e5d7621da4cd03b46d96ca5cec18958f1ebd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 13:09:03 +05:30
Laxminath Kasam
168173ee6d asoc: kona: Update LPI GPIO wakeup disable for all DMICs
Disable wakeup capability for all DMIC GPIOs.

Change-Id: I7c8c5f653e565b8f8b6f40005051aab3f27ccc76
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 13:01:28 +05:30
Ajit Pandey
fa018867ef asoc: msm-compress: Add lock in controls _put() and _get() callback
Few mixer controls _put and _get methods uses runtime private data
that can be freed by close() callback in parallel threads leading
to issue. Added global mutex lock in such methods to avoid runtime
concurrency around such data.

Change-Id: Ie542c64a4f1e50fd9547ebb9f65df2b7b0c21a0e
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-16 12:39:14 +05:30
Ajit Pandey
248ce5678f asoc: msm-routing: Fix array out of bounds issue.
It seems there is out of bound access chances for lsm_app_type_cfg
array within msm_routing_get_lsm_app_type_cfg_control() callback.
Added case check to return invalid value if user tries to exceed
maximum allocated size of array to avoid it.

Change-Id: Ied86e6c9a957255c55bb126a09741fbde429be32
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-16 12:36:44 +05:30
Yunfei Zhang
af3faf2ae3 dsp: adm: use default rate for unsupported sample rates
Some ECNS topologies can't support sample rate of 48KHZ,
reset it to 16KHZ for such use cases.

Change-Id: I5d0457feb2e74929546746fd4b184f2d7e065fbb
Signed-off-by: Yunfei Zhang <yunfeiz@codeaurora.org>
2019-09-15 16:07:45 +08:00
qctecmdr
e25db41da1 Merge "soc: pinctrl-lpi: Suspend sooner if resume fails" 2019-09-14 21:06:41 -07:00
qctecmdr
f72b01cee2 Merge "soc: swr-mstr: Vote for core vote before clock request" 2019-09-14 21:01:14 -07:00
qctecmdr
6f23c4ef53 Merge "asoc: codecs: Add core vote functionality for soundwire" 2019-09-14 20:57:13 -07:00
qctecmdr
d598f6e9ad Merge "dsp: lsm: add apr NULL check in apr deregister" 2019-09-14 20:55:34 -07:00
Sudheer Papothi
72fef48d6b ASoC: bolero: Update init registers for tx and rx paths
Update init registers for tx and rx paths in an array.

Change-Id: I2738af7639ffec05b5c93e86a2a3f4cf7ccb36fe
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-15 00:13:35 +05:30