|
@@ -26,7 +26,6 @@
|
|
|
#include <linux/clk.h>
|
|
|
#include <linux/delay.h>
|
|
|
#include <linux/time.h>
|
|
|
-#include <linux/fsl/mxs-dma.h>
|
|
|
#include <sound/core.h>
|
|
|
#include <sound/pcm.h>
|
|
|
#include <sound/pcm_params.h>
|
|
@@ -604,8 +603,6 @@ static int mxs_saif_dai_probe(struct snd_soc_dai *dai)
|
|
|
struct mxs_saif *saif = dev_get_drvdata(dai->dev);
|
|
|
|
|
|
snd_soc_dai_set_drvdata(dai, saif);
|
|
|
- dai->playback_dma_data = &saif->dma_param;
|
|
|
- dai->capture_dma_data = &saif->dma_param;
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -664,7 +661,7 @@ static irqreturn_t mxs_saif_irq(int irq, void *dev_id)
|
|
|
static int mxs_saif_probe(struct platform_device *pdev)
|
|
|
{
|
|
|
struct device_node *np = pdev->dev.of_node;
|
|
|
- struct resource *iores, *dmares;
|
|
|
+ struct resource *iores;
|
|
|
struct mxs_saif *saif;
|
|
|
int ret = 0;
|
|
|
struct device_node *master;
|
|
@@ -719,22 +716,6 @@ static int mxs_saif_probe(struct platform_device *pdev)
|
|
|
if (IS_ERR(saif->base))
|
|
|
return PTR_ERR(saif->base);
|
|
|
|
|
|
- dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
|
|
|
- if (!dmares) {
|
|
|
- /*
|
|
|
- * TODO: This is a temporary solution and should be changed
|
|
|
- * to use generic DMA binding later when the helplers get in.
|
|
|
- */
|
|
|
- ret = of_property_read_u32(np, "fsl,saif-dma-channel",
|
|
|
- &saif->dma_param.chan_num);
|
|
|
- if (ret) {
|
|
|
- dev_err(&pdev->dev, "failed to get dma channel\n");
|
|
|
- return ret;
|
|
|
- }
|
|
|
- } else {
|
|
|
- saif->dma_param.chan_num = dmares->start;
|
|
|
- }
|
|
|
-
|
|
|
saif->irq = platform_get_irq(pdev, 0);
|
|
|
if (saif->irq < 0) {
|
|
|
ret = saif->irq;
|
|
@@ -751,14 +732,6 @@ static int mxs_saif_probe(struct platform_device *pdev)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- saif->dma_param.dma_data.chan_irq = platform_get_irq(pdev, 1);
|
|
|
- if (saif->dma_param.dma_data.chan_irq < 0) {
|
|
|
- ret = saif->dma_param.dma_data.chan_irq;
|
|
|
- dev_err(&pdev->dev, "failed to get dma irq resource: %d\n",
|
|
|
- ret);
|
|
|
- return ret;
|
|
|
- }
|
|
|
-
|
|
|
platform_set_drvdata(pdev, saif);
|
|
|
|
|
|
ret = snd_soc_register_component(&pdev->dev, &mxs_saif_component,
|