Commit Graph
24 Commits
Author SHA1 Message Date
huangys 5fe048dccc ASoC: move cirrus playback driver to QC audio-kernel
This driver is hard to share on all QC platform. But this project
is hoped to common for as most as product. Move it to QC audio kernel.
It's seperated on different QC platform.

Change-Id: I37202e87bf6174be7aa015ae9566d34739ed7d87
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1370172
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-06-14 03:27:39 -05:00
huangys 1e7204e942 audio: remove Cirrus code to vendor/cirrus/audio/dlkm
Cirrus has their own code release branch. and these branches are
not compatible each other. audio team can't branch off motorola
kernel modules

Note: cs4012 and msm-cirrus-playback had not beeen moved away.

Change-Id: Ib14bf3c5a5cfaa9c363a59c4ba0f871e11e9c92a
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1350673
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2019-05-20 21:39:12 -05:00
Li Xu d21ad27df5 ASoC: cs35l41: Modify GPIO GLOBAL_EN control
Due to integrated circuit limitation,
use firmware to control GLOBAL_EN register bit
based on received GPI input.

If enabled, firmware, upon receiving GPI value,
will control GLOBAL_EN register bit accordingly.

Cirrus-JIRA-fixed: MMI-942, MMI-953
PROPAGATED_From: (CR)

Mot-CRs-fixed: (CR)
Change-Id: Ied87df36bf3f3914b419d472df7d095e8b1a2fbf
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1269398
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Patrick Gries <patgries@motorola.com>
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1302827
2019-02-04 12:11:55 -06:00
Wen Xie ac89b6f56d Channel row : audio: add TI smartpa algorithm
channel: support two tas2560 bin files
-tas2560_TI_row.bin for Channel ROW with smart pa;
-tas2560_TI_na.bin for Channel NA;

-add ti,spk_type_id to distinguish row and na bin files;
-close debug log.

Change-Id: I8ae7805db2e92c807b34f841dd1268db96ba6163
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1274052
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2018-11-28 20:44:56 -06:00
Li Xu b33af28110 ASoC: cs35l41: Use polling for mail box
Use polling instead of interrupt for DSP mail box
acknowledgement.

With interrupt method, the amount of time for mail box
acknowledgement can vary, and sometimes long.

This is because interrupt handler reads all interrupt
status registers and masks, which can take long time,
especially on slow I2C bus.

Use polling to directly check for DSP mail box
acknowledgement reduces variability in amount of time
needed, because only 1 register is read.

Cirrus-JIRA-fixed: MMI-912
Change-Id: I21a223bbfdccb3593c61c7d04ae8355f2734c7a9
Signed-off-by: Li Xu <li-xu@outlook.com>
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1259695
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Seungyoon Lee <yoon@motorola.com>
Submit-Approved: Jira Key
2018-10-23 14:49:44 -05:00
Li Xu cc135373aa ASoC: cs35l41: Rename TDM to DSP A mode
cs35l41 supports both DSP A and TDM 1.5 modes.
To distinguish between the 2 modes, rename TDM to DSP A mode,
which is currently used by driver.

SQA-1109

Mot-Crs-fixed:(CR)

Change-Id: I0636c067ec1845a1180e40891c08d9818f7f7b08
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1253044
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1253074
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
2018-10-10 00:45:17 -05:00
Yoon (Seungyoon) Lee 3b8f1b98f0 Revert "cs35l41: workaround for fixing speaker low volume issue"
We will integrate MBOX compatible Prince DSP Protection FW to v5.03.06 in
same JIRA to address the issue correctly, therefore we need MBOX controls.

(This reverts commit 87587195db832a6a1156e0c613fdd4a2718fad39.)

MOT-CR-Fixed: (CR)
Change-Id: I231464519a347126d965d1b844e76a97fa197480
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241770
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Yunfeng Pan <panyf1@motorola.com>
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Submit-Approved: Jira Key
2018-09-15 23:08:15 -05:00
huangys 9830e98ff4 cs35l41: workaround for fixing speaker low volume issue
- once cirrus new 96k firmware is ready, revert this
- not sending mailbox command to firmware, instead of mute/unmute command

Mot-CRs-fixed: (CR) (CR)

Change-Id: I22b6d368499edd99da5238f0e7393eb8d5c79fcc
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1241093
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-09-12 07:20:54 -05:00
Li Xu 5ec000c5dc ASoC: cs35l41: Implement support for dynamic DMA
Implement support for dynamically allocating DMA buffer
in CSPL firmware for firmware.

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I0ff90e85e96ff5029e276f00e82f0503913fb9f1
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238847
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:58 -05:00
Li Xu 1c0a68cd89 ASoC: cs35l41: Implemented managed low-power transition
Implemented managed low-power transition
to nicely change firmware state when powering down and up.

More details at:

https://docs.cirrus.com/display/PRNC/Managed+transition+to+low+power+mode

SQA-1029

Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: I84ed2e788abac6c2e3ffb676ac7194abb4693fc5
Signed-off-by: Li Xu <li.xu@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1238845
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:52 -05:00
vkarp ea40ea0ace Revert "ASoC: cs35l41: Specify CSPL_CMD address"
This reverts commit dedc905d09d87794b2d5040e1ae8c82f75e1ab9b.
Mot-CRs-fixed: (CR): River: AoU bringup on Marley+Prince
Change-Id: Ia7a8ae1bd6d8dfc483ecbc19ed0e984c515fb7f9
Reviewed-on: https://gerrit.mot.com/1238843
Tested-by: Jira Key
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2018-09-06 16:34:44 -05:00
Yoon (Seungyoon) Lee f20a95ede9 modules: cirrus_playback: add Speaker Enhancement
add Cirrus Speaker Enhanement driver as DLKM.

