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
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
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
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
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
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>
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
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
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
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
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