Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Tidy up ASoC control get and put handlers
@ 2025-03-19 17:51 Charles Keepax
  2025-03-19 17:51 ` [PATCH v2 1/3] ASoC: ops: Factor out common code from get callbacks Charles Keepax
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Charles Keepax @ 2025-03-19 17:51 UTC (permalink / raw)
  To: broonie; +Cc: lgirdwood, linux-sound, linux-kernel, patches

There is a lot of duplicated and occasionally slightly incorrect code
around the ASoC control get and put handlers. This series add some kunit
tests and then refactors the code to get all the tests passing and
reduce some of the duplication. The focus here is on the volsw handlers,
future work could still be done on some of the others but these were the
ones that most required attention.

Hopefully the only slightly controversal change is the very last patch
which changes platform_max to be applied after the control type is
determined, more discussion in the commit message for that one.

Thanks,
Charles

Changes since v1:
 - Drop already applied patches
 - Move dropping of a couple of local variables from one patch to
   another to avoid a build warning

Charles Keepax (3):
  ASoC: ops: Factor out common code from get callbacks
  ASoC: ops: Remove some unnecessary local variables
  ASoC: ops: Apply platform_max after deciding control type

 sound/soc/soc-ops.c | 116 +++++++++++++++++++-------------------------
 1 file changed, 49 insertions(+), 67 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-20 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 17:51 [PATCH v2 0/3] Tidy up ASoC control get and put handlers Charles Keepax
2025-03-19 17:51 ` [PATCH v2 1/3] ASoC: ops: Factor out common code from get callbacks Charles Keepax
2025-03-19 17:51 ` [PATCH v2 2/3] ASoC: ops: Remove some unnecessary local variables Charles Keepax
2025-03-19 17:51 ` [PATCH v2 3/3] ASoC: ops: Apply platform_max after deciding control type Charles Keepax
2025-03-20 18:45 ` [PATCH v2 0/3] Tidy up ASoC control get and put handlers Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox