Commit Graph

186 Commits

Author SHA1 Message Date
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
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
Laxminath Kasam
e562a364d1 asoc: bolero: Add support for bolero codec
Add bolero driver to provide interface to all
macros and represent as a single codec to ASoC
framework.

Change-Id: Ie4cd3b9422ff9691dd37b40fc243573d7536860c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-04 22:00:16 +05:30
Linux Build Service Account
63d524f082 Merge "asoc: codecs: wcd934x: add stub functions for codec APIs" into audio-drivers.lnx.3.0 2018-06-01 10:34:40 -07:00
Linux Build Service Account
79b77626b3 Merge "asoc: codecs: add wcd9360 objects for kernel build option" into audio-drivers.lnx.3.0 2018-05-30 19:41:24 -07:00
Linux Build Service Account
fbc1f4eb40 Merge "ASoC: wsa881x: Avoid query temp during suspend" into audio-drivers.lnx.3.0 2018-05-30 19:41:23 -07:00
Karthikeyan Mani
d27acb3622 asoc: codecs: add wcd9360 objects for kernel build option
wcd9360 also has to be compiled if kernel build option is
true for the case where modules are in y option.

Change-Id: Ie3cea21d65ccc7e680cac675720bab52411ac492
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-05-29 17:36:48 -07:00
Linux Build Service Account
9b51424a82 Merge "asoc: codecs: wcd9360: add stub functions for codec APIs" into audio-drivers.lnx.3.0 2018-05-29 16:46:44 -07:00
Linux Build Service Account
d3070abcbe Merge "Configure CONFIG_ARCH to enable compilation" into audio-drivers.lnx.3.0 2018-05-21 13:50:24 -07:00
Karthikeyan Mani
f0e329cb51 asoc: codecs: wcd9360: add stub functions for codec APIs
If wcd9360 config is removed, need to stub out the
APIs to load any dependent audio modules and enumerate
sound card.

Change-Id: I821938c68849984ee04565167488abe5fe15af40
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-21 12:03:28 -07:00
Sudheer Papothi
c9dd3be3c3 ASoC: wsa881x: Avoid query temp during suspend
Runtime suspend in slimbus driver makes QMI call which takes
wakelock and result in first system suspend to fail. As a result
of first suspend fail, POST_PM_SUSPEND event is dispatched to
thermal core which registered to pm notifier. WSA being one
of registered thermal zone gets query for temperature, and makes
slimbus reads/writes which will result in runtime resume of
slimbus driver to happen. System suspend fails again continuously
in this endless loop as slimbus runtime suspend will make QMI call
again.
Update wsa temp sensor to handle suspend event by registering to
pm notifier and ignore the temperature request from thermal core
at resume. This will avoid slimbus reads/writes during suspend in
progress and allow XO shutdown to happen.

Change-Id: Id13a9701cffb1231ef7d563cbc30756fd71d5868
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-05-21 11:53:21 -07:00
Karthikeyan Mani
dbfc6a776a asoc: codecs: wcd934x: add stub functions for codec APIs
If wcd934x config is removed, need to stub out the
APIs to load any dependent audio modules and enumerate
sound card.

Change-Id: If885d4d1f0ee83448ac41ed66b51f078978cb7d1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-05-21 11:16:45 -07:00
Karthikeyan Mani
fc1e972139 asoc: codecs: add MST support for dp audio driver
Add DP codec DAIs to support multiple streams that
audio can be routed to dp controllers with
multiple streams in them.

Change-Id: Id28e6b8cc2989797dd07252cdc8913bc3b403f19
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:45:12 -07:00
Salendarsingh Gaud
ad978894b9 Configure CONFIG_ARCH to enable compilation
Use CONFIG_ARCH_SM6150 for Talos to enable
proper compilation.

Change-Id: I14e06122116c431bf4b99da3a061d165f68e0d4f
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-05-16 17:48:18 +05:30
Linux Build Service Account
4a91aba041 Merge "Initial Android target definition for msmsteppe" 2018-04-29 22:23:26 -07:00
Karthikeyan Mani
2c346abb3c asoc: codecs: remove audio codec core trivial boot up logs
Change info logs to debug logs for all trivial
audio codec core logs that appear in boot up.

Change-Id: I797b876f2a9d72a72c3378acac0d8d7f11b5c4a5
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-26 14:51:57 -07:00
Abhishek Arpure
6d74b706f0 Initial Android target definition for msmsteppe
Add MSMSTEPPE in the makefile rules to enable
compilation for SDM640.

