Skip to content

Commit

Permalink
ASoC: Intel: use dw_dmac autoconfiguration
Browse files Browse the repository at this point in the history
Instead of hardconding a platform data for dw_dmac let's use it's own
autoconfiguration feature. Thus, remove hardcoded values.

Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Andy Shevchenko authored and Mark Brown committed Oct 7, 2015
1 parent 5b97c0f commit b5e5a45
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sound/soc/intel/common/sst-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/acpi.h>

/* supported DMA engine drivers */
#include <linux/platform_data/dma-dw.h>
#include <linux/dma/dw.h>

#include <asm/page.h>
Expand Down Expand Up @@ -169,12 +168,6 @@ static int block_list_prepare(struct sst_dsp *dsp,
return ret;
}

static struct dw_dma_platform_data dw_pdata = {
.is_private = 1,
.chan_allocation_order = CHAN_ALLOCATION_ASCENDING,
.chan_priority = CHAN_PRIORITY_ASCENDING,
};

static struct dw_dma_chip *dw_probe(struct device *dev, struct resource *mem,
int irq)
{
Expand All @@ -195,7 +188,8 @@ static struct dw_dma_chip *dw_probe(struct device *dev, struct resource *mem,
return ERR_PTR(err);

chip->dev = dev;
err = dw_dma_probe(chip, &dw_pdata);

err = dw_dma_probe(chip, NULL);
if (err)
return ERR_PTR(err);

Expand Down

0 comments on commit b5e5a45

Please sign in to comment.