ASoC: SOF: OF: Avoid reverse module dependency
authorDaniel Baluta <daniel.baluta@nxp.com>
Wed, 15 Dec 2021 08:57:03 +0000 (10:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 15 Dec 2021 14:02:50 +0000 (14:02 +0000)
commit28084f4a0e031a87b624ea121bd8fd782b90ff2a
tree7d48bc30412371641bb607b35ed26178f49c8574
parent9e376b14ef3e0a78f3697d586cb6013c76e0f5f5
ASoC: SOF: OF: Avoid reverse module dependency

Similar with commit 8a49cd11e68ed0 ("ASoC: SOF: ACPI: avoid reverse
module dependency") we will be having hardware specific drivers that
link against a common "helper" framework.

sof-of-dev.c becomes a library with the interface defined in the newly
created file sof-of-dev.h.

This is the final step started with Kconfig simplification in
commit 7548a391c53ca ("ASoC: SOF: i.MX: simplify Kconfig")

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211215085703.137414-1-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx-ops.h [deleted file]
sound/soc/sof/imx/imx8.c
sound/soc/sof/imx/imx8m.c
sound/soc/sof/mediatek/mediatek-ops.h [deleted file]
sound/soc/sof/mediatek/mt8195/mt8195.c
sound/soc/sof/sof-of-dev.c
sound/soc/sof/sof-of-dev.h [new file with mode: 0644]