summaryrefslogtreecommitdiffstats
path: root/sound/soc/imx/imx-ssi.h
diff options
context:
space:
mode:
authorShawn Guo2012-03-05 15:30:55 +0100
committerMark Brown2012-03-06 01:03:08 +0100
commit4762fbab0b1cf1d4f3e02b78351dc6fa59ca564e (patch)
tree08c59b48b0b3f7e24f84820683f9961e5664da90 /sound/soc/imx/imx-ssi.h
parentASoC: imx: rename audmux prefix mxc to imx (diff)
downloadkernel-qcow2-linux-4762fbab0b1cf1d4f3e02b78351dc6fa59ca564e.tar.gz
kernel-qcow2-linux-4762fbab0b1cf1d4f3e02b78351dc6fa59ca564e.tar.xz
kernel-qcow2-linux-4762fbab0b1cf1d4f3e02b78351dc6fa59ca564e.zip
ASoC: imx: separate imx-pcm bits from imx-ssi driver
Currently the imx-ssi.c[h] accommodates the imx-pcm common bits which are shared between imx-pcm-dma-mx2 and imx-pcm-fiq drivers. It assumes that imx-pcm-dma-mx2 and imx-pcm-fiq will always be used together with imx-ssi driver. However this becomes untrue when we see that driver sound/soc/fsl/fsl_ssi could possibly work with imx-pcm-dma-mx2 too. The patch moves the imx-pcm common bits from imx-ssi.c[h] into new files imx-pcm.c[h], and let imx-pcm-dma-mx2 and imx-pcm-fiq drivers build it in, so that imx-pcm-dma-mx2 can work with no dependency on imx-ssi driver. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/imx/imx-ssi.h')
-rw-r--r--sound/soc/imx/imx-ssi.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sound/soc/imx/imx-ssi.h b/sound/soc/imx/imx-ssi.h
index 1072dfb53e47..5744e86ca878 100644
--- a/sound/soc/imx/imx-ssi.h
+++ b/sound/soc/imx/imx-ssi.h
@@ -187,12 +187,7 @@
#include <linux/dmaengine.h>
#include <mach/dma.h>
-
-struct imx_pcm_dma_params {
- int dma;
- unsigned long dma_addr;
- int burstsize;
-};
+#include "imx-pcm.h"
struct imx_ssi {
struct platform_device *ac97_dev;
@@ -218,13 +213,4 @@ struct imx_ssi {
struct platform_device *soc_platform_pdev_fiq;
};
-int snd_imx_pcm_mmap(struct snd_pcm_substream *substream, struct vm_area_struct *vma);
-int imx_pcm_new(struct snd_soc_pcm_runtime *rtd);
-void imx_pcm_free(struct snd_pcm *pcm);
-
-/*
- * Do not change this as the FIQ handler depends on this size
- */
-#define IMX_SSI_DMABUF_SIZE (64 * 1024)
-
#endif /* _IMX_SSI_H */