Commit Graph

1808 Commits

Author SHA1 Message Date
qctecmdr
6f4c0d9e6d Merge "ASoC: codecs: update for AUX, ear and HPH paths" 2019-06-17 20:22:42 -07:00
qctecmdr
e97d41b653 Merge "asoc: codecs: wcd938x: Fix volatile register function" 2019-06-17 20:18:18 -07:00
qctecmdr
2251014fc6 Merge "asoc: codecs: Add support for class ab low power modes" 2019-06-17 20:16:35 -07:00
qctecmdr
189f783aa9 Merge "soc: soundwire: check for valid pointer before dereference" 2019-06-17 20:14:10 -07:00
qctecmdr
57c8619aed Merge "asoc: codecs: add support to disable soundwire devices" 2019-06-17 20:11:54 -07:00
qctecmdr
eb3ef92f6b Merge "asoc: wcd938x: initialize micb lock mutex" 2019-06-17 20:09:11 -07:00
Erin Yan
2f81be27d8 asoc: adapt channel mixer usage to tinymix
Tinymix set the array value of the mixer control one by one. The
channel number validation check here will cause failure in tinymix.
Allow 0 value here is fine because the parameters will be checked
before they are set at runtime.

Change-Id: I49c23f84aa081550434696dde96d2800e90390fb
Signed-off-by: Erin Yan <xinyey@codeaurora.org>
2019-06-16 17:47:03 -07:00
Karthikeyan Mani
1a0f998031 soc: soundwire: check for valid pointer before dereference
Check if the swr pointer obtained is not NULL before
dereferencing it.

Change-Id: I119141e5fd0b365789f8295d7b43867ede29dd8c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-12 08:40:31 -07:00
Karthikeyan Mani
3dd19d0b73 asoc: wcd938x: initialize micb lock mutex
Micb lock which is used to synchronize micbias
control api is not initialized causing spin lock
errors. Initialize the mutex to avoid the issue.

Change-Id: I98c50fec8e8531333de643a85433d3e5973bfd14
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-11 17:48:14 -07:00
Karthikeyan Mani
9e013b2d5a asoc: codecs: wcd938x: Fix volatile register function
Fix the volatile register function to return false
if the registers are not volatile so that the reads
will happen from cache and this improves read timing.

Change-Id: I73149be3855be09a71ad61a6f3143038a7ba029b
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-11 17:48:04 -07:00
Karthikeyan Mani
31231c306d ASoC: codecs: update for AUX, ear and HPH paths
Add updates to AUX control registers and headphone
and ear path power mode registers.

Change-Id: I7a6b0f23a28a6ab9189c946a78a2f376937d7509
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-11 17:47:27 -07:00
Karthikeyan Mani
7f609a3ca0 asoc: codecs: Add support for class ab low power modes
Add codec enable and disable sequences for class ab
low power modes.

Change-Id: If5b54075985c2d4d1a24423c03e78bee119862bc
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-11 17:47:21 -07:00
Karthikeyan Mani
3bd80a59b2 asoc: codecs: add support to disable soundwire devices
Add changes to support disabling of soundwire devices
so that soundwire pins can be freed for other purposes
if needed.

Change-Id: Iae14d43c2c3d5380347be4c3b443c209b2612a97
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-06-10 17:14:36 -07:00
Zhou Song
c63ec8cd8f asoc: dsp: add missing mixer for 'TWS Channel Mode'
'TWS Channel Mode' is missed due to afe_enc_config_controls
size changed.

Change-Id: Id6a08a7b360364bc94a6786f967ccc191666cefe
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-06-10 06:33:21 -07:00
qctecmdr
7ce7820fac Merge "asoc: bolero: restore all codec registers after SSR" 2019-06-10 06:08:09 -07:00
qctecmdr
295db4585f Merge "soc: swr-mstr: skip port disable when master is down" 2019-06-10 05:57:59 -07:00
qctecmdr
a5dfac0270 Merge "asoc: wcd938x: reinit registers after SSR" 2019-06-10 05:56:48 -07:00
qctecmdr
7cd81eea83 Merge "dsp: rtac: use accurate stream id during rtac asm apr call" 2019-06-10 05:52:43 -07:00
qctecmdr
988afa4fca Merge "asoc: adding machine driver for sa6155" 2019-06-04 18:09:53 -07:00
qctecmdr
05c72dcca4 Merge "asoc: codecs: bolero: do not limit boost levels" 2019-06-04 18:02:06 -07:00
qctecmdr
a3e3e26667 Merge "ASoC: codecs: Add support for LPASS Audio HW vote" 2019-06-04 17:59:13 -07:00
qctecmdr
18830e3e89 Merge "ASoC: configs: Disable voice_mhi for lito" 2019-06-04 17:57:21 -07:00
Weiyin Jiang
fcf3cc05fb dsp: rtac: use accurate stream id during rtac asm apr call
Hard coded stream id fails rtac call for subsequential gapless stream
which uses stream id other than default value. To get/set rtac for
gapless session successfully, we need to update the stream_id as a part
of asm apr header with correct value populated from asm session table.

Change-Id: If4afd73b4cf11bf91730a58ae6dff03efb04519d
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2019-06-03 16:11:54 -07:00
Vatsal Bucha
85ab414c7b ASoC: configs: Disable voice_mhi for lito
Lito doesn't use voice mhi. Disable required
config for the same.

Change-Id: Icecac8fc445260542eac7ebc2f0fc64c918c853a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-06-03 12:24:29 +05:30
Rahul Sharma
02bee73b77 asoc: adding machine driver for sa6155
add separate machine driver for sa6155 and necessary
interface changes.

