Skip to content

ASoC: cs35l56: KUnit tests for ASP register write blocking

Richard Fitzgerald linux-sound lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Populate ASP register values in the mock regmap.
- Don't use KUNIT_ASSERT_*() in the mock regmap read/write callbacks.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: cs35l56: Add KUnit test that widget init doesn't write ASP registerssound/soc/codecs/cs35l56-test.c+337 -50 replies
2/2ASoC: cs35l56-shared: Add KUnit test cases for ASP config register writessound/soc/codecs/cs35l56-shared-test.c+144 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] ASoC: cs35l56: KUnit tests for ASP register write blocking

These two patches are correctness/regression tests for the fixes made by the previous commits:

commit 0085428e834c ("ASoC: cs35l56: Only write ASP1TXn registers when widget is powered-up")

commit 396c5d8075f3 ("ASoC: cs35l56: Fix unwanted writes to ASP config registers")

Richard Fitzgerald (2):
ASoC: cs35l56: Add KUnit test that widget init doesn't write ASP
registers
ASoC: cs35l56-shared: Add KUnit test cases for ASP config register
writes

Changes in V2:
- Populate ASP register values in the mock regmap.
- Don't use KUNIT_ASSERT_*() in the mock regmap read/write callbacks.

Richard Fitzgerald (2):
ASoC: cs35l56: Add KUnit test that widget init doesn't write ASP
registers
ASoC: cs35l56-shared: Add KUnit test cases for ASP config register
writes

 sound/soc/codecs/cs35l56-shared-test.c | 144 +++++++++++
 sound/soc/codecs/cs35l56-test.c        | 342 ++++++++++++++++++++++++-
 2 files changed, 481 insertions(+), 5 deletions(-)
Signature · 1 line
2.47.3