ASoC: intel: sof_sdw: Only pass codec_conf pointer around
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 26 Mar 2024 16:03:59 +0000 (11:03 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Mar 2024 16:13:23 +0000 (16:13 +0000)
commit961e694749fb8ddb8591512216e2fa6b4e3f42e2
tree3f7d62e39d6e9690c74325bdab527d4af9a5301d
parent1329f5b0d9d0b26021b6bd469a41139b9ccef58a
ASoC: intel: sof_sdw: Only pass codec_conf pointer around

Rather than passing around a pointer to the codec_conf array, an index
into it and a size, simply pass around a pointer to the current codec_conf.
This reduces the amount of state moving around.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240326160429.13560-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c