OSDN Git Service

ASoC: SOF: Make Intel IPC stream ops generic
authorBud Liviu-Alexandru <budliviu@gmail.com>
Mon, 4 Oct 2021 15:21:45 +0000 (18:21 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 15:57:54 +0000 (16:57 +0100)
commit97e22cbd0dc318f1cedb3546d2047403506bdc2d
tree6e97e53f3f7ad954207d39a9d9ee6261b618c29a
parentf71f59dd450813684d838e0c1d6602186b7d2d8f
ASoC: SOF: Make Intel IPC stream ops generic

This operations should be generic as there is nothing Intel
specific. This works well for NXP i.MX8 stream IPC ops.

We start by moving sof/intel/intel-ipc.c into sof/stream-ipc.c and
rename the functions to be generic.

Notice that we use newly introduced snd_sof_dsp_mailbox_read
instead of sof_mailbox_read, to make sure that we are not
bound to existing MMIO memory access, and we allow platform
to implement their own memory access routines.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Bud Liviu-Alexandru <budliviu@gmail.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20211004152147.1268978-3-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Makefile
sound/soc/sof/intel/Makefile
sound/soc/sof/intel/bdw.c
sound/soc/sof/intel/byt.c
sound/soc/sof/intel/pci-tng.c
sound/soc/sof/sof-priv.h
sound/soc/sof/stream-ipc.c [moved from sound/soc/sof/intel/intel-ipc.c with 58% similarity]