]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit189d117f5e3ab53ea77e968705e89312bc4d35c9
tree6e97e53f3f7ad954207d39a9d9ee6261b618c29a
parenta0dfae24686a9d45c5f0f02838230febd68eeef9
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/intel-ipc.c [deleted file]
sound/soc/sof/intel/pci-tng.c
sound/soc/sof/sof-priv.h
sound/soc/sof/stream-ipc.c [new file with mode: 0644]