Commit Graph

283 Commits

Author SHA1 Message Date
Linux Build Service Account
aceb532f6b Merge "ASoC: audio-ext-clk: Replace clock dummy ops" 2018-07-26 21:22:01 -07:00
Karthikeyan Mani
9bc7b45fc9 asoc: codecs: delay codec irq handler during ssr
Put the irq handler of codec device to sleep if device is
not up, to allow other threads to execute meanwhile the device
will be up.

Change-Id: Ic7421bdf236be52070b6d5fcd774b0641368bf2b
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-07-26 14:53:29 -07:00
Romed Schur
20f6c1416f asoc: codecs: Fix recovery behavior for CSRA66X0
Fix recovery behavior for CSRA66X0 codec to
recover from fault state and add debugfs interface.

CRs-Fixed: 2283380
Change-Id: I796b9e3b36db851f2bf1469e324a7c347510e232
Signed-off-by: Romed Schur <rschur@codeaurora.org>
2018-07-23 16:17:20 +02:00
Linux Build Service Account
e7abe2550c Merge "asoc: audio-ext-clk: Add support for multiple lpass clock nodes" 2018-07-23 06:53:42 -07:00
Sudheer Papothi
9b51e3e0ca ASoC: audio-ext-clk: Replace clock dummy ops
Replace clock framework's clock dummy ops with audio external
clock ops to access correct structure that avoids out of bounds
memory access.

Change-Id: I51db63bba414cff0343cbf68e90b1e1bbf7929ac
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-07-21 05:20:10 +05:30
Linux Build Service Account
511613fe72 Merge "asoc: bolero: Fix wsa playback mute issue" 2018-07-19 23:19:52 -07:00
Laxminath Kasam
0c85700fdb asoc: bolero: Fix wsa playback mute issue
Update volatile registers list of bolero
VA and WSA macros. Fix sequence for wsa mute
and register access in regmap read/write.

Change-Id: I7984f7e2309933536f3855f6fd4a2e2fd1c4d13b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-07-19 11:50:26 +05:30
Laxminath Kasam
d712cc7c15 asoc: audio-ext-clk: Add support for multiple lpass clock nodes
In bolero, for VA and WSA macros require multiple
lpass clock sources. Update audio clock driver
to support lpass clocks instances as required for
VA and WSA.

Change-Id: I7bb676dcbd5c0db09079dd73a30d1b47ce0f8ace
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-07-19 11:47:28 +05:30
Surendar Karka
0a915f8c68 asoc: ext-clk: dynamically configure clk parent name
Add support to dynamically configure clk parent name
from device tree.

Change-Id: I9ae0c34c248503625523a2d1e33d800b2138ed39
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-07-17 15:00:41 +05:30
Mangesh Kunchamwar
2f39a329bf asoc: bolero: Bringup fixes for qcs405
Add bringup fixes for va-macro micbias property setting.

Change-Id: Ie1c35d8519f819bed227885e1c2a18e3de7fd82a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-11 00:47:57 +05:30
Linux Build Service Account
ab8586d542 Merge "asoc: bolero: Bringup fixes in Vipertooth" 2018-07-09 20:42:38 -07:00
Linux Build Service Account
8e4d9058d3 Merge "ASoC: wcd934x: skip mutex lock for WDSP boot timeout debug dump" 2018-07-09 11:56:34 -07:00
Mangesh Kunchamwar
a9c69199a7 asoc: bolero: Bringup fixes in Vipertooth
Add bringup fixes for bolero regmap and va-macro
micbias property setting.

Change-Id: I536b7bf6ff625da1f2f639a93cf1f9174cfd6447
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-09 09:16:20 -07:00
Linux Build Service Account
029bb3d3aa Merge "asoc: codecs: codec driver support for CSRA66X0" 2018-07-07 13:54:32 -07:00
Linux Build Service Account
4fae34670a Merge "asoc: ext-clk: Allow clock probe without pinctrl for lpass nodes" 2018-07-06 11:57:21 -07:00
Mangesh Kunchamwar
82f6168cf5 asoc: codecs: codec driver support for CSRA66X0
Codec driver to support direct digital
feedback amplifier (DDFA) CSRA66X0

CRs-Fixed: 2248380
Change-Id: I0aa1b5a2b6e18b6d2dcd5393a10b7d4aebb570e5
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-06 18:27:57 +05:30
Meng Wang
9836489e23 asoc: wcd-dsp-mgr: clear work queue for wcd dsp manager
wdsp_mgr_bind would schedule work to load wdsp firmware.
Before loading wdsp firmware, sound card registeration may fail.
wcd_dsp_cntl_deinit would get called to free cntl which would be used
in wdsp_load_fw_image which would cause kernel panic.
Clear work queue in wdsp_mgr_unbind to avoid kernel panic.

Change-Id: I6c052fa8ea1ff62a8b075ba191085612242a5005
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-07-03 12:23:37 -07:00
Karthikeyan Mani
3dd07e6937 asoc: mbhc: ignore mbhc event report during ssr
When ssr is in progress, during some race conditions
mbhc events are getting reported when codec is still
coming up. Ignore such events without reporting.

Change-Id: I3d3f78f97c2b855fc36a480f38c166bda2d979f0
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-07-02 11:22:40 -07:00
Xiaojun Sang
353723e8e0 ASoC: wcd934x: skip mutex lock for WDSP boot timeout debug dump
In the case of WDSP boot timeout, api_mutex and ssr_mutex have already
been acquired. There is no need to do mutex lock again during debug dump.
Check the signal enum to see if it's the internal WDSP boot timeout case.

Change-Id: I6fe5e77b1bff72ed5ad463bb1df76c6b02c84c92
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-06-29 17:17:22 -07:00
Mangesh Kunchamwar
daf02b01f2 asoc: fix compilation issues
Fix compilation issues for qcs405.

CRs-Fixed: 2248380
Change-Id: I1a4929dbcd888cb6be30a155d2f492cbf314a25a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-28 19:59:16 +05:30
Linux Build Service Account
c232d1bb46 Merge "asoc: bolero: Add EC support for WSA macro" 2018-06-26 17:52:02 -07:00
Linux Build Service Account
7c20a7cc2e Merge "asoc: bolero: Update dmic sample rate config for VA macro" 2018-06-26 12:32:15 -07:00
Linux Build Service Account
eadfffe17a Merge "asoc: bolero: Add micbias support for VA DMICs" 2018-06-26 12:32:15 -07:00
Laxminath Kasam
36ab7bb29c asoc: bolero: Add EC support for WSA macro
WSA macro supports both ec_legacy and ec_hq.
Add support to capture echo for both types
based on mixer control value.

Change-Id: I3c8a6cd13dabbee3f3687d5e63dc6d4c7bbc4eef
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-26 13:51:29 +05:30
Laxminath Kasam
135d405d2e asoc: bolero: Update dmic sample rate config for VA macro
Add support for DMICs of different sampling rates
with respective clk_div config update in VA macro
register.

Change-Id: I8faa46774cf1fe561af3bd7a284bc7d37f85cb9d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-25 03:42:34 -07:00
Laxminath Kasam
fa05d98918 asoc: bolero: Add micbias support for VA DMICs
Add support for regulator enable and disable to
source micbias for VA digital mics.

Change-Id: Ie25fb65103704b04127b23f4c515d6d270f4abf0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-25 15:47:33 +05:30
Linux Build Service Account
d560c4b9ba Merge "asoc: bolero: Add codec entry for bolero for rtac support" 2018-06-22 14:43:04 -07:00
Linux Build Service Account
236a9e3943 Merge "asoc: wcd9335: register speaker wsa controls only if WSA attached" 2018-06-21 12:44:59 -07:00
Laxminath Kasam
21c8b22849 asoc: bolero: Add codec entry for bolero for rtac support
Add codec entry for bolero codec under proc codecs list.
Update the names of wsa-macro gain offset and mode for
wsa8810 variant to avoid conflict with wcd9335.

Change-Id: Icaa2ef7c2f7253060cd7cccd44130b0b12dc0713
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-21 18:52:24 +05:30
Laxminath Kasam
f2687c989a asoc: wcd9335: register speaker wsa controls only if WSA attached
In vipertooth, both wsa-macro and wcd9335 are present.
wcd9335 doesn't have wsa attached, and wsa-macro supports wsa
attached which defines spkr wsa controls. wcd9335 driver needs to
avoid register same controls if wsa is not attached to it.

Change-Id: Ia3db8982b5214ade95e6d8f27a44a68e20b772a0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-21 18:36:52 +05:30
Linux Build Service Account
25a990e3c4 Merge "asoc: codecs: stub for WCD CPE core" 2018-06-19 15:52:38 -07:00
Linux Build Service Account
d69c855747 Merge "ASoC: Add support for audio drivers compilation on kernel-4.14" 2018-06-19 12:12:33 -07:00
Mangesh Kunchamwar
bb2d759893 asoc: codecs: stub for WCD CPE core
Add stub functions for WCD CPE core APIs

Change-Id: Iddfdc8de9962d7a8d96cf7010c0b7ab18826ce37
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-19 17:02:33 +05:30
Linux Build Service Account
686869fffc Merge "ASoC: wcd-mbhc: Fix detection of special headset" into audio-drivers.lnx.3.0 2018-06-18 20:08:00 -07:00
Sudheer Papothi
8d34b2e801 ASoC: Add support for audio drivers compilation on kernel-4.14
Add support for audio drivers compilation on kernel-4.14.

