From: Mark Brown Date: Tue, 19 Aug 2025 15:54:00 +0000 (+0100) Subject: ASoC: Intel: avs: Code cleanups and separation X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9963b1fde2b6a9a2cb488f2b96427f73f566550d;p=users%2Fhch%2Fmisc.git ASoC: Intel: avs: Code cleanups and separation Merge series from Cezary Rojewski : 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. --- 9963b1fde2b6a9a2cb488f2b96427f73f566550d