ASoC: imx-pcm-dma: simplify pcm_config
authorLucas Stach <l.stach@pengutronix.de>
Wed, 8 Mar 2017 09:17:02 +0000 (10:17 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 8 Mar 2017 09:58:42 +0000 (10:58 +0100)
commit70d435ba1cd6a955e715b8a4729bbc9044e9d7ff
tree4f4eebd6cd6898c109d7e5e56c259986ed17f520
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
ASoC: imx-pcm-dma: simplify pcm_config

The generic snd_dmaengine_pcm is able to retrieve all the needed
information from the attached dmaengine and is in fact able to
provide much more accurate flags to userspace, like the SDMA engine
being only able to operate in batch mode.

To avoid any future inconsistencies between the dmaengine and the
pcm_config, rip out the fixed config and rely on the core to fill
in the right flags derived from the dmaengine information.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-pcm-dma.c