Commit graph

564 commits

Author SHA1 Message Date
Aditya Bavanari
d7ec18ce76 soc: pinctrl-lpi: Add support to read lpi offset from device tree
In order to support variable lpi offsets from different chipsets
read the lpi offset values of gpio groups from device tree. Any
target which uses LPI has to define this gpio offset table
in device tree.

Change-Id: I3bd54017e4571deb9a189cfd6903698887a6413a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-06-19 16:27:22 +05:30
Linux Build Service Account
b40af4675e Merge "dsp: fix return code check in adm driver" into audio-drivers.lnx.3.0 2018-06-18 20:58:18 -07:00
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
Linux Build Service Account
20ecda1ebf Merge "dsp: Fix rtac memory unmap issue in ASM driver" into audio-drivers.lnx.3.0 2018-06-18 16:42:56 -07:00
Linux Build Service Account
f3d6f39387 Merge "asoc: msm: routing: Add support for LSM routings for codec dma interfaces" into audio-drivers.lnx.3.0 2018-06-18 16:42:54 -07:00
Linux Build Service Account
74104df871 Merge "Asoc: swr: New soundwire master driver" into audio-drivers.lnx.3.0 2018-06-18 13:38:47 -07:00
Aditya Bavanari
d66cc71409 dsp: Fix rtac memory unmap issue in ASM driver
During unmap of rtac block in ASM, mem_map_handle
address is set to zero instead of the value. Set the
map handle value to zero to avoid issue in freeing the
ion memory.

CRs-Fixed: 2254339
Change-Id: I6584be029d4c8dde235e722149c758df0db9916e
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-06-18 12:57:32 +05:30
Ramprasad Katkam
9f040f339f Asoc: swr: New soundwire master driver
New soundwire master driver to support multi master
for Talos/vipertooth.

Change-Id: I2616b940339e8f3d8d120e6705247d7bd1656bac
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-18 12:07:47 +05:30
Vidyakumar Athota
e427c419f5 dsp: fix return code check in adm driver
Return error only if apr_send_pkt() function
return code is less than 0.

Change-Id: I98903c6c275f360d32c3af523352071d92d1ef85
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-06-16 00:02:46 -07:00
Linux Build Service Account
8fbad90eb9 Merge "asoc: msm-lsm-client: add __user attribute for IOCTL" into audio-drivers.lnx.3.0 2018-06-14 23:47:15 -07:00
Linux Build Service Account
01b512d58e Merge "asoc: Add Makefile.am for audio modules compilation" into audio-drivers.lnx.3.0 2018-06-14 23:47:14 -07:00
Linux Build Service Account
620343727b Merge "asoc: qcs405: Add machine driver changes for new swr master" into audio-drivers.lnx.3.0 2018-06-14 22:44:45 -07:00
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
Sachin Mohan Gadag
0ebe6b8637 asoc: Add Makefile.am for audio modules compilation
Add Makefile to compile audio modules for LE build
compilation.

Change-Id: I60710bd786d60dd29d1133acffdf098f0de5a6a2
Signed-off-by: Sachin Mohan Gadag <sgadag@codeaurora.org>
2018-06-14 14:53:48 +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
637d612f1b asoc: msm: routing: Add support for LSM routings for codec dma interfaces
This change is to add support routing for codec dma
interface backends and LSM front ends.

Change-Id: Ia0d6a5a5969ca1a18ceed2b55b634146ecc3f956
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-13 20:33:51 +05:30
Ramprasad Katkam
a1f21ebf06 asoc: qcs405: Add machine driver changes for new swr master
Send additional port types information from machine driver
to wsa required for new soundwire driver.

Change-Id: Ia3188cfe6e33dd5b219a12900cb0d04ca03fd02c
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-06-13 02:38:34 -07:00
Xiaoyu Ye
97f76efc86 asoc: msm-lsm-client: add __user attribute for IOCTL
Add __user attribute for msm_lsm_ioctl's input parameter
"*arg" to explicitly identify it as user space pointer.

Change-Id: I33e8a23cdef9eee9a55b77bb017716ccf2ba5f81
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-06-12 15:50:01 -07:00
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
d4a064213f asoc: qcs405: Add support for VAD in QCS405 machine driver
Update QCS405 machine driver to create HW dependent node for AFE
to hold VAD core calibration.

Change-Id: Ied9c11af87df0fb2b419f1e4a9c1e5cc67d84c00
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:19:49 +05:30
Mangesh Kunchamwar
0c794ae9f4 asoc: Add support for VAD in DAI driver
Update DAI driver to include VAD configuration related mixer
controls for the supported DAIs.

Change-Id: I7c1ff9a30c3afcf9bb66e40283e6909631df9aa6
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:19:37 +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
cd74176d75 asoc: qcs405: Add machine driver support for qcs405
Add DAI(Digital Audio Interface) links, internal codec macros &
external codec configuration to support audio functionality on
qcs405

Change-Id: Ibe88f6e670d300bf18a7d07c3575991bcc686389
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:18:07 +05:30
Mangesh Kunchamwar
d191c5fe13 asoc: 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 dai driver
and corresponding dais.

Change-Id: I307950ff3cbfe80c966bd9de21803655bb46e05c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-11 14:09:54 +05:30
Mangesh Kunchamwar
a21bef610b asoc: msm: routing: Add support for codec dma interfaces in routing driver
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add support routing for codec dma
interface backends and their corresponding front ends.

Change-Id: I8145921559457c50408d35c90b13d018e1c32c8a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-11 14:09:28 +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
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
Linux Build Service Account
4ea1aaec01 Merge "ASoC: codecs: fix inconsistency of boost state register value" into audio-drivers.lnx.3.0 2018-06-08 21:04:03 -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
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
99fcc918d8 Merge "dsp: Fix AFE RTC set parameter" into audio-drivers.lnx.3.0 2018-06-08 03:17:12 -07:00
Linux Build Service Account
8fe64bdfd0 Merge "ipc: apr: add qcom,subsys-name for apr" into audio-drivers.lnx.3.0 2018-06-07 22:17:06 -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
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
Linux Build Service Account
f194272a82 Merge "ASoC: wcd934x: Reset power_active_ref to 0 when it is negative" into audio-drivers.lnx.3.0 2018-06-07 18:12:41 -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
Vignesh Kulothungan
9ca8dc327c soc: soundwire: Add support to listen for DC detection
Add support to listen for DC detection event.
Shutdown WSA on receiving DC detection event.

CRs-Fixed: 2244131
Change-Id: Ifecab8bb9862976a647a161bad4c202b6e6459c7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-07 09:00:56 -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
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
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
Meng Wang
f71f3504b7 ipc: apr: add qcom,subsys-name for apr
Add qcom,subsys-name for apr driver. Based on the property,
registration of notifier is done for the right co-processor,
from which notification needs to be received.

Change-Id: Id492c8b24d1a4cf0bcab37700a1e9c61c9067041
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-06-07 10:11:44 +08: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