mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
ASoC: SOF: imx: add header file for ops
Sparse (make C=2) complains about undeclared variables. Fix by adding a real prototype instead of 'extern' in sof-of-dev.c Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/20210928072807.27838-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
a1ce6e43e2
commit
3e5cdded93
4 changed files with 13 additions and 4 deletions
10
sound/soc/sof/imx/imx-ops.h
Normal file
10
sound/soc/sof/imx/imx-ops.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
||||||
|
|
||||||
|
#ifndef __IMX_OPS_H__
|
||||||
|
#define __IMX_OPS_H__
|
||||||
|
|
||||||
|
extern struct snd_sof_dsp_ops sof_imx8_ops;
|
||||||
|
extern struct snd_sof_dsp_ops sof_imx8x_ops;
|
||||||
|
extern struct snd_sof_dsp_ops sof_imx8m_ops;
|
||||||
|
|
||||||
|
#endif
|
|
@ -22,6 +22,7 @@
|
||||||
#include <dt-bindings/firmware/imx/rsrc.h>
|
#include <dt-bindings/firmware/imx/rsrc.h>
|
||||||
#include "../ops.h"
|
#include "../ops.h"
|
||||||
#include "imx-common.h"
|
#include "imx-common.h"
|
||||||
|
#include "imx-ops.h"
|
||||||
|
|
||||||
/* DSP memories */
|
/* DSP memories */
|
||||||
#define IRAM_OFFSET 0x10000
|
#define IRAM_OFFSET 0x10000
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "../ops.h"
|
#include "../ops.h"
|
||||||
#include "imx-common.h"
|
#include "imx-common.h"
|
||||||
|
#include "imx-ops.h"
|
||||||
|
|
||||||
#define MBOX_OFFSET 0x800000
|
#define MBOX_OFFSET 0x800000
|
||||||
#define MBOX_SIZE 0x1000
|
#define MBOX_SIZE 0x1000
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
#include <sound/sof.h>
|
#include <sound/sof.h>
|
||||||
|
|
||||||
#include "ops.h"
|
#include "ops.h"
|
||||||
|
#include "imx/imx-ops.h"
|
||||||
extern struct snd_sof_dsp_ops sof_imx8_ops;
|
|
||||||
extern struct snd_sof_dsp_ops sof_imx8x_ops;
|
|
||||||
extern struct snd_sof_dsp_ops sof_imx8m_ops;
|
|
||||||
|
|
||||||
/* platform specific devices */
|
/* platform specific devices */
|
||||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
|
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
|
||||||
|
|
Loading…
Reference in a new issue