]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: Intel: avs: Code cleanups and separation
authorMark Brown <broonie@kernel.org>
Tue, 19 Aug 2025 15:54:00 +0000 (16:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Aug 2025 15:54:00 +0000 (16:54 +0100)
Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:

Set of patches that brings no new functionality but makes it easier to
maintain and read the avs-driver code. There is one 'fix' among them -
the third patch, described below.

First, debug-related code - mainly the data-probing feature - is mixed
with non-debug PCM code. Separate it into debug.h and update the pcm.c
file.

Next, as the probing-board is not tied to any topology file, it shall
not using struct avs_soc_component descriptor but the basic struct
snd_soc_component one. While on the first sight this is just bump in
LOCs, runtime is simplified as no topology checks and related code will
be engaged.

With probing-board addressed and debug code relocated:
- address the component-teardown issues when the
componet->name points to a string which is shared by multiple components
and/or machine boards. devm_kstrdup() makes this go away.

- streamline the naming scheme for the functions engaged in the
components registration. This is purely a readability improvement.


Trivial merge