Change-Id: I36437404d98229c8b292fd63304498122d8c8687
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-04-26 18:28:03 +05:30
Linux Build Service Account
d88c1e68dc Merge "codecs: wcd_spi: do not use on-stack memory for any transfers" 2018-04-21 02:47:44 -07:00
Xiaoyu Ye
19a5e41637 codecs: wcd_spi: do not use on-stack memory for any transfers
Currently, for some small (1/4/8 bytes) transfers, the driver uses
on-stack memory to perform the transfer. This is not safe as the
underlying master/dma driver could try to map/dma this memory.
Change makes sure to never use on-stack memory for any transfers.

Change-Id: I6b157e26ea7ca9f865004a87153c658756f6c368
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-04-18 14:31:17 -07:00
Xiaoyu Ye
60c105d5c9 audio-kernel: update chipset name
Update all audio drivers to use updated chipset name in
files, functions, architecture specific configurations
and the device tree compatible strings.

Change-Id: I507948866213ddb8806edea71a57c1f29ce7e71b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-04-18 10:34:42 -07:00
Linux Build Service Account
5f0b5040eb Merge "ASoC: Add audio support for sdmshrike" 2018-04-16 10:12:01 -07:00
Banajit Goswami
f58e5fcf72 audio-kernel: update chipset name
Update all audio drivers to use updated chipset name
in architecture specific configurations and the device
tree compatible strings.

Change-Id: Ib1abe643c6914c1b0b57ef110c7b60e23e356d97
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-04-11 16:18:52 -07:00
Sudheer Papothi
e3842cf831 ASoC: Add audio support for sdmshrike
Add audio support for sdmshrike.

Change-Id: I0b86ab7b123a3215617b81a645202785f6810d02
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-04-11 10:53:22 -07:00
Linux Build Service Account
d100585a8a Merge "ASoC: fix compilation warnings after enabling LLVM" 2018-04-03 01:01:10 -07:00
Xiaojun Sang
992b2f0fa1 ASoC: codecs: wcd: avoid redundant component unbind
Component unbind happens in component_bind_all, if component
bind fails. There is no need to call extra component_unbind_all.

Change-Id: I4ff2aececc5e10c5c4cfbe71778630c621768349
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-04-01 17:55:45 -07:00
Linux Build Service Account
d370eb7911 Merge "asoc: codecs: probe defer till mclk is available for wcd9360" 2018-03-30 18:20:42 -07:00
Vidyakumar Athota
c3b3df985d asoc: codecs: probe defer till mclk is available for wcd9360
Sometimes codec enumerates before APPS APR communication happens
with ADSP. Since wcd9360 MCLK request goes through APR, defer the
codec probe till mclk is available.

Change-Id: Ief5bb80f4c62fcf58a8cc93f11a9b4536f883d1e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-29 18:46:32 -07:00
Meng Wang
249b1f9bf1 ASoC: fix compilation warnings after enabling LLVM
After enabling compilation with LLVM for audio drivers,
some assignment warnings are reported. Add this change
to resolve the compilation warnings.

Change-Id: I571b2e210053bc0b80d65cd272ce1751e0ed10fb
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-30 09:32:16 +08:00
Linux Build Service Account
52810d665e Merge "asoc: wcd-mbhc: enable mbhc clk based on L_DET" 2018-03-24 03:43:14 -07:00
Karthikeyan Mani
8d772b0efb asoc: wcd-mbhc: enable mbhc clk based on L_DET
Enable or disable mbhc clk in sync with L_DET
so that L_DET interrupt is not raised for
false positives for usbc analog.

Change-Id: I69792e8dc82cdc80751f2c1c705f603074cb9a2f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-23 10:35:59 -07:00
Vidyakumar Athota
e6c80a9d09 asoc: codecs: update wcd routing to fix warnings
WCD9360 audio routing map is updated to avoid boot up
warning logs. Also updated on-demand supply name.

