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>
This commit is contained in:
Richard Fitzgerald 2026-03-04 16:24:00 +00:00 • committed by Mark Brown
commit 72e1c47048
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 45 additions and 0 deletions