[PATCH 0/2] ALSA: hda: cs35l56: Handle speaker id GPIOs

From: Richard Fitzgerald
Date: Mon Sep 18 2023 - 05:52:47 EST


Some manufacturers use multiple sources of speakers. Motherboard
GPIOs are set to indicate which type of speaker is fitted so that
the correct tunings can be loaded. Patch #1 adds support for this
and patch #2 adds a KUnit test for the new code.

Richard Fitzgerald (2):
ALSA: hda: cs35l56: Add support for speaker id
ALSA: hda: cirrus_scodec: Add KUnit test

MAINTAINERS | 1 +
sound/pci/hda/Kconfig | 17 ++
sound/pci/hda/Makefile | 4 +
sound/pci/hda/cirrus_scodec.c | 73 ++++++
sound/pci/hda/cirrus_scodec.h | 13 +
sound/pci/hda/cirrus_scodec_test.c | 370 +++++++++++++++++++++++++++++
sound/pci/hda/cs35l56_hda.c | 24 +-
7 files changed, 501 insertions(+), 1 deletion(-)
create mode 100644 sound/pci/hda/cirrus_scodec.c
create mode 100644 sound/pci/hda/cirrus_scodec.h
create mode 100644 sound/pci/hda/cirrus_scodec_test.c

--
2.30.2