ASoC: SOF: partition audio-related parts from SOF core
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 4 Dec 2019 21:15:51 +0000 (15:15 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 18:38:57 +0000 (18:38 +0000)
commitee1e79b72e3cf5eac42ba9de827536f91d4c04e2
treee4def1693d15948abd5996ad4cc8965d61554265
parent03eec9b4eb897dde5985579508c978e7a29052bd
ASoC: SOF: partition audio-related parts from SOF core

Move all the audio-specific code in the core,
audio-specific logic in the top-level PM callbacks
and the core header files into a separate file
(sof-audio.*) in preparation for adding an
audio client device.

In the process of moving all structure definitions
for widget, routes, pcm's etc, the snd_sof_dev
member in all these structs is replaced with
the snd_soc_component member. Also, use the component
device instead of the snd_sof_dev device wherever
possible in the PCM component driver,
control IO functions and the topology parser as the
component device will be moved over to the client
device later on.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191204211556.12671-9-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
13 files changed:
sound/soc/sof/Makefile
sound/soc/sof/control.c
sound/soc/sof/core.c
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/intel/hda-pcm.c
sound/soc/sof/intel/hda-stream.c
sound/soc/sof/ipc.c
sound/soc/sof/pcm.c
sound/soc/sof/pm.c
sound/soc/sof/sof-audio.c [new file with mode: 0644]
sound/soc/sof/sof-audio.h [new file with mode: 0644]
sound/soc/sof/sof-priv.h
sound/soc/sof/topology.c