[PATCH v2 0/3] ALSA: Add support for new HP G12 laptops

From: Richard Fitzgerald
Date: Fri Aug 02 2024 - 11:24:37 EST


Add support for HP G12 laptops that use CS35L54 or CS35L56 amplifiers
with Realtek HDA codecs. Some of these use the same SSID for models with
CS35L54 and models with CS35L56 so the ACPI entries are examined to
determine which amp is present.

To avoid having to #ifdef around this code we've fixed the definitions
of SPI and I2C functions that were not correctly supplying dummy functions
when the real functions are not in the build.

Changes since V1:
Added I2C and SPI patches to provide dummy functions.

Richard Fitzgerald (2):
spi: Add empty versions of ACPI functions
i2c: Fix conditional for substituting empty ACPI functions

Simon Trimmer (1):
ALSA: hda/realtek: Add support for new HP G12 laptops

include/linux/i2c.h | 2 +-
include/linux/spi/spi.h | 19 ++++++-
sound/pci/hda/patch_realtek.c | 99 +++++++++++++++++++++++++++++++++++
3 files changed, 118 insertions(+), 2 deletions(-)

--
2.39.2