Change-Id: I66b8a4e28ec31a5337bfe2aede9b347edb94b291
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-21 18:30:03 -07:00
Linux Build Service Account
257abe3e99 Merge "asoc: codecs: set boost state to MAX_STATE_2 for WSA8815" 2018-03-21 10:17:17 -07:00
Linux Build Service Account
ed523bc624 Merge "asoc: wcd934x: update register default values before post SSR" 2018-03-21 01:40:57 -07:00
Linux Build Service Account
3cf90f9a08 Merge "asoc: codecs: add null pointer check for swr control data" 2018-03-21 01:40:55 -07:00
Linux Build Service Account
443e3c2544 Merge "asoc: wcd-mbhc: disable button current source after removal" 2018-03-21 01:40:54 -07:00
Linux Build Service Account
c0f79e7211 Merge "ASoC: wcd9360-dsp-cntl: Limit array size of val" 2018-03-21 01:40:51 -07:00
Linux Build Service Account
d4ba1285d1 Merge "asoc: codecs: update wcd9360 interrupt table size" 2018-03-21 01:40:50 -07:00
Xiaojun Sang
09cd2ac5e9 asoc: codecs: set boost state to MAX_STATE_2 for WSA8815
WSA8815 requires default boost state of MAX_STATE_2, when
speaker protection feature is disabled. Set boost state to
MAX_STATE_2 in all cases for WSA8815.

Change-Id: Ic700d9a206e94a4cdd1d99f8547bed9df1e759e8
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-03-21 10:36:31 +08:00
Vidyakumar Athota
b41e711b68 asoc: codecs: update wcd9360 interrupt table size
WCD9360 interrupt table size is invalid. Update it to
correct size.

Change-Id: Ie2ec848d8a75b6889957954c9444d261a70f4c4e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-19 18:17:54 -07:00
Linux Build Service Account
c002ec2d3b Merge "asoc: codecs: remove devm clean up functions" 2018-03-17 06:06:26 -07:00
Karthikeyan Mani
6bcd94a7ce asoc: wcd-mbhc: disable button current source after removal
After headset removal disable button current source
to not have any voltages output in micbias after
headset removal from extension cable.

Change-Id: I2a751c16c704176381bb26f375aebf351686e911
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-16 14:48:59 -07:00
Karthikeyan Mani
24afb6e390 asoc: codecs: add null pointer check for swr control data
Null check is needed before accessing swr control data
to ensure proper error handling in case speaker path
is issued when swr is not enabled.

Change-Id: I5037a912652189b3ae58f1119d0534777a9c264a
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-16 14:46:33 -07:00
Vidyakumar Athota
a347bbd7c8 asoc: codecs: remove devm clean up functions
Devm clean up functions are removed to avoid calling twice
as these are excuted during removal of device.

Change-Id: Ifddde69d189b59456ef7627f32532198654e40d3
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-15 19:20:14 -07:00
Vidyakumar Athota
7dcd2d585f asoc: codecs: register pahu codec with slimbus
Add pahu-slim-ngd under wcd_slim_device_id list to
register pahu codec with slimbus driver.

Change-Id: I87a9a56087fd1520fe592b39eb142297c2f176e0
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-14 16:55:30 -07:00
Linux Build Service Account
5d5790373e Merge "ASoC: Change PRODUCT_OUT to OUT in Kbuild" 2018-03-12 12:13:54 -07:00
Meng Wang
bb4029020d asoc: wcd934x: update register default values before post SSR
Update register default values before post SSR to avoid codec nack issue.

Change-Id: Ibf1e3275d27c4b65ab179b9ddc5a51621c89eab7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-08 20:34:24 -08:00
Phani Kumar Uppalapati
8fe02478b7 asoc: wcd-mbhc: add support for usbc analog audio on msmnile
Add support for usbc analog audio for msmnile platform
by adding fsa driver calls in mbhc driver to make
any switching orientation changes of gnd/mic.

Change-Id: Iab7511907325a24345734402c10a4cf5f8ebfa23
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2018-03-08 12:02:18 -08:00
Xiaoyu Ye
3bda9b1de1 asoc: wcd934x: optimize ANC enablement logic for Tavil codec
In Tavil driver, both ANC0 and ANC1 channel registers are written when
each ANC channel is enabled. This logic results in high latency during
ANC enablement on Tavil codec. Optimize this logic by only writing the
corresponding channel registers when enabling ANC0 or ANC1.

Change-Id: I62e8572967e6ca6c851cbaaad5f1b8c19e5b1a5f
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-03-07 17:25:34 -08:00
Meng Wang
e61ddb01f8 ASoC: Change PRODUCT_OUT to OUT in Kbuild
Update module symbol folder from PRODUCT_OUT to OUT.

Change-Id: I4542c3d2b5e9e39b69f15954ef425c1915a58456
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-07 11:18:35 +08:00