]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs35l56: Some KUnit testing of cs35l56_get_speaker_id()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 4 Mar 2026 16:24:00 +0000 (16:24 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2026 15:22:47 +0000 (15:22 +0000)
commit72e1c4704844766c46725d6b043ba04559054d02
tree993265aedde2564bf17dd5234c05bb0f979894d8
parentbae6668c526018af45b70e7825b61e6edb528f41
ASoC: cs35l56: Some KUnit testing of cs35l56_get_speaker_id()

Add some KUnit tests for cs35l56_get_speaker_id().
These only test the simpler cases of reading the speaker ID from
cs_amp_get_vendor_spkid() or the "cirrus,speaker-id" property.

The untested case is reading it from GPIOs, which would require
a dummy implementation of a GPIO driver.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260304162402.1714759-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs-amp-lib.c
sound/soc/codecs/cs35l56-shared-test.c