Commit Graph

147 Commits

Author SHA1 Message Date
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
Mangesh Kunchamwar
4e1e71885e dsp: afe: Add support for VAD in AFE native driver
Update to AFE native driver to send VAD calibration
to DSP. Add support for per service API version query
in q6core driver.

Change-Id: I6234879054e7b5622a40912da16072fd8dbd83fe
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:18:35 +05:30
Mangesh Kunchamwar
8c706aba34 dsp: afe: Add support for codec dma interface
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add codec dma interface related
updates to Q6 AFE native driver.

Change-Id: Ia3d1e5e80c694c8c4a7f904151adfcb504964b08
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-10 22:46:57 -07:00
Linux Build Service Account
21a3728025 Merge "dsp: Add platform driver support for q6core" into audio-drivers.lnx.3.0 2018-06-08 18:42:55 -07:00
Linux Build Service Account
99fcc918d8 Merge "dsp: Fix AFE RTC set parameter" into audio-drivers.lnx.3.0 2018-06-08 03:17:12 -07:00
Laxminath Kasam
4cb7b2354d dsp: Add platform driver support for q6core
To add child devices under q6core, update
q6core to support as platform driver.

Change-Id: I5a923d1a16899c03428c8e54701ea1c07653f486
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-08 10:43:42 +05:30
Vignesh Kulothungan
b01240a15a dsp: Fix AFE RTC set parameter
Fix offset address to use set parameter structure while
copying data from user instead of get parameter structure
for AFE_PORT_CMD_SET_PARAM_V3 case.

CRs-Fixed: 2256728
Change-Id: I61e41f366f365734a47080b79179fbe3021ee8a7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-07 18:33:49 -07:00
Vignesh Kulothungan
c3f3898770 dsp: add support to send uevent on dc detection
On receiving DC detection notification, send an uevent to notify
the userspace.

CRs-Fixed: 2244131
Change-Id: I42b0bb2287d7f1edf5e7c344302a7ea97408ab13
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-07 09:01:29 -07:00
Vignesh Kulothungan
cf6a1215b9 dsp: add support to send uevents
Add a common function handle to send uevents from q6 layer.
Add functions to initialize and cleanup the kernel object required
to send uevents.

CRs-Fixed: 2211324
Change-Id: I9dceb4eb16d6941600455602f78f4f1498171d19
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-07 09:01:13 -07:00
Vidyakumar Athota
94bd8731ae dsp: add support for DC detection event in afe
Add support to register with ADSP for DC detection event
in speaker protection module.
Add support to notify audio driver clients when DC detection occurs.

CRs-Fixed: 2244131
Change-Id: Ieb467f62207546a785eac2e9b96ca677e0b10565
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-07 08:53:00 -07:00
Linux Build Service Account
4cc52a2bed Merge "dsp: add audio event notifier support" into audio-drivers.lnx.3.0 2018-06-06 21:05:04 -07:00
Linux Build Service Account
bfef6ec17f Merge changes I2a570ec9,I563c59eb into audio-drivers.lnx.3.0
* changes:
  asoc: sm8150: Add MultiMedia17 FE with capture support
  dsp: Add support for custom encoder
2018-06-06 15:43:43 -07:00
Linux Build Service Account
8af506f8d2 Merge "dsp: msm_audio_ion: store device pointer locally for all cases" into audio-drivers.lnx.3.0 2018-06-05 21:58:28 -07:00
Vikram Panduranga
c712c17ab0 dsp: Add support for custom encoder
Add support to set custom encoder in ASM which
can be enabled through compress capture path.

Change-Id: I563c59eb3a0213c26ce69d3c2f8d650cf3c7d32d
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-06-05 12:57:23 -07:00
Vidyakumar Athota
f1cba4d4b2 dsp: add audio event notifier support
Add support for audio event notifier framework to
send/receive events across audio drivers.

CRs-Fixed: 2244131
Change-Id: I1e36703a91625cd52333596d66dc21a0e8876738
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-01 16:09:22 -07:00
Garmond Leung
6b3f418d7e dsp: Add support for setting USB packet service interval
Add support for setting packet service interval for usb
AFE Port.

Change-Id: I2221c659f967deaccb9031a9a61b51fd475a0e22
2018-05-31 17:56:21 -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
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
Karthikeyan Mani
16b697200c dsp: afe: add interface to update dp audio stream index
For DP audio Multi Stream Transport, add an interface
to set DP controller and DP stream index for display
port audio AFE port.

Change-Id: I6efbb6937a7849e5840a93541961414eb9049863
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-10 13:43:23 -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
Xiaoyu Ye
b424e05893 dsp: avtimer: add __user attribute to identify userspace address
Add __user attribute for avtimer_ioctl's input parameter ioctl_param
to explicitly identify user space pointer in copy_to_user.

