Commit Graph

339 Commits

Author SHA1 Message Date
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
Xiaoyu Ye
f0ec686d3b asoc: msm-lsm-client: add support for ADSP Generic Detection Event
ADSP detection engine module can raise Generic Detection Event to
provide variable payload data based on the information requested by
userspace. Adding new API/interface to provide support for Generic
Detection Event in LSM drivers.

Change-Id: Id5541f959ecdcf862dcfa1de1c1a1b3a796f260c
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-22 23:36:37 -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
Karthikeyan Mani
29dfffc4b2 asoc: sm8150: add dai link for dp audio multi stream transport
Add dai link with the newly added BE codec dai and
the same AFE CPU dai to support another stream for
dp audio.

Change-Id: I747107441a310e5e768dc9757093c7bba424a0d7
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:46:26 -07:00
Karthikeyan Mani
5755008e6d asoc: msm-pcm-routing: add audio routes for DP MST
Add audio routes to support Display Port audio MST.
Each end device controller stream adds a route.

Change-Id: Ifb2ea38ad38efaff17e0a9502e03b5b6a0c2de45
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:46:14 -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
Karthikeyan Mani
44d588893a asoc: dai-q6: set dp audio stream index
Add mixer control to update ctl index and stream index
to set to display port audio AFE port. Use the index to
set AFE params for the same.

Change-Id: If83b5b0802bb82a0e01fb01c7175472d2b1bb94e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:44:00 -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
65538ee5e9 Merge "asoc: fix error handling logic to avoid potential deadlock" 2018-05-09 01:20:37 -07:00
Xiaoyu Ye
7e2bf00784 asoc: fix error handling logic to avoid potential deadlock
IOCTL command "SNDRV_LSM_EVENT_STATUS_V3_32" in msm_lsm_ioctl_compat
has an incorrect error handling logic which can cause mutex deadlock.
Change this logic to avoid potential mutex deadlock.

Change-Id: I19b3509b5d40cff555536e4615132ea8c477d451
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-08 14:37:10 -07:00
Aniket Kumar Lata
4da5250568 asoc: msmnile: add configuration for adaptive bitrate
Add hostless front end DAI to trigger backend
configuration of BT backend dai required for
configuring BT ABR statistics. Add mixer ctrls
to independently configure TX and RX sample
rates to allow BT RX and TX backends.

Change-Id: Iba274253bca510e3899658306787e2ba15324bf2
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-05-02 11:46:01 -07:00
Linux Build Service Account
40bf8e8940 Merge "asoc: dsp: Add support for adaptive bitrate" 2018-05-01 13:18:05 -07:00
Linux Build Service Account
4a91aba041 Merge "Initial Android target definition for msmsteppe" 2018-04-29 22:23:26 -07:00
Aniket Kumar Lata
c0c314765f asoc: dsp: Add support for adaptive bitrate
Add support for adaptive bitrate with A2DP offload.
Set up Tx feedback path on SLIMBUS_7_TX from BT SoC
to LPASS. Configure AFE encoder and decoder for ABR.
Add bit width support to configure AFE port with
32bit for BT A2DP.

Change-Id: I8e0afaf52561e5dc70318240ba238fc42844501f
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-04-29 15:59:32 -07:00
Linux Build Service Account
dce5ddbc21 Merge "asoc: msm: remove machine driver trivial boot up logs" 2018-04-29 08:44:14 -07:00
Linux Build Service Account
502df59d03 Merge "asoc: codecs: remove audio codec core trivial boot up logs" 2018-04-29 08:44:12 -07:00
Linux Build Service Account
a953a60095 Merge "asoc: msm: update names of MI2S and TDM pinctrl states" 2018-04-29 08:44:09 -07:00
Linux Build Service Account
d4afb8cabf Merge "ASoC: add missing mixer control and routings for MI2S" 2018-04-29 08:44:05 -07:00
Linux Build Service Account
e827db3ee0 Merge "asoc: Fix read offset for compress capture with timestamp" 2018-04-29 08:44:00 -07:00
Meng Wang
92edfde1e9 Revert "ASoC: disable source tracking get functionality for sdm855"
This reverts commit 85b6208522
(ASoC: disable source tracking get functionality for sm8150).
Enable source tracking get functionality as the feature is
completely enabled.

