summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-16cs40l26: version tag: cs40l26 v7.0.0 and cl_dsp v4.0.1android-u-beta-5.3_r0.7android-u-beta-5.3_r0.5android-u-beta-5.3_r0.4android-u-beta-5.3_r0.2android-u-beta-5.3_r0.1android-u-beta-4_r0.7android-u-beta-4_r0.5android-u-beta-4_r0.4android-u-beta-4_r0.3android-u-beta-4_r0.2android-u-beta-4_r0.1android-14.0.0_r0.7android-14.0.0_r0.6android-14.0.0_r0.5android-14.0.0_r0.4android-14.0.0_r0.3android-14.0.0_r0.2android-14.0.0_r0.17android-14.0.0_r0.16android-14.0.0_r0.15android-14.0.0_r0.14android-14.0.0_r0.13android-14.0.0_r0.11android-gs-tangorpro-android14-releaseandroid-gs-tangorpro-5.10-u-beta5.3android-gs-tangorpro-5.10-u-beta4android-gs-tangorpro-5.10-android14android-gs-raviole-android14-releaseandroid-gs-raviole-5.10-u-beta5.3android-gs-raviole-5.10-u-beta4android-gs-raviole-5.10-android14android-gs-pantah-android14-releaseandroid-gs-pantah-5.10-u-beta5.3android-gs-pantah-5.10-u-beta4android-gs-pantah-5.10-android14android-gs-lynx-android14-releaseandroid-gs-lynx-5.10-u-beta4android-gs-lynx-5.10-android14android-gs-felix-android14-releaseandroid-gs-felix-5.10-u-beta5.3android-gs-felix-5.10-u-beta4android-gs-felix-5.10-android14android-gs-bluejay-android14-releaseandroid-gs-bluejay-5.10-u-beta5.3android-gs-bluejay-5.10-u-beta4android-gs-bluejay-5.10-android14Tai Kuo
Bug: 278018625 Test: Build pass. Change-Id: Ib5ab826bb3c308f10cd309aca376ca1f3e9e2934 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-05-16cs40l26: update modules in BUILD.bazelTai Kuo
Bug: 278018625 Test: Kernel modules were built. Change-Id: Id699f6b47a3f0dee2630cc192ae33fc16c243f58 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-05-16cs40l26: merge cs40l26 v6.0.2, 6.1.1, 7.0.0 and dsp v4.0.0, 4.0.1Tai Kuo
Merge Cirrus kernel driver (tag cs40l26 v6.0.2, 6.1.1, 7.0.0 and dsp v4.0.0, 4.0.1) and manually update the Kconfig and Makefile. Branches: v5.15-cirrus-dsp-fw and v5.15-cs40l26 Tags: cirrus-dsp-fw-v4.0.0_5.15, cl-dsp-fw-v4.0.1_5.15, cs40l26-v6.0.2_5.15, cs40l26-v6.1.1_5.15 and cs40l26-v7.0.0_5.15. Files: Documentation/devicetree/bindings/input/cs40l26.yaml (No changes) drivers/firmware/cirrus/cl_dsp-debugfs.c drivers/firmware/cirrus/cl_dsp.c (No changes) include/linux/firmware/cirrus/cl_dsp.h (No changes) drivers/input/misc/cs40l26-debugfs.c drivers/input/misc/cs40l26-i2c.c drivers/input/misc/cs40l26-spi.c drivers/input/misc/cs40l26-sysfs.c (No changes) drivers/input/misc/cs40l26-tables.c drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c ... Tag: cirrus-dsp-fw-v4.0.0_5.15: Cirrus DSP Firmware Driver v4.0.0 New Features: - Change the build method and module name for the cl_dsp code Commits: a9da515 firmware: cirrus: Change CL_DSP build method Tag: cl-dsp-fw-v4.0.1_5.15: Cirrus DSP Firmware Driver v4.0.1 Bug Fixes: - Wait until reinitialization process to reset EVENT_LOGGER to avoid potential race condition in debugfs_destroy(). Commits: 3e1294c firmware: cirrus: Reset EVENT_LOGGER during initialization Tag: cs40l26-v6.0.2_5.15 - Prevent invalid option of 0 for mixer control "A2H Level" - Various build warnings fixed Commits: 919d495 input: cs40l26: Remove unused functions 84feb83 ASoC: cs40l26: Prohibit setting VOLUMELEVEL to 0 9965618 input: cs40l26: Use string literal in snprintf 8c7e2b1 input: cs40l26: Avoid undefined function warning Tag: cs40l26-v6.1.1_5.15 - Fix composites with repeats Commits: 7054f8b ASoC: cs40l26: Change name of ALSA mixer control and its options 8821e02 input: cs40l26: Fix PWLE header serialization 1010409 input: cs40l26: Load Live F0 Tracking tuning file 3f0d182 input: cs40l26: Fix delay field present bit Tag: cs40l26-v7.0.0_5.15 - Add support for silicon revision B1 - Do not attempt to load the event logger if it is not preset in the FW - Change build configuration to match precedent in the kernel Commits: 2249a92 input: cs40l26: Improve build configuration d8a7a15 input: cs40l26: Don't initialize CL DSP debugfs if not supported firmware 35ef42e input: cs40l26: Add support for revision B1 Bug: 278018625 Test: Build and probe. Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Change-Id: I0a0da4726fa14c7e61be48d8dd7e51ecb1e0a2d9 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-22cs40l26: version tag: cs40l26 v6.0.1android-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2_r0.4android-u-beta-2_r0.3android-u-beta-2_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-u-beta-1_r0.5android-u-beta-1_r0.4android-u-beta-1_r0.3android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-raviole-5.10-u-beta1android-gs-pantah-5.10-u-beta2android-gs-pantah-5.10-u-beta1android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2android-gs-bluejay-5.10-u-beta1Tai Kuo
Bug: 270109840 Test: Build pass. Change-Id: I61a3cbfe3263197130d98be597d60238073ec99d Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-22cs40l26: add cs40l26_set_tdm_slot() backTai Kuo
To have better reference and improve the merge process. Bug: 270023634 Bug: 270109840 Test: trigger audio coupled haptics via sound picker app Change-Id: I9b6ae715fa675781ad2d74455b9520bdcc93ccd7 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-22cs40l26: merge cs40l26 v6.0.1Tai Kuo
Branches: v5.15-cs40l26 Tags: cs40l26-v6.0.1_5.15 Files: Documentation/devicetree/bindings/input/cs40l26.yaml drivers/firmware/cirrus/cl_dsp-debugfs.c (No changes) drivers/firmware/cirrus/cl_dsp.c (No changes) include/linux/firmware/cirrus/cl_dsp.h (No changes) drivers/input/misc/cs40l26-debugfs.c drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c (No changes) drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c Features: - Add devicetree parameters for mapping default GPI events to particular effects - Rename certain mixer controls for more intuitive usage Bug fixes: - Allow CL DSP debugfs directory to be created when firmware loading is deferred via the devicetree Commits: 9c56d30 input: cs40l26: Enable cl_dsp debugfs for deferred F/W case b967746 Documentation: cs40l26: Map GPI effects via devicetree e991944 input: cs40l26: Map GPI effects via devicetree 02c7093 ASoC: cs40l26: Reconfigure mixer controls Bug: 270109840 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Change-Id: I9ef639e7fb4adc7eb0d99c8c0cec15d086d50096 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-17cs40l26: version tag: cs40l26 v5.7.1 and cl_dsp v3.2.0Tai Kuo
Bug: 261694194 Test: Build pass. Change-Id: I721f1cdf813cd092216910ec4ccb33353637cc1f Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-17cs40l26: remove unused db from cl_dsp_debugfs_logger_openTai Kuo
Bug: 261694194 Test: Build pass Change-Id: I345aeba923443829a55b95d1d21d5b46efb6ace0 Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-17cs40l26: remove unused is_owt and is_buzz APITai Kuo
Bug: 261694194 Test: Build pass Change-Id: I0642858685ecbe0fb0920a0084ad5f7fe9872fed Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-17cs40l26: merge cs40l26 v5.7.1 and dsp v3.2.0 for firmware RAM19Tai Kuo
Merge Cirrus kernel driver (tag cs40l26 v5.7.1 and dsp v3.2.0) for firmware RAM19 (v7.2.49 (runtime) & v1.1.35 (calib)) Branches: v6.1-cirrus-dsp-fw and v5.15-cs40l26 Tags: cl-dsp-fw-v3.2.0_6.1, cs40l26-v5.7.1_5.15 Files: Documentation/devicetree/bindings/input/cs40l26.yaml (New) drivers/firmware/cirrus/cl_dsp-debugfs.c (New) drivers/firmware/cirrus/cl_dsp.c include/linux/firmware/cirrus/cl_dsp.h drivers/input/misc/cs40l26-debugfs.c (New) drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) ... Tag: cs40l26-v5.7.1_5.15: CS40L26 v5.7.1 Features: - Add device tree parameter for skipping normal delay before stopping playback - Add Debugfs controls for reading FW controls - Add support for debug logger - Add support for DVL coefficient calibration Bug fixes: - Remove unused functions - Fix potential memory leak - Remove terminator write from owt setup Commits: 6ebc38890aba input: cs40l26: Use linked list to track uploaded effects a26249ad215e input: cs40l26: Add dvl_peq_coefficients control 4b3e947f0b4b input: cs40l26: Add support for DVL PEQ cal request 09e8c62468df input: cs40l26: Load cs40l26-dvl.bin for both runtime and cal FW e0176fefb2ba input: cs40l26: Use completions for calibration requests fcec4c470704 input: cs40l26: Add support for cl_dsp debug logger ae8df81dcd84 input: cs40l26: Add Debugfs to read FW controls 52400ada10c5 Documentation: cs40l26: Skip delay for reserved indices e4a7db96e597 input: cs40l26: Skip delay for reserved indices 350990b074eb input: cs40l26: Remove terminator write from owt setup 3dd46703b73c input: cs40l26: Only load tuning if algorithm is present 7e6977e678ae input: cs40l26: Resolve memory leak b98183034193 input: cs40l26: Remove unused functions ... Tag: cl-dsp-fw-v3.2.0_6.1: Cirrus DSP Firmware Driver v3.2.0 New Features: - Support Debugfs Event Logger Improvements: - Use kvmalloc for large data handling - Mask MSB when looking for algorithm ID Commits: 6ebc38890aba input: cs40l26: Use linked list to track uploaded effects 7f373ff54162 firmware: cirrus: Add support for Debugfs and debug logging e7b3c3b3f852 firmware: cirrus: Use kvmalloc() for large memory allocation 00ca52ae9448 firmware: cirrus: Mask bits[31:16] when comparing algorithm ids 021d5954c875 firmware: cirrus: add function to check for algo presence Bug: 261694194 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Change-Id: I10e31d93b0248b32858e0aa07d4b40e20e66b38a Signed-off-by: Tai Kuo <taikuo@google.com>
2023-02-15cs40l26: driver probe deferralandroid-u-preview-2_r0.2android-gs-raviole-5.10-u-preview-2Tai Kuo
Bug: 228406045 Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I589dfe4d82ed40b60eabb776b31d09455b6ee063
2023-02-15cs40l26: support profilingTai Kuo
1. Interrupt-based haptics awake, on and off. Events: AWAKE, TRIGGER_CP, TRIGGER_CPIO and TRIGGER_I2S. 2. ff-core IOCTL callback Events: cs40l26_set_gain, cs40l26_playback_effect, cs40l26_upload_effect and cs40l26_erase_effect. 3. PM state transition. Events: WAKEUP and PREVENT_HIBERNATE. Note: 1. Workqueue profiling is already supported. Event: cs40l26_set_gain_worker, cs40l26_vibe_start_worker, cs40l26_vibe_stop_worker, cs40l26_upload_worker and cs40l26_erase_worker Bug: 261427473 Test: Check Perfetto with default category Change-Id: I9757c88df182a3294b97dfa7053ef9ac368bcaef
2023-02-05Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcPixelBot AutoMerger
SBMerger: 478053055 Change-Id: I6743c186be8a0b7807087e947e2f3a2e239103e1 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-02-05Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3android-t-qpr3-beta-3_r0.5android-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3android-t-qpr3-beta-3.1_r0.5android-t-qpr3-beta-3.1_r0.4android-t-qpr3-beta-3.1_r0.3android-t-qpr3-beta-2_r0.5android-t-qpr3-beta-2_r0.4android-t-qpr3-beta-2_r0.3android-t-qpr3-beta-1_r0.5android-13.0.0_r0.92android-13.0.0_r0.85android-13.0.0_r0.84android-13.0.0_r0.83android-13.0.0_r0.82android-13.0.0_r0.127android-13.0.0_r0.126android-13.0.0_r0.125android-13.0.0_r0.124android-13.0.0_r0.123android-13.0.0_r0.121android-13.0.0_r0.117android-13.0.0_r0.116android-13.0.0_r0.115android-13.0.0_r0.114android-13.0.0_r0.113android-13.0.0_r0.112android-13.0.0_r0.107android-13.0.0_r0.106android-13.0.0_r0.105android-13.0.0_r0.104android-13.0.0_r0.103android-13.0.0_r0.100android-gs-tangorpro-5.10-android13-qpr3android-gs-raviole-5.10-t-qpr3-beta-3android-gs-raviole-5.10-t-qpr3-beta-2android-gs-raviole-5.10-android13-qpr3android-gs-pantah-5.10-t-qpr3-beta-3android-gs-pantah-5.10-t-qpr3-beta-2android-gs-pantah-5.10-android13-qpr3-beta1android-gs-pantah-5.10-android13-qpr3android-gs-lynx-5.10-android13-qpr3android-gs-felix-5.10-android13-qpr3-candroid-gs-felix-5.10-android13-qpr3android-gs-bluejay-5.10-t-qpr3-beta-3android-gs-bluejay-5.10-t-qpr3-beta-2android-gs-bluejay-5.10-android13-qpr3PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I022b2f47f00a05d2fd2d9f54c1e6bd3c0288b66d Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-01-12misc: cs40l25: Use strscpy to write the bufferandroid-t-qpr2-beta-3_r0.5android-t-qpr2-beta-3_r0.4android-t-qpr2-beta-3_r0.3android-t-qpr2-beta-3.2_r0.6android-t-qpr2-beta-3.2_r0.5android-13.0.0_r0.91android-13.0.0_r0.77android-13.0.0_r0.75android-13.0.0_r0.74android-13.0.0_r0.73android-13.0.0_r0.70android-13.0.0_r0.69android-13.0.0_r0.68android-13.0.0_r0.64android-gs-tangorpro-5.10-android13-d2android-gs-raviole-5.10-android13-qpr2-betaandroid-gs-raviole-5.10-android13-qpr2android-gs-pantah-5.10-t-qpr2-beta-3.2android-gs-pantah-5.10-android13-qpr2-betaandroid-gs-pantah-5.10-android13-qpr2android-gs-lynx-5.10-android13-qpr2-bandroid-gs-bluejay-5.10-t-qpr2-beta-3android-gs-bluejay-5.10-android13-qpr2-betaandroid-gs-bluejay-5.10-android13-qpr2Chase Wu
Use strscpy to write to the buffer in cs40l2x_cp_trigger_queue_show to avoid writing incorrect addresses using snprintf. Also, checking to see if the input trigger queue string is too large. Bug: 224000736 Test: push a poc file and check the log Change-Id: Id46d8a0dbe8eea188362e4f2ca54ccbd720d2bc8 Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com> Signed-off-by: Chase Wu <chasewu@google.com>
2023-01-08Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcandroid-u-preview-2_r0.4android-u-preview-2_r0.3android-gs-pantah-5.10-u-preview-2android-gs-bluejay-5.10-u-preview-2PixelBot AutoMerger
SBMerger: 478053055 Change-Id: Iaa3ec317767567568e2725ba5ebd66a35a6b3166 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-01-03cs35l41: extend the number of fast switch configandroid-t-qpr3-beta-1_r0.4android-t-qpr3-beta-1_r0.3android-t-qpr3-beta-1_r0.1android-13.0.0_r0.93android-gs-raviole-5.10-android13-qpr3-beta1android-gs-felix-5.10-android13-d3android-gs-bluejay-5.10-android13-qpr3-beta1Robert Lee
Bug: 260653033 Test: builds Change-Id: I7217a0f6ca9d725f0f842873a430507a196499d2 Signed-off-by: Robert Lee <lerobert@google.com>
2023-01-01Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcandroid-u-preview-1_r0.3android-gs-bluejay-5.10-u-preview-1PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I7557b9f0d7949f2c2d94fa9de5ab3435621f291f Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-12-19cs40l26: Performance improvement for short haptic effect and GPIOChase Wu
sensing rule 1. Remove lock in vibe state sysfd Since HAL will only read this attribute after sysfs_nofity is called, removing the mutex_lock to mitigate the chances that HAL only get the stopped state in triggering the back-to-back short haptic effect (e.g. TICK effct). 2. Disable falling edge GPIO sensing Extend the GPIO trigger mask to ignore GPIO1 falling edge as well. In this way, chip will not waste it's resource to monitor the GPIO falling edge change and rise the IRQ to driver, then do nothing. Bug: 262491181 Test: Manually trigger light_tick and check logs Change-Id: Ie721b804c73f89d4875da17c41c5ac463b59fde8 Signed-off-by: Chase Wu <chasewu@google.com>
2022-11-13Merge android13-gs-pixel-5.10-tm-qpr3 into android13-gs-pixel-5.10-udcandroid-u-preview-1_r0.4android-u-preview-1_r0.2android-gs-raviole-5.10-u-preview-1android-gs-pantah-5.10-u-preview-1PixelBot AutoMerger
SBMerger: 478053055 Change-Id: I7a9eb61e686ac64e6d1a1432eab859ff01b8c673 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-13Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr3PixelBot AutoMerger
SBMerger: 478053055 Change-Id: Ic312698f8971c7427cbc5b0ed778817becdc9007 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-11-10amcs: support variant speaker elememntsandroid-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.4android-t-qpr2-beta-2_r0.3android-t-qpr2-beta-1_r0.6android-t-qpr2-beta-1_r0.5android-t-qpr2-beta-1_r0.4android-13.0.0_r0.76android-gs-raviole-5.10-t-qpr2-beta-1android-gs-pantah-5.10-t-qpr2-beta-1android-gs-lynx-5.10-android13-d4android-gs-bluejay-5.10-t-qpr2-beta-1Roger Fang
Change speaker statistics to variant numbers up to 4. Bug: 248451580 Test: Manually test passed Change-Id: Ie287d8ee615a98a99fb07933813533c4312f9f3c Signed-off-by: Roger Fang <rogerfang@google.com>
2022-11-03amcs: add cca_rate sysfsRoger Fang
Add sysfs for CCA metrics API. Bug: 249225148 Test: manually test passed Signed-off-by: Roger Fang <rogerfang@google.com> Change-Id: I32af297b2e26505123b862ef25286e6a1791c484
2022-10-30Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-udcPixelBot AutoMerger
SBMerger: 478053055 Change-Id: I2ae72a1dacfbc4061304f626ef5cc3d071f2f928 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-10-25cs40l26: version tag: cs40l26 v5.6.3 and cl_dsp v3.1.10Tai Kuo
Bug: 254810265 Test: Build pass. Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Idd1207cce9baa35f9f11de4e7331d6d276c16e28
2022-10-24cs40l26: remove unused is_ram and is_rom APITai Kuo
Bug: 254810265 Test: Build pass Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I2c661e61c37fe75c055abb6cef89a93caa32ae73
2022-10-24cs40l26: merge cs40l26 v5.6.3 for firmware RAM18Tai Kuo
Merge Cirrus kernel driver (tag cs40l26 v5.6.3) for firmware RAM18 (v7.2.42 (runtime) & v1.1.34 (calib)) Branch: v5.15-cirrus-dsp-fw and v5.15-cs40l26 Tag: cs40l26-v5.6.3_5.15 Files: drivers/firmware/cirrus/cl_dsp.c (No changes) include/linux/firmware/cirrus/cl_dsp.h (No changes) drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c (No changes) drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) Features: - Set GPI trigger duration during mapping Bug fixes: - Remapped GPI not working Commits: 498efc6 input: cs40l26: Modify handling of GPI mapping c8e0e13 input: cs40l26: Set duration for GPI triggered events Bug: 254810265 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I4e21ceae7ba76559cc4416502e5485fc8fd4509d
2022-10-24cs40l26: merge cs40l26 v5.5.0, 5.6.0, 5.6.1 and dsp v3.1.10Tai Kuo
Branch: v5.15-cirrus-dsp-fw and v5.15-cs40l26 Tag: cl-dsp-fw-v3.1.10_5.15, cs40l26-v5.6.1_5.15, cs40l26-v5.6.0_5.15 and cs40l26-v5.5.0_5.15 Files: drivers/firmware/cirrus/cl_dsp.c include/linux/firmware/cirrus/cl_dsp.h drivers/input/misc/cs40l26-i2c.c drivers/input/misc/cs40l26-spi.c drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c ... Tag: cl-dsp-fw-v3.1.10_5.10: Cirrus DSP Firmware Driver v3.1.10 - Error reporting from memchunk functions - Resolved issues causing KASAN warnings - Improved code readability Commits: b8c9ea5 firmware: cirrus: Add function cl_dsp_wavetable_check() 2e99074 firmware: cirrus: Use strscpy() instead of memcpy() for string copy 7b1080c firmware: cirrus: Incorporate ERR_PTR and related macros 0642715 firmware: cirrus: Add memchunk_read error reporting 00861ea Revert "firmware: cirrus: Add memchunk_read error reporting" 02deb1b firmware: cirrus: Add memchunk_read error reporting ... Tag: cs40l26-v5.6.1_5.10: CS40L26 v5.6.1 Bug fixes: - Resolve potential for NULL pointer derefence leading to kernel panic Commits: cd45047 input: cs40l26: Fix dangling pointer 59aea6b input: cs40l26: Check for empty list ... Tag: cs40l26-v5.6.0_5.10: CS40L26 v5.6.0 Features: - Load SVC tuning file when calibration firmware is loaded Bug fixes: - Avoid possibility of infinite loop in asp_start() - Remove PDATA_PRESENT check to set DT properties correctly - Prevent user from starting calibration if calibration firmware is not loaded - Explicitly prevent user from editing OWT effects - Address KASAN warnings Commits: 8d8ec58 input: cs40l26: Fix typo in sysfs file header a2bb173 input: cs40l26: Re-format lines > 80 characters e98056f input: cs40l26: Load SVC tuning file along with calib. F/W db62b28 input: cs40l26: Disallow editing of Open Wavetable effects 4b1cac8 input: cs40l26: Remove extraneous lines 8a2f865 input: cs40l26: Disallow calibration if correct firmware not loaded 074b436 input: cs40l26: Fix DT property not being set e2f016b input: cs40l26: Remove regmap writes before DSP start 8542587 input: cs40l26: Incorporate ERR_PTR and related macros d8d24a4 input: cs40l26: Avoid infinite loop in asp_start a6b6046 input: cs40l26: Add memchunk_read error reporting ... Tag: cs40l26-v5.5.0_5.10: CS40L26 v5.5.0 Features: - Move SVC LE Estimation procedure from probe time to runtime - API CHANGE: svc_le_stored added as a sysfs control Bug fixes: - OWT Nested Composites were not expanding properly - Added missing documentation from .yaml file cirrus,fw-defer (Skip) - Remove check of logger source count when performing BEMF, VBST, or VMON logging Commits: d79fc88 Documentation: cs40l26: Add documentation for cirrus,fw-defer (Skip) d0744f7 ASoC: cs40l26: Add pm_enter/pm_exit functions 69cc3fb input: cs40l26: Add pm_enter/pm_exit functions f1d7c12 input: cs40l26: Fix typo in SVC algo ID macro d9eb712 ASoC: cs40l26: Add dmesg for a2h tuning file load fdad29f input: cs40l26: Remove check for logger src count 432dacf ASoC: cs40l26: Update year in header comments abb2a2c input: cs40l26: Update year in header comments 2eb2548 input: cs40l26: Remove unneeded function call 53c5613 input: cs40l26: Avoid pm teardown if fw is not loaded b44e61d ASoC: cs40l26: Fix mutex and pm_runtime in kcontrols 00be432 input: cs40l26: Add support for Le est on production line 35bfaee input: cs40l26: Remove le est from tuning select 849939b input: cs40l26: Clamp effects_in_flight to minimum of 0 Bug: 249456529 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I262c3d4dd3d5205cc0cd1228f9f67607a86b2cb1
2022-10-24cs40l26: adjust bus retry count from 100 to 3Tai Kuo
Bug: 236659376 Test: add test logs to display the count setting Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I0cdf84a90e3ddae2b88a756a9198bb3e2ac6a3c0
2022-10-23Merge android13-gs-pixel-5.10-tm-qpr2 into android13-gs-pixel-5.10-udcPixelBot AutoMerger
SBMerger: 478053055 Change-Id: I40c7def02800b7197d146419cb3a721a0be5fbd3 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-09-30Merge android13-gs-pixel-5.10-gs101-tm-qpr2 into android13-gs-pixel-5.10-tm-qpr2Lucas Wei
Bug: 238399460 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I3e933274a262ec8e3246e7e0c7c075b426d64cff
2022-09-22cs35l41: add more debug info when failed to set mailboxandroid-t-qpr1-beta-3_r0.4android-t-qpr1-beta-3_r0.3android-13.0.0_r0.59android-13.0.0_r0.58android-13.0.0_r0.54android-13.0.0_r0.53android-13.0.0_r0.49android-13.0.0_r0.48main-16k-gs-raviole-5.10android-gs-raviole-5.10-android13-qpr1-beta-3android-gs-raviole-5.10-android13-qpr1android-gs-bluejay-5.10-android13-qpr1-beta-3android-gs-bluejay-5.10-android13-qpr1Robert Lee
Bug: 231382694 Test: builds Change-Id: Ia59bdbca00e7167a08fddcb61d4cb551bb1a9fe0 Signed-off-by: Robert Lee <lerobert@google.com>
2022-09-22cs35l41: add more debug info when failed to set mailboxandroid-t-qpr1-beta-3_r0.5android-t-qpr1-beta-3.1_r0.1android-13.0.0_r0.60android-13.0.0_r0.55android-13.0.0_r0.50android-gs-pantah-5.10-t-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1-beta-3android-gs-pantah-5.10-android13-qpr1Robert Lee
Bug: 231382694 Test: builds Change-Id: Ia59bdbca00e7167a08fddcb61d4cb551bb1a9fe0 Signed-off-by: Robert Lee <lerobert@google.com>
2022-08-22amcs: add ams_rate sysfsandroid-t-qpr1-beta-2_r0.5android-t-qpr1-beta-2_r0.4android-gs-raviole-5.10-t-qpr1-beta-2android-gs-bluejay-5.10-t-qpr1-beta-2Roger Fang
Add sysfs for AMS metrics API. Bug: 222428306 Test: manually test passed Signed-off-by: Roger Fang <rogerfang@google.com> Change-Id: Icb4a5e7638dda168cf9cf2a6ecb13a33f0499b3d
2022-08-19amcs: add ams_rate sysfsRoger Fang
Add sysfs for AMS metrics API. Bug: 222428306 Test: manually test passed Signed-off-by: Roger Fang <rogerfang@google.com> Change-Id: Icb4a5e7638dda168cf9cf2a6ecb13a33f0499b3d
2022-07-25cs40l26: merge cs40l26 v5.3.0Tai Kuo
Branch: v5.10-cs40l26 Tag: cs40l26-v5.3.0_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c (No changes) drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) Features: - Support for maintenance firmware revisions dating back to Rev. 39.2.22 Bug fixes: - Disallow erase call if a haptic effect is in-flight. This allows the driver maintain correct number of loaded effects when firmware fails to delete waveform if the delete is attempted when haptics playback is active. - Minor code update to handle potential failure of memchunk read from CL DSP FW driver. Commits: 6e36db4 input: cs40l26: Rollback minimum fw revision for maintenance fw 77a5ce5 input: cs40l26: Handle memchunk read failure 20efcc3 input: cs40l26: Ensure effect to be erased is not in-flight Bug: 237047104 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Iad33742ad694ea9ed5987dc617e64fca0044f7c7
2022-07-25Revert "cs40l26: fix back-to-back OWT effects make OWT malfunction"Tai Kuo
This reverts commit 1dcf4405cceab9a3701a9d4f4822628502a5322e. Bug: 237047104 Test: n/a Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I1c6c09e30975340b15b446fb3fd671954c886f01
2022-06-24cs40l26: merge cs40l26 v5.3.0android-t-qpr1-beta-1_r0.3android-gs-raviole-5.10-android13-qpr1-betaTai Kuo
Branch: v5.10-cs40l26 Tag: cs40l26-v5.3.0_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c (No changes) drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) Features: - Support for maintenance firmware revisions dating back to Rev. 39.2.22 Bug fixes: - Disallow erase call if a haptic effect is in-flight. This allows the driver maintain correct number of loaded effects when firmware fails to delete waveform if the delete is attempted when haptics playback is active. - Minor code update to handle potential failure of memchunk read from CL DSP FW driver. Commits: 6e36db4 input: cs40l26: Rollback minimum fw revision for maintenance fw 77a5ce5 input: cs40l26: Handle memchunk read failure 20efcc3 input: cs40l26: Ensure effect to be erased is not in-flight Bug: 237047104 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Test: atest VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Iad33742ad694ea9ed5987dc617e64fca0044f7c7
2022-06-24Revert "cs40l26: fix back-to-back OWT effects make OWT malfunction"Tai Kuo
This reverts commit 1dcf4405cceab9a3701a9d4f4822628502a5322e. Bug: 237047104 Test: n/a Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: I1c6c09e30975340b15b446fb3fd671954c886f01
2022-06-12Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1PixelBot AutoMerger
SBMerger: 442815275 Change-Id: I92be419165768b6f0778b7b32ce633bb8923e968 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-12Merge android13-gs-pixel-5.10-gs101-tm into ↵android-t-qpr1-beta-1_r0.4android-gs-bluejay-5.10-android13-qpr1-betaPixelBot AutoMerger
android13-gs-pixel-5.10-gs101-tm-qpr1 SBMerger: 442815275 Change-Id: I5b069ede81c354410d7b1e631eb4ff2719e78126 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-06-07cs40l26: fix back-to-back OWT effects make OWT malfunctionandroid-t-beta-4_r0.6android-t-beta-4_r0.5android-t-beta-4_r0.4android-t-beta-3.3_r0.4android-13.0.0_r0.5android-13.0.0_r0.44android-13.0.0_r0.43android-13.0.0_r0.4android-13.0.0_r0.20android-13.0.0_r0.19android-13.0.0_r0.15android-13.0.0_r0.14android-gs-raviole-5.10-t-beta-4android-gs-raviole-5.10-t-beta-3android-gs-raviole-5.10-android13android-gs-bluejay-5.10-t-beta-4android-gs-bluejay-5.10-android13Tai Kuo
Vendor commit: 0cd0ba7 input: cs40l26: Ensure effect to be erased is not in-flight Bug: 231410838 Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ib8d3ef2885c4b25cac208a09ea8786ba2190d655
2022-06-07cs40l26: fix back-to-back OWT effects make OWT malfunctionandroid-13.0.0_r0.45android-13.0.0_r0.32android-13.0.0_r0.31android-gs-pantah-5.10-android13-d1Tai Kuo
Vendor commit: 0cd0ba7 input: cs40l26: Ensure effect to be erased is not in-flight Bug: 231410838 Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ib8d3ef2885c4b25cac208a09ea8786ba2190d655
2022-06-06Merge android13-gs-pixel-5.10-tm-d1 into android13-gs-pixel-5.10-tm-qpr1Robin Peng
Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: I95ee56dc3e5d5b5c1e95974504e185c89dac4781
2022-06-06Merge android13-gs-pixel-5.10-gs101-tm into ↵Robin Peng
android13-gs-pixel-5.10-gs101-tm-qpr1 Bug: 233569354 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Ief5924956895e216298d678f366880435319a3ea
2022-05-31cs40l26: merge cs40l26 v5.2.1android-t-beta-3.2_r0.4Tai Kuo
Branch: v5.10-cs40l26 Tag: cs40l26-v5.2.1_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c Features: - Add vpbr_thld sysfs control - Add svc_le_est sysfs control in calibration directory Bug fixes: - Fix issue where invert and SVC were not applied to streaming data on first playback - Fix vibe_state issue when stopping an SVC effect immediately after triggering - Work around PSEQ_WRITE_REG full sign extention bug - Fix bug in SVC and invert kcontrols where driver attempts to access control before ensuring device is awake Major API changes: - None Commits: 217a3c0 ASoC: cs40l26: Use pm_runtime for kcontrols b6e471f ASoC: cs40l26: Report return value upon PM Runtime Resume Failure 112d30b input: cs40l26: Report return value upon PM Runtime Resume Failure 0b5f633 ASoC: cs40l26: PM Resume error handle for CODEC 40792b3 input: cs40l26: Improvements to SVC Le Estimation fc06825 input: cs40l26: Support for maintenance firmware branch 3952b3b input: cs40l26: Address PSEQ WRITE_FULL issue aaaf562 input: cs40l26: Add sysfs control for vpbr_thld caa3f56 input: cs40l26: Move stop delay outside mutex (Skip) 63b3998 Documentation: cs40l26: Fix timeout maximum values 2075e2f ASoC: cs40l26: Move PMU-time register writes to mixer controls (Skip) e376a83 Documentation: cs40l26: Fix "cirrus,redc-default" calculation 0bb9162 ASoC: cs40l26: Use set_pll_loop() during RECLK config 4b341ed input: cs40l26: Avoid DSP lock during driver probe Bug: 231410838 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ide206f8ea173e79267fa4506dece31f6e26a9356
2022-05-31cs40l26: merge dsp v3.1.8 and cs40l26 v5.1.1Tai Kuo
Branch: v5.10-cirrus-dsp-fw Tag: cl-dsp-fw-v3.1.8_5.10 Files: drivers/firmware/cirrus/cl_dsp.c include/linux/firmware/cirrus/cl_dsp.h (No changes) Features: - Add error print statement in case of the firmware controls linked list being empty. Commits: 3bbeced firmware: cirrus: Add print for empty list error condition ... Branch: v5.10-cs40l26 Tag: cs40l26-v5.1.1_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) Features: - Support for reverse frequency sweep in F0 and Q-factor calibration - Add ability to load calibration firmware at boot time - Improved firmware loading procedure, code readability - Support for PWLE zero-crossing - Support for Dynamic Boost Control via devicetree defaults Bug fixes: - f0_and_q_cal_time_ms can be read directly from "TONE_DURATION_MS" if it is non-zero. In the case where this was zero, the calculation for the time was incorrect. - Avoid race condition in case where an effect is stopped prior to the DSP registering the start of playback and vibe_state reporting is enabled. Major API changes: - Devicetree controls for default DBC parameters "cirrus,dbc-*" added. - The sysfs control "f0_and_q_cal_time_ms" now has support for negative (i.e. reverse frequency sweep) values. This is dependent on the "FREQ_SPAN" firmware control which can only be set via the calibration tuning file. - Devicetree boolean "cirrus,pwle-zero-cross-en" added. Enables to PWLE zero-cross feature. - Devicetree boolean "cirrus,calib-fw" added; loads calibration instead of runtime firmware at boot. - Devicetree boolean "cirrus,vibe-state" removed. The driver will automatically detect whether or not to enable vibe_state tracking. Commits: 24187f6 input: cs40l26: Support negative FREQ_SPAN values 3bc43e3 Documentation: cs40l26: Remove cirrus,vibe-state devicetree entry bce94c1 input: cs40l26: Remove cirrus,vibe-state devicetree entry 2040c5c Documentation: cs40l26: Load calibration firmware at boot c88c071 input: cs40l26: Load calibration firmware at boot 16cb878 input: cs40l26: Refactor firmware loading procedure f63db44 Documentation: cs40l26: Add PWLE zero crossing control 870ac63 input: cs40l26: Add PWLE zero crossing control da51a2d input: cs40l26: Add support for SVC metadata in OWT 61e85dc Documentation: cs40l26: Default Dynamic Boost Control Settings 059a235 input: cs40l26: Default Dynamic Boost Control Settings 39324ea input: cs40l26: Update reporting of calibration time Bug: 231410838 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ib2f99f67469f67be0ce33ac031e553a409a569e4
2022-05-31cs40l26: merge cs40l26 v5.2.1Tai Kuo
Branch: v5.10-cs40l26 Tag: cs40l26-v5.2.1_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c Features: - Add vpbr_thld sysfs control - Add svc_le_est sysfs control in calibration directory Bug fixes: - Fix issue where invert and SVC were not applied to streaming data on first playback - Fix vibe_state issue when stopping an SVC effect immediately after triggering - Work around PSEQ_WRITE_REG full sign extention bug - Fix bug in SVC and invert kcontrols where driver attempts to access control before ensuring device is awake Major API changes: - None Commits: 217a3c0 ASoC: cs40l26: Use pm_runtime for kcontrols b6e471f ASoC: cs40l26: Report return value upon PM Runtime Resume Failure 112d30b input: cs40l26: Report return value upon PM Runtime Resume Failure 0b5f633 ASoC: cs40l26: PM Resume error handle for CODEC 40792b3 input: cs40l26: Improvements to SVC Le Estimation fc06825 input: cs40l26: Support for maintenance firmware branch 3952b3b input: cs40l26: Address PSEQ WRITE_FULL issue aaaf562 input: cs40l26: Add sysfs control for vpbr_thld caa3f56 input: cs40l26: Move stop delay outside mutex (Skip) 63b3998 Documentation: cs40l26: Fix timeout maximum values 2075e2f ASoC: cs40l26: Move PMU-time register writes to mixer controls (Skip) e376a83 Documentation: cs40l26: Fix "cirrus,redc-default" calculation 0bb9162 ASoC: cs40l26: Use set_pll_loop() during RECLK config 4b341ed input: cs40l26: Avoid DSP lock during driver probe Bug: 231410838 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ide206f8ea173e79267fa4506dece31f6e26a9356
2022-05-31cs40l26: merge cs40l26 v5.2.1Tai Kuo
Branch: v5.10-cs40l26 Tag: cs40l26-v5.2.1_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c Features: - Add vpbr_thld sysfs control - Add svc_le_est sysfs control in calibration directory Bug fixes: - Fix issue where invert and SVC were not applied to streaming data on first playback - Fix vibe_state issue when stopping an SVC effect immediately after triggering - Work around PSEQ_WRITE_REG full sign extention bug - Fix bug in SVC and invert kcontrols where driver attempts to access control before ensuring device is awake Major API changes: - None Commits: 217a3c0 ASoC: cs40l26: Use pm_runtime for kcontrols b6e471f ASoC: cs40l26: Report return value upon PM Runtime Resume Failure 112d30b input: cs40l26: Report return value upon PM Runtime Resume Failure 0b5f633 ASoC: cs40l26: PM Resume error handle for CODEC 40792b3 input: cs40l26: Improvements to SVC Le Estimation fc06825 input: cs40l26: Support for maintenance firmware branch 3952b3b input: cs40l26: Address PSEQ WRITE_FULL issue aaaf562 input: cs40l26: Add sysfs control for vpbr_thld caa3f56 input: cs40l26: Move stop delay outside mutex (Skip) 63b3998 Documentation: cs40l26: Fix timeout maximum values 2075e2f ASoC: cs40l26: Move PMU-time register writes to mixer controls (Skip) e376a83 Documentation: cs40l26: Fix "cirrus,redc-default" calculation 0bb9162 ASoC: cs40l26: Use set_pll_loop() during RECLK config 4b341ed input: cs40l26: Avoid DSP lock during driver probe Bug: 231410838 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ide206f8ea173e79267fa4506dece31f6e26a9356
2022-05-31cs40l26: merge dsp v3.1.8 and cs40l26 v5.1.1Tai Kuo
Branch: v5.10-cirrus-dsp-fw Tag: cl-dsp-fw-v3.1.8_5.10 Files: drivers/firmware/cirrus/cl_dsp.c include/linux/firmware/cirrus/cl_dsp.h (No changes) Features: - Add error print statement in case of the firmware controls linked list being empty. Commits: 3bbeced firmware: cirrus: Add print for empty list error condition ... Branch: v5.10-cs40l26 Tag: cs40l26-v5.1.1_5.10 Files: drivers/input/misc/cs40l26-i2c.c (No changes) drivers/input/misc/cs40l26-spi.c (No changes) drivers/input/misc/cs40l26-sysfs.c drivers/input/misc/cs40l26-tables.c (No changes) drivers/input/misc/cs40l26.c include/linux/mfd/cs40l26.h sound/soc/codecs/cs40l26.c -> cs40l26-codec.c (No changes) Features: - Support for reverse frequency sweep in F0 and Q-factor calibration - Add ability to load calibration firmware at boot time - Improved firmware loading procedure, code readability - Support for PWLE zero-crossing - Support for Dynamic Boost Control via devicetree defaults Bug fixes: - f0_and_q_cal_time_ms can be read directly from "TONE_DURATION_MS" if it is non-zero. In the case where this was zero, the calculation for the time was incorrect. - Avoid race condition in case where an effect is stopped prior to the DSP registering the start of playback and vibe_state reporting is enabled. Major API changes: - Devicetree controls for default DBC parameters "cirrus,dbc-*" added. - The sysfs control "f0_and_q_cal_time_ms" now has support for negative (i.e. reverse frequency sweep) values. This is dependent on the "FREQ_SPAN" firmware control which can only be set via the calibration tuning file. - Devicetree boolean "cirrus,pwle-zero-cross-en" added. Enables to PWLE zero-cross feature. - Devicetree boolean "cirrus,calib-fw" added; loads calibration instead of runtime firmware at boot. - Devicetree boolean "cirrus,vibe-state" removed. The driver will automatically detect whether or not to enable vibe_state tracking. Commits: 24187f6 input: cs40l26: Support negative FREQ_SPAN values 3bc43e3 Documentation: cs40l26: Remove cirrus,vibe-state devicetree entry bce94c1 input: cs40l26: Remove cirrus,vibe-state devicetree entry 2040c5c Documentation: cs40l26: Load calibration firmware at boot c88c071 input: cs40l26: Load calibration firmware at boot 16cb878 input: cs40l26: Refactor firmware loading procedure f63db44 Documentation: cs40l26: Add PWLE zero crossing control 870ac63 input: cs40l26: Add PWLE zero crossing control da51a2d input: cs40l26: Add support for SVC metadata in OWT 61e85dc Documentation: cs40l26: Default Dynamic Boost Control Settings 059a235 input: cs40l26: Default Dynamic Boost Control Settings 39324ea input: cs40l26: Update reporting of calibration time Bug: 231410838 Test: Copy texts and adjust alarm Test: NFC, dumpstate, keyboard vibration Test: idlcli commands Test: Switch firmware continuous Test: Switch firmware and check the first tick effect Signed-off-by: Tai Kuo <taikuo@google.com> Change-Id: Ib2f99f67469f67be0ce33ac031e553a409a569e4