Change-Id: Ie9e498c3e3ccb99af01458f7604f822a11c54e67
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-06-02 18:46:46 -07:00
qctecmdr
da4b9b30ca Merge "asoc: bolero: do not disable tx macro clk during SSR/PDR" 2019-05-31 08:55:12 -07:00
qctecmdr
c2cab39530 Merge "ASoC: bolero: Fix issue in clock sequence during VA concurrency" 2019-05-31 08:51:17 -07:00
qctecmdr
da31a3a335 Merge "soc: swr: Release resource lock when not needed" 2019-05-31 08:48:38 -07:00
qctecmdr
424eebc320 Merge "asoc: fix silence data during concurrent capture" 2019-05-31 08:46:49 -07:00
qctecmdr
2fc4f93e2f Merge "ASoC: msm: add lpi support for tdm/mi2s" 2019-05-31 08:44:49 -07:00
Sudheer Papothi
ba445bfe2d ASoC: codecs: Add support for LPASS Audio HW vote
Add support for LPASS Audio HW vote needed for low power AMIC
VA usecase.

Change-Id: If6642d418dbf2cc9773fbd0ec0fe35c30afac140
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-05-31 10:37:27 +05:30
qctecmdr
94ed276792 Merge "asoc: fix offload PBE failure in sending calibration to lpass" 2019-05-30 22:02:15 -07:00
Meng Wang
930d9751a1 asoc: bolero: restore all codec registers after SSR
Some bolero codec registers are not correctly restored after
SSR and causes DMICs on bolero don't work. Add this change to
restore all bolero codec registers after SSR.

Change-Id: I3666a77f802f62452a0e0de4859f48a0f9e5cbb1
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-30 17:17:00 +08:00
Karthikeyan Mani
10de393798 asoc: codecs: bolero: do not limit boost levels
Boost level max setting can be left to default
and not needed to be limited to any value.

Change-Id: Iab5073cedd6e69bb4311af9af54ff409d8bfd24c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-29 15:10:59 -07:00
Vignesh Kulothungan
0c5f346bf7 asoc: fix silence data during concurrent capture
Remove static definition of size and index variables, which are
unique to each capture session. Static defintion of index variable
may incorrectly copy data from wrong memory offset. This might inject
silence/clutter in data copied to audio HAL.

CRs-Fixed: 2457887
Change-Id: I7b2f48d21545655ddaa13566ab4ea87a1cbd7424
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-05-29 09:58:13 -07:00
Meng Wang
efbe46a1c5 asoc: wcd938x: reinit registers after SSR
Reinit wcd registers after SSR.

Change-Id: I5a8f22e4f76ffd8b279d1513eaa2f50973e3408c
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-29 11:07:33 +08:00
Meng Wang
69b55c855b asoc: bolero: do not disable tx macro clk during SSR/PDR
Do not disable tx macro clk when it's not enabled during
SSR/PDR to avoid clk count mismatch.

Change-Id: I69a59cff9cb57ef3dea366c73629c3eddcb19abe
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-05-29 11:04:45 +08:00
Karthikeyan Mani
f68219039a soc: swr: Release resource lock when not needed
Resource lock should not be held while doing bank
switch as bank switch requires interrupt handling
which needs access to the resource lock.

Change-Id: Ic17178c7e6f16a7db91da6577ed2ce70c9c9f084
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-28 14:15:12 -07:00
Karthikeyan Mani
12dcf64d6f ASoC: msm: add lpi support for tdm/mi2s
For TDM/MI2S/AUXPCM, add lpi gpio support for kona.

Change-Id: Ie23caaaa0243c84dfc8a6ee0e3e0e002bf0c18d8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-28 11:35:08 -07:00
Ramprasad Katkam
979b7c9814 soc: swr-mstr: skip port disable when master is down
skip port disable when master is already down to avoid
queuing commands to master which is already down due to ssr/pdr.

Change-Id: I7fadc479784feb0fd8afa229599eb217bb579ea2
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-05-28 21:43:05 +05:30
qctecmdr
f6dc08395d Merge "asoc: Add machine driver changes for sa6155" 2019-05-27 20:10:02 -07:00
qctecmdr
5df0e02847 Merge "asoc: dsp: do extention to support aptx adaptive R2" 2019-05-27 20:10:02 -07:00
Weiyin Jiang
fce04f7563 asoc: fix offload PBE failure in sending calibration to lpass
PBE values are misinterpreted when transferring from userspace to kernel
via mixer ctl interface. Config values have to be copied one by one rather
than copying through continuous memory.

CRs-Fixed: 2458428
Change-Id: I375498f0f511d21bd14873cc9394305acbc25e50
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2019-05-24 04:00:01 -07:00
qctecmdr
9142ab92c8 Merge "asoc: codecs: Add inline keyword to all stub functions" 2019-05-22 06:38:16 -07:00
qctecmdr
935e9bdbd0 Merge "asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN" 2019-05-22 06:35:21 -07:00
Rahul Sharma
a070ce5bc8 asoc: Add machine driver changes for sa6155
Add machine driver interface for 615x to support dynamic loading
of kernel module.

Change-Id: I5691c2730d31390d6f6b4ce30794182421dc1861
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-05-21 21:23:17 -07:00
qctecmdr
16f8ca3df0 Merge "asoc: msm: add support for senary interfaces in dai and routing driver" 2019-05-21 20:40:51 -07:00
qctecmdr
cbadda916f Merge "dsp: add senary MI2S and TDM port IDs" 2019-05-21 20:36:44 -07:00
qctecmdr
1f03ebdb1a Merge "ipc: add audio apr virtualization support" 2019-05-21 20:34:45 -07:00
qctecmdr
34b7d3b2fd Merge "ASoC: hide bind/unbind in sysfs" 2019-05-21 20:33:23 -07:00