Change-Id: I59fa9d39e5ec3ff9cde3a06af9da2d38e36d557d
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-04-26 15:31:12 -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
Banajit Goswami
ce6e7805bd dsp: msm_audio_ion: store device pointer locally for all cases
Device pointer needs to be stored during probe of msm_audio_ion
platform driver so that the same can be used later for mapping
dma_buff allocated for different clients. Store device pointer
for both cases where SMMU may be present or absent on a particular
platform.

Change-Id: I3d3d4ad254d41ac9490ff0dc98b95ffbc3e5042d
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-04-25 22:29:47 -07:00
Linux Build Service Account
42eac9c48e Merge "rtac: Fix return value of misc_register in init" 2018-04-20 14:49:50 -07:00
Linux Build Service Account
d93e6dde08 Merge "audio-kernel: update chipset name" 2018-04-20 14:49:49 -07:00
Vignesh Kulothungan
2106979395 rtac: Fix return value of misc_register in init
Return error only on failure else success.

CRs-Fixed: 2204093
Change-Id: I616dbf41fb297f16b63d8108eff699703ea94177
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-04-18 17:16:56 -07:00
Linux Build Service Account
1b71077925 Merge "dsp: adsp-loader: avoid updating APR state after ADSP loading" 2018-04-18 10:52:20 -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
293a5f9afe Merge "dsp: q6asm: check for buffer size before read" 2018-04-17 05:41:01 -07:00
Banajit Goswami
cb3ee0e10b dsp: adsp-loader: avoid updating APR state after ADSP loading
APR state update should happen only after ADSP up
notification recieved by APSS, and not just after
ADSP is loaded and booted up.
Avoid setting APR state to loaded after PIL loading
of ADSP image is complete.

Change-Id: I9b9f073279c306562e427ec2c7e73dfa7d71f956
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-04-16 18:34:52 -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
Karthikeyan Mani
145e63390c dsp: q6asm: check for buffer size before read
Check for debugfs ops buf size passed before reading
to avoid reading out of bounds.

Change-Id: Idd5e755ac16448af5751e2f3381097f234e74a74
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-09 10:37:38 -07:00
Linux Build Service Account
a8902668e9 Merge "ASoC: msm: check payload size before memory allocation" 2018-04-04 01:12:21 -07:00
Vignesh Kulothungan
2c6dccdf91 dsp: update parameter header type in ADM
Update parameter header type in ADM programmable channel
mixer function.

CRs-Fixed: 2209691
Change-Id: Iae0f5f832d14a111e1da75f85cf766d768b64a4b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-04-03 11:18:32 -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
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
Linux Build Service Account
018c7c029e Merge "dsp: msm_audio_ion: add ION support for targets without SMMU" 2018-03-30 18:20:40 -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
Banajit Goswami
f6077636ee dsp: msm_audio_ion: add ION support for targets without SMMU
ION memory allocator is used for audio use cases even on targets
without SMMU. Add support for ION on those targets where ADSP
might not have an SMMU in front of it.

Change-Id: Iaacbd66edb32c8ee7c14a5ab291abe54960725b8
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-03-28 12:48:25 -07:00
Linux Build Service Account
7b0ae02b27 Merge "dsp: Initialize variable before use" 2018-03-28 08:08:44 -07:00
Vignesh Kulothungan
13d5a9666a dsp: Initialize variable before use
Initialize variable before use in voice driver.

CRs-Fixed: 2209691
Change-Id: I84b51262b5c3cb12ea23372eb7c7109c6ff844b4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-03-26 14:47:17 -07:00
Vignesh Kulothungan
865440767a rtac: add error check for misc_register in init
Add error check to validate the return value of misc_register.
Clean up memory on an error to avoid memory leak.

CRs-Fixed: 2204093
Change-Id: I8b94bacdc312fa410a7825c7e25764517469c19b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-03-26 10:21:03 -07:00
Linux Build Service Account
b168f4b2f5 Merge "dsp: correct comparison condition for VSS_ICOMMON_RSP_GET_PARAM_V3" 2018-03-23 21:46:20 -07:00
Linux Build Service Account
6438447c30 Merge "dsp: Mark cal block after use" 2018-03-21 04:07:39 -07:00
Meng Wang
e60843d16c dsp: correct comparison condition for VSS_ICOMMON_RSP_GET_PARAM_V3
VSS_ICOMMON_RSP_GET_PARAM_V3 should be compared with opcode. Otherwise the
if condition would always be true. Correct the comparison for
VSS_ICOMMON_RSP_GET_PARAM_V3.

Change-Id: I204c8c71e06b13332fd5b418a40b10618e19a901
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-21 13:50:17 +08:00