Change-Id: I099fae3155f486f1fe89dbdad97c8cb1029f14df
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-04-27 14:30:07 +08: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
Karthikeyan Mani
ca1c181f99 asoc: msm: update names of MI2S and TDM pinctrl states
The current names of MI2S and TDM pinctrl states are too similar to
the actual pinctrl names. Update names of pinctrl states to avoid
confusion.

Change-Id: I1c775a29a32dad38dcc13ae395bd2557ec3a87c9
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-25 13:56:54 -07:00
Karthikeyan Mani
502766a828 asoc: msm: remove machine driver trivial boot up logs
Change info logs to debug logs for all trivial
machine driver logs that appear in boot up.

Change-Id: I37fb24fb758a81af9ae4be0e735cd9b467f88e70
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-25 13:54:12 -07:00
Meng Wang
5c4bab792d ASoC: add missing mixer control and routings for MI2S
Add missing mixer controls/widgets and routing paths
to avoid audio error logs during bootup.

Change-Id: I3c23cd3e5d1e5e95fcad5f49e3827ef26587e2a3
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-04-25 10:45:33 +08:00
Vikram Panduranga
82c2c2ca00 asoc: Fix read offset for compress capture with timestamp
In a compress capture usecase, read offset guides to
move buffer pointer based on buffer length. When timestamp is
enabled read offset also needs to include timestamp header
offset along with buffer length. This fix addresses the issue
of null memory map handle due to incorrect read offset.

Change-Id: I93c3ec588e77d535b6c7a4a0d832c1e7ea5f62a7
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-04-24 09:48:45 -07:00
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
Linux Build Service Account
dc591563b4 Merge "audio-kernel: update chipset name" 2018-04-14 07:51:48 -07:00
Linux Build Service Account
ab0ed7c423 Merge "asoc: fix possible overflow issue for routing driver" 2018-04-12 10:53:04 -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
Meng Wang
05d5e9aeed asoc: fix possible overflow issue for routing driver
The reg in soc_mixer_control is 32-bit. When using
SOC_SINGLE_EXT, the value of FE DAI ID which is passed
as shift(to be operated on the reg) may be more than 31,
which may cause overflow.
Use SOC_DOUBLE_EXT instead of SOC_SINGLE_EXT so that the
reg field can be set to SOC_NO_PM to avoid any DAPM operation,
while passing BE and FE IDs in shift and rshift fields. And
these values can be retrieve in get/put functions and use them.
This is to avoid any possible overflow in DAPM operation.

Change-Id: I17fa4e059889ae725e6f015a779f518e6d0a813f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-04-09 10:01:23 +08:00
Linux Build Service Account
85e1e33bb9 Merge "asoc: remove tdm optional properties boot logs" 2018-04-04 01:12:22 -07:00
Linux Build Service Account
a8902668e9 Merge "ASoC: msm: check payload size before memory allocation" 2018-04-04 01:12:21 -07:00
Linux Build Service Account
d100585a8a Merge "ASoC: fix compilation warnings after enabling LLVM" 2018-04-03 01:01:10 -07:00
Karthikeyan Mani
b3c62d149e asoc: remove tdm optional properties boot logs
Move the tdm device property logs from probe function
to prepare function to print them only when tdm usecase
is started and not during bootup.

Change-Id: I3844709d501bf510620d6f20f270e30c68e78b78
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-02 11:24:27 -07:00
Xiaojun Sang
75642c362c ASoC: msm: check payload size before memory allocation
Buffer from mixer ctl or ADSP is composed of payload size and
actual payload. On a 32 bit platform, we could have an overflow
if payload size is below UINT_MAX while payload size + sizeof(struct)
is over UINT_MAX. Allocated memory size would be less than expected.
Check payload size against limit before memory allocation.

Change-Id: I0bf19ca7b8c93083177a21ad726122dc20f45551
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-04-02 22:00:23 +08: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
Linux Build Service Account
2df0d1fedc Merge "asoc: msm: assign mic gnd swap function" 2018-03-23 21:46:19 -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
Karthikeyan Mani
24be60db0c asoc: msm: assign mic gnd swap function
Assign mic gnd swap function if usbc analog is
enabled. This is irrespective of whether us_euro
gpio is defined.

Change-Id: I6cf5beadca18682a7488db2286986883dbbcdf3d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-22 10:13:45 -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