mbox series

[SRU,OEM-5.17,00/10] alsa: enable the cirrus-logic side-codec to make the speaker output sound

Message ID 20220420094132.7732-1-hui.wang@canonical.com
Headers show
Series alsa: enable the cirrus-logic side-codec to make the speaker output sound | expand

Message

Hui Wang April 20, 2022, 9:41 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1965496

The fix was applied to jammy and oem-5.14 already, the oem-5.17 needs
to apply the 10 patches in this SRU. And linux-5.18-rc1 already has
all patches so no need to send SRU to unstable.

[Impact]
We have a couple of lenovo latops models which have cirrus-logic side
codec between realtek codec and speaker, it plays a role as amplifier,
we need to enable this side-codec, otherwise the speaker can't output
sound.

[Fix]
Backport codec patches and some i2c and acpi detection patches from
mainline kernel and linux-next

[Test]
boot the patched kernel, run speaker test, both left and right channel
could work well.

[Where problems could occur]
If it could introduce regression, it will be on soc wm_adsp codec
drivers, since most of patch are adding new codec drivers, it will
not touch existing codec drivers. If a machine with wm_adsp codec
can't output sound or record sound, it means this SRU introduce
the regression on wm_adsp driver, but this possibility is very
low, since all patches are picked from mainline kernel.

Hui Wang (1):
  UBUNTU: [Config]: enable SERIAL_MULTI_INSTANTIATE

Lucas Tanure (4):
  platform/x86: i2c-multi-instantiate: Rename it for a generic serial
    driver name
  platform/x86: serial-multi-instantiate: Reorganize I2C functions
  ALSA: hda/realtek: Add support for HP Laptops
  ACPI / scan: Create platform device for CS35L41

Stefan Binding (5):
  spi: Make spi_alloc_device and spi_add_device public again
  spi: Create helper API to lookup ACPI info for spi device
  spi: Support selection of the index of the ACPI Spi Resource before
    alloc
  spi: Add API to count spi acpi resources
  platform/x86: serial-multi-instantiate: Add SPI support

 MAINTAINERS                                   |   4 +-
 debian.oem/abi/amd64/oem.modules              |   1 -
 debian.oem/config/annotations                 |   5 +-
 debian.oem/config/config.common.ubuntu        |   2 +-
 drivers/acpi/scan.c                           |  16 +-
 drivers/platform/x86/Kconfig                  |  12 +-
 drivers/platform/x86/Makefile                 |   2 +-
 drivers/platform/x86/i2c-multi-instantiate.c  | 174 ---------
 .../platform/x86/serial-multi-instantiate.c   | 348 ++++++++++++++++++
 drivers/spi/spi.c                             | 137 ++++++-
 include/linux/spi/spi.h                       |  20 +
 sound/pci/hda/patch_realtek.c                 |  43 ++-
 12 files changed, 555 insertions(+), 209 deletions(-)
 delete mode 100644 drivers/platform/x86/i2c-multi-instantiate.c
 create mode 100644 drivers/platform/x86/serial-multi-instantiate.c

Comments

Timo Aaltonen April 22, 2022, 8:26 a.m. UTC | #1
Hui Wang kirjoitti 20.4.2022 klo 12.41:
> BugLink: https://bugs.launchpad.net/bugs/1965496
> 
> The fix was applied to jammy and oem-5.14 already, the oem-5.17 needs
> to apply the 10 patches in this SRU. And linux-5.18-rc1 already has
> all patches so no need to send SRU to unstable.
> 
> [Impact]
> We have a couple of lenovo latops models which have cirrus-logic side
> codec between realtek codec and speaker, it plays a role as amplifier,
> we need to enable this side-codec, otherwise the speaker can't output
> sound.
> 
> [Fix]
> Backport codec patches and some i2c and acpi detection patches from
> mainline kernel and linux-next
> 
> [Test]
> boot the patched kernel, run speaker test, both left and right channel
> could work well.
> 
> [Where problems could occur]
> If it could introduce regression, it will be on soc wm_adsp codec
> drivers, since most of patch are adding new codec drivers, it will
> not touch existing codec drivers. If a machine with wm_adsp codec
> can't output sound or record sound, it means this SRU introduce
> the regression on wm_adsp driver, but this possibility is very
> low, since all patches are picked from mainline kernel.
> 
> Hui Wang (1):
>    UBUNTU: [Config]: enable SERIAL_MULTI_INSTANTIATE
> 
> Lucas Tanure (4):
>    platform/x86: i2c-multi-instantiate: Rename it for a generic serial
>      driver name
>    platform/x86: serial-multi-instantiate: Reorganize I2C functions
>    ALSA: hda/realtek: Add support for HP Laptops
>    ACPI / scan: Create platform device for CS35L41
> 
> Stefan Binding (5):
>    spi: Make spi_alloc_device and spi_add_device public again
>    spi: Create helper API to lookup ACPI info for spi device
>    spi: Support selection of the index of the ACPI Spi Resource before
>      alloc
>    spi: Add API to count spi acpi resources
>    platform/x86: serial-multi-instantiate: Add SPI support
> 
>   MAINTAINERS                                   |   4 +-
>   debian.oem/abi/amd64/oem.modules              |   1 -
>   debian.oem/config/annotations                 |   5 +-
>   debian.oem/config/config.common.ubuntu        |   2 +-
>   drivers/acpi/scan.c                           |  16 +-
>   drivers/platform/x86/Kconfig                  |  12 +-
>   drivers/platform/x86/Makefile                 |   2 +-
>   drivers/platform/x86/i2c-multi-instantiate.c  | 174 ---------
>   .../platform/x86/serial-multi-instantiate.c   | 348 ++++++++++++++++++
>   drivers/spi/spi.c                             | 137 ++++++-
>   include/linux/spi/spi.h                       |  20 +
>   sound/pci/hda/patch_realtek.c                 |  43 ++-
>   12 files changed, 555 insertions(+), 209 deletions(-)
>   delete mode 100644 drivers/platform/x86/i2c-multi-instantiate.c
>   create mode 100644 drivers/platform/x86/serial-multi-instantiate.c
> 

applied to oem-5.17, patch 08 was already applied for another bug