Change-Id: Ibad2b4d5f6cac12ce8d6660cb41928ef8562fe10
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1215912
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-08-03 08:26:37 -05:00
Yoon (Seungyoon) Lee 7164464455 modules: ospl: remove OSPL from DLKM
There is no plan of record to use OSPL on any DLKM kernel.
This reverts commit 42547f66e2c68a6479623dd1f55c82b9d9785b41.
This reverts commit c442ee33c2d29133994516500acdd4f64ed74118.

squash Revert "(CR): ospl: fix build error of header files absence"
squash Revert "(CR): propagate ospl module from bomr1-8998 kernel branch"

Change-Id: Ie20ca57c5583efb95a5332be5a0204b22c1e4ec8
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1203864
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-07-25 10:18:26 -05:00
Adam Brickman ef0bf3d418 ASoC: cs35l41: Specify CSPL_CMD address
The CSPL_CMD address may change depending on the firmware/chip revision.
This is now handled by assigning the correct address in probe based
on the chip's revision ID.

Mot-CRs-Fixed: (CR)

Change-Id: I4d0e4cb80dabe7cc98475b444471c42df96566fc
Signed-off-by: Adam Brickman <Adam.Brickman@cirrus.com>
Reviewed-on: https://gerrit.mot.com/1204800
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1206183
2018-07-09 03:30:36 -05:00
Wen Xie 3d4a09ba8b ASoC: Tas2560: Add codec algo.
Add audio codecs Tas2560 algo driver.

Change-Id: Ib2aa0b0594fd551345b5bccde192ba9e7be9c062
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1203896
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Submit-Approved: Jira Key
2018-07-04 21:18:24 -05:00
Vlad Karpovich 8ae1c8cd2b ASoC: cs35l41: Change from MFD to codec driver.
Remove MFD driver support from cs35l41 codec.

Change-Id: Iffcb54eac647a4aa7e47b37ffda8ded1e06af8cf
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177445
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:57:13 -05:00
Vlad Karpovich 1664a31151 ASoC: cs35l36: Update to womack driver
Merge recent changes from Moto kernel 4.4 branch

Change-Id: I40a8374bfd11717642265147696b8796700ca7ee
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1177438
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Rav(CR) Vembu <raviv@motorola.com>
Submit-Approved: Jira Key
2018-05-22 12:56:34 -05:00
Vlad Karpovich 1a6e7dd73c ASoC: cs35l41: Cirrus cs35l41 amplifier driver
11-V Boosted mono class D amplifuer with DSP speaker
protection and equalization

Change-Id: Ic8e2fe2a5a024e6b19fd97db9ece814a8764523c
Reviewed-on: https://gerrit.mot.com/1166691
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuesheng Huang <huangys@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-05-15 04:16:52 -05:00
huangys eb96306f27 propagate ospl module from bomr1-8998 kernel branch
copy base from bomr1-8998: f2668732ab262c40c81286418aec9e8122aa690f

Change-Id: I25b4097dee29afce11121ef1211c7460c3980c1e
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1166270
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-24 05:02:20 -05:00
huangys 08e4828a96 update cs35l35 driver from Payton
the old came from github site of cirrus driver v4.9-cs35l35 branch

Change-Id: I182e2bb0d1e041c72307c6b9541a7b2755e64ad2
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1160165
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-09 01:20:41 -05:00
huangys 4296ab05d2 ASoC: add cs35l35 driver
Change-Id: I3675d255f6c472ff0d781981b9184a265d389596
Signed-off-by: huangys <huangys@motorola.com>
Reviewed-on: https://gerrit.mot.com/1159946
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
2018-04-08 01:04:50 -05:00
Paul Handrigan 38c2d139aa ASoC: cs35l36: Update device tree checks for L37
Update device tree checks for cs35l37 12V.

Change-Id: Ic84f46a29d902522bf4faf9be331f1b1825313ca
Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140353
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Vladimir Karpovich <vkarp@motorola.com>
Submit-Approved: Jira Key
2018-02-26 19:26:56 -06:00
Brian Austin ea2b640cb6 ASoC: cs35l36: Add boost control for external supply
If supplying boost voltage externally you have to
put the device in specific setting or damage may occur

Add DAPM_POST events to setup the correct up/dn
Add DT boolean to specify external or internal boost

Change-Id: I449b18601757127d6570d6e5bca1db3f2c7938ae
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1140358
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
2018-02-26 19:25:40 -06:00
Vlad Karpovich 8d6c6a5296 ASoC: madera: Add Cirrus Logic audio drivers
The following drivers are included and modyfied to be run
as DLKM:
Core madera drivers,
extcon driver,
CS47L35 and CS47L90 codec drivers,
CS35l36 AMP driver,
CS40L20 haptic driver.

Change-Id: I7a285d434244e08635a2cfdcd3f21f45c3d8c0f6
Signed-off-by: Vlad Karpovich <Vlad.Karpovich@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1131231
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
2018-02-07 16:23:31 -06:00