ALSA/ASoC: hda: move SPIB/DRMS functionality from ext layer
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 19 Oct 2022 16:21:15 +0000 (11:21 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Oct 2022 12:31:42 +0000 (14:31 +0200)
commit6258234129b013c534fa10abaf08751b2401b22b
treea98b33796b2db301422375dd549617a069b52724
parentf90025100fb50552a8281becd8f26aab065d4c31
ALSA/ASoC: hda: move SPIB/DRMS functionality from ext layer

The SPIB and DRMS capabilities are orthogonal to the DSP enablement
and can be used whether the stream is coupled or not.

The existing code partitioning makes limited sense, the capabilities
are parsed at the sound/hda level but helpers are located in
sound/hda/ext.

This patch moves all the SPIB/DRMS functionality to the sound/hda
layer. This reduces the complexity of the sound/hda/ext layer which is
now limited to handling the multi-link extensions and stream
coupling/decoupling helpers.

Note that this is an iso-functionality code move and rename, the
HDaudio legacy driver would need additional changes to make use of
these capabilities.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20221019162115.185917-11-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
include/sound/hdaudio_ext.h
sound/hda/ext/hdac_ext_stream.c
sound/hda/hdac_stream.c
sound/soc/intel/avs/loader.c
sound/soc/intel/skylake/skl-messages.c
sound/soc/intel/skylake/skl-pcm.c
sound/soc/sof/intel/hda-pcm.c
sound/soc/sof/intel/hda-stream.c