Change-Id: Id7689cef4ae7cdb6711fed386d2a6b0d427b3fc3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-06-19 03:43:54 +05:30
Laxminath Kasam
43c1a132f2 asoc: ext-clk: Allow clock probe without pinctrl for lpass nodes
Currently audio ref clock probe for lpass clock nodes require
pinctrl entry as mandatory. For bolero lpass clocks, there is
no pinctrl required. Allow audio ref clock probe to proceed
with pinctrl based on property of use-pinctrl set to non-zero
value from dtsi.

Change-Id: Ide4a10e89672f0adefd2e0d99830c38191119dfc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-18 22:45:15 +05:30
Sudheer Papothi
ede0f05017 ASoC: wcd-mbhc: Fix detection of special headset
Comparison of headset threshold during special headset detection is
not proper. This results in to improper detection of special headset
and recording usecase failure on special headset. Fix the special
headset detection issue by adding proper check condition while selection
of headset threshold from device tree.

Change-Id: I4c338ded1bcb9fa643e1584eb23c6260fe52acee
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-06-15 04:06:31 +05:30
Ramprasad Katkam
e38aed40db Asoc: swr: Bus Driver changes to support new master driver
soundwire bus driver changes to support new soundwire
master driver for Talos/vipertooth.

Change-Id: I70e52a72edd80abc72ccb99b29b1a642debec257
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-14 00:39:50 +05:30
Mangesh Kunchamwar
0bf1f57c59 asoc: config: configuration update for QCS405 machine driver
Add configuration updates for enabling QCS405 machine driver

Change-Id: I5a426730388aeafcdd6fb2e7c6d4cc7a0af78e1c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:20:17 +05:30
Karthikeyan Mani
e964a75f32 asoc: codecs: cancel all delayed work during SSR/PDR
Cancel any pending delayed work in device down call
to ensure no work is scheduled during or after a
SSR/PDR sequence.

Change-Id: I4cc89cb1a9d8be732c978044d4eea3cf6644ec30
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-06-09 11:26:06 -07:00
Xiaojun Sang
e0c3f3f39d ASoC: codecs: fix inconsistency of boost state register value
Use hardware default value for boost state in regmap.
Use correct mask for initial value of boost state.

Change-Id: Ia8b707ba0128662d47059d25325693bc8eaff723
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-06-08 15:04:09 -07:00
Linux Build Service Account
253f1479c8 Merge changes Ifa9c5454,I3c5ae045 into audio-drivers.lnx.3.0
* changes:
  asoc: Add compile rules for bolero codec and macro drivers
  asoc: bolero: Add support for VA macro driver
2018-06-08 11:59:26 -07:00
Linux Build Service Account
568741884f Merge "asoc: bolero: Add support for WSA macro driver" into audio-drivers.lnx.3.0 2018-06-08 11:59:25 -07:00
Linux Build Service Account
efc78a4e1b Merge "asoc: codecs: Update file names of bolero" into audio-drivers.lnx.3.0 2018-06-07 22:17:05 -07:00
Laxminath Kasam
a0f8408a67 asoc: Add compile rules for bolero codec and macro drivers
Add compile support for bolero codec driver and other
interface files along with macro drivers.

Change-Id: Ifa9c5454eebab1dbebb53d60a7a67458d1e6c8f6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-07 19:35:24 +05:30
Laxminath Kasam
3d70a35213 asoc: bolero: Add support for VA macro driver
Add support for VA digital portion to register
as macro to bolero codec. ASoC dapm and dai
functionality of VA macro is associated to
bolero codec itself.

Change-Id: I3c5ae045c0e061bd9aa1281231cf2418093d1169
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-07 19:35:12 +05:30
Laxminath Kasam
243e2754eb asoc: bolero: Add support for WSA macro driver
Add support for WSA digital portion to register
as macro to bolero codec. ASoC dapm and dai
functionality of WSA macro is associated
to bolero codec itself.

Change-Id: Ida9647274e6a0aa392e131a9b08f83b2520802e5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-07 19:35:04 +05:30
Laxminath Kasam
89438f3ee8 asoc: codecs: Update file names of bolero
Update file names of bolero to be compliance
to driver file name convention.

Change-Id: I138d0211803f93152ae7fb01eae68050dada082f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-07 19:33:44 +05:30
Meng Wang
da08f2f315 ASoC: wcd934x: Reset power_active_ref to 0 when it is negative
Reset power_active_ref counter to 0 when it is negative to
take digital core out of reset during next session.

Change-Id: I724ffe6e3547655424238ca02a9bf8ac24b101fe
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-06-06 23:49:40 -07:00
Laxminath Kasam
2df2d61851 asoc: bolero: Add bolero clock changes
Add support for bolero clock changes for
all macros.

Change-Id: Ib7b238ffd9595b6fd2236f4a3d2bcfe545b3c5fb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-04 22:01:54 +05:30