[SRU] [PULL] [OEM-5.17] Add cs35l41 firmware loading support

Kai-Heng Feng kai.heng.feng at canonical.com
Wed Nov 9 12:03:41 UTC 2022


BugLink: https://bugs.launchpad.net/bugs/1995957

[Impact]
Speakers on some laptops are rather quiet even with max volume.

[Fix]
Loading firmware to make cs35l41 speaker amplifier really work.

[Test]
With the fix applied, the speaker has become really loud as intended.

[Where problems could occur]
Most commits are refactoring codes on both ASoC and HDA parts, so things
can be missed.

Other than that, the change is strictly limited to cs35l41, so the
regression scope is rather narrow.

---

The following changes since commit 877df40ea56862984d6bbbd2d589f222d45044a6:

  UBUNTU: Ubuntu-oem-5.17-5.17.0-1021.22 (2022-11-02 12:30:18 +0100)

are available in the Git repository at:

  https://git.launchpad.net/~kaihengfeng/+git/linux cs35l41-5.17

for you to fetch changes up to f2e557dceb373a8534d1f16217ad3cb38020016d:

  UBUNTU: [Config] updateconfigs for SND_HDA_CS_DSP_CONTROLS (2022-11-09 14:21:30 +0800)

----------------------------------------------------------------
Andy Shevchenko (4):
      ALSA: hda: cs35l41: Don't dereference fwnode handle
      ALSA: hda: cs35l41: Allow compilation test on non-ACPI configurations
      ALSA: hda: cs35l41: Drop wrong use of ACPI_PTR()
      ALSA: hda: cs35l41: Consolidate selections under SND_HDA_SCODEC_CS35L41

David Rhodes (1):
      ASoC: cs35l41: Document CS35l41 External Boost

Kai-Heng Feng (1):
      UBUNTU: [Config] updateconfigs for SND_HDA_CS_DSP_CONTROLS

Lucas Tanure (16):
      ASoC: cs35l41: Remove unnecessary param
      ALSA: cs35l41: Unify hardware configuration
      ALSA: cs35l41: Check hw_config before using it
      ALSA: cs35l41: Move cs35l41_gpio_config to shared lib
      ALSA: hda: cs35l41: Fix I2S params comments
      ALSA: hda: cs35l41: Always configure the DAI
      ALSA: hda: cs35l41: Add Boost type flag
      ALSA: hda: cs35l41: Put the device into safe mode for external boost
      ALSA: hda: cs35l41: Mute the device before shutdown
      ALSA: cs35l41: Enable Internal Boost in shared lib
      ALSA: hda: cs35l41: Move boost config to initialization code
      ALSA: hda: cs35l41: Remove cs35l41_hda_reg_sequence struct
      ALSA: hda: cs35l41: Reorganize log for playback actions
      ALSA: hda: cs35l41: Handle all external boost setups the same way
      ALSA: hda: cs35l41: Move external boost handling to lib for ASoC use
      ASoC: cs35l41: Support external boost

Stefan Binding (25):
      ALSA: hda: cs35l41: Fix error in spi cs35l41 hda driver name
      ALSA: hda: cs35l41: Set Speaker Position for CLSA0100 Laptop
      ALSA: hda: cs35l41: Remove Set Channel Map api from binding
      ALSA: hda: cs35l41: Add Support for Interrupts
      ALSA: hda: cs35l41: Enable GPIO2 Interrupt for CLSA0100 laptops
      ASoC: cs35l41: Move cs35l41_set_cspl_mbox_cmd to shared code
      ASoC: cs35l41: Move cs35l41 fs errata into shared code
      ASoC: cs35l41: Move cs_dsp config struct into shared code
      ALSA: hda: cs35l41: Add Amp Name based on channel and index
      ASoC: cs35l41: Move cs35l41 exit hibernate function into shared code
      ASoC: cs35l41: Add common cs35l41 enter hibernate function
      ASoC: cs35l41: Do not print error when waking from hibernation
      ALSA: hda: hda_cs_dsp_ctl: Add Library to support CS_DSP ALSA controls
      ALSA: hda: hda_cs_dsp_ctl: Add apis to write the controls directly
      ALSA: hda: cs35l41: Save codec object inside component struct
      ALSA: hda: cs35l41: Save Subsystem ID inside CS35L41 Driver
      ALSA: hda: cs35l41: Support reading subsystem id from ACPI
      ALSA: hda: cs35l41: Support multiple load paths for firmware
      ALSA: hda: cs35l41: Support Speaker ID for laptops
      ALSA: hda: cs35l41: Support Hibernation during Suspend
      ALSA: hda: cs35l41: Read Speaker Calibration data from UEFI variables
      ALSA: hda: hda_cs_dsp_ctl: Add fw id strings
      ALSA: hda: cs35l41: Add defaulted values into dsp bypass config sequence
      ALSA: hda: cs35l41: Support Firmware switching and reloading
      ALSA: hda: cs35l41: Add module parameter to control firmware load

Takashi Iwai (1):
      Revert "ALSA: hda: cs35l41: Allow compilation test on non-ACPI configurations"

Vitaly Rodionov (1):
      ALSA: hda: cs35l41: Add initial DSP support and firmware loading

 .../devicetree/bindings/sound/cirrus,cs35l41.yaml  |   44 +-
 MAINTAINERS                                        |    1 +
 debian.oem/config/config.common.ubuntu             |    1 +
 include/sound/cs35l41.h                            |  143 ++-
 sound/pci/hda/Kconfig                              |   10 +-
 sound/pci/hda/Makefile                             |    2 +
 sound/pci/hda/cs35l41_hda.c                        | 1301 +++++++++++++++++---
 sound/pci/hda/cs35l41_hda.h                        |   68 +-
 sound/pci/hda/cs35l41_hda_i2c.c                    |    9 +-
 sound/pci/hda/cs35l41_hda_spi.c                    |   11 +-
 sound/pci/hda/hda_component.h                      |    5 +-
 sound/pci/hda/hda_cs_dsp_ctl.c                     |  240 ++++
 sound/pci/hda/hda_cs_dsp_ctl.h                     |   39 +
 sound/pci/hda/patch_realtek.c                      |   80 +-
 sound/soc/codecs/cs35l41-i2c.c                     |    4 +-
 sound/soc/codecs/cs35l41-lib.c                     |  383 +++++-
 sound/soc/codecs/cs35l41-spi.c                     |    4 +-
 sound/soc/codecs/cs35l41.c                         |  352 ++----
 sound/soc/codecs/cs35l41.h                         |   23 +-
 19 files changed, 2117 insertions(+), 603 deletions(-)
 create mode 100644 sound/pci/hda/hda_cs_dsp_ctl.c
 create mode 100644 sound/pci/hda/hda_cs_dsp_ctl.h



More information about the kernel-team mailing list