ASoC: Intel: avs: Fixes and new platforms support
authorMark Brown <broonie@kernel.org>
Wed, 21 Feb 2024 00:52:26 +0000 (00:52 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 21 Feb 2024 00:52:26 +0000 (00:52 +0000)
commitb96ccdcf9d58ed49a576ee9ad10e94e98b9bbb2e
tree414c4252cdb2412fca74353af423b818c67c0800
parent3b4ec34602c562fa8fa59dd8545ac7f3cdfc235e
parent5b417fe0cded0b5917683398e6519aae8045cd40
ASoC: Intel: avs: Fixes and new platforms support

Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:

The avs-driver continues to be utilized on more recent Intel machines.
As TGL-based (cAVS 2.5) e.g.: RPL, inherit most of the functionality
from previous platforms:

SKL <- APL <- CNL <- ICL <- TGL

rather than putting everything into a single file, the platform-specific
bits are split into cnl/icl/tgl.c files instead. Makes the division clear
and code easier to maintain.

Layout of the patchset:

First are two changes combined together address the sound-clipping
problem, present when only one stream is running - specifically one
CAPTURE stream.

Follow up is naming-scheme adjustment for some of the existing functions
what improves code incohesiveness. As existing IPC/IRQ code operates
solely on cAVS 1.5 architecture, it needs no abstraction. The situation
changes when newer platforms come into the picture. Thus the next two
patches abstract the existing IPC/IRQ handlers so that majority of the
common code can be re-used.

The ICCMAX change stands out a bit - the AudioDSP firmware loading
procedure differs on ICL-based platforms (and onwards) and having a
separate commit makes the situation clear to the developers who are
going to support the solution from LTS perspective. For that reason
I decided not to merge it into the commit introducing the icl.c file.
12 files changed:
include/sound/tas2781.h
sound/pci/hda/tas2781_hda_i2c.c
sound/soc/codecs/cs42l43.c
sound/soc/codecs/rt5645.c
sound/soc/codecs/tas2781-comlib.c
sound/soc/intel/avs/Makefile
sound/soc/intel/avs/avs.h
sound/soc/intel/avs/core.c
sound/soc/intel/avs/topology.c
sound/soc/sof/amd/acp.c
sound/soc/sof/ipc3-topology.c
sound/soc/sof/ipc4-pcm.c