]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit372b7f7139b4c1c3fdb381c1a619646e1129584d
tree4f4eebd6cd6898c109d7e5e56c259986ed17f520
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
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