diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-28 03:34:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-01 06:28:29 -0400 |
commit | b46b373f4084cc02d4d41a5a42199fe8462c2f13 (patch) | |
tree | 8f621f753dad4454bec0766b07ebe94d51d2ac18 /sound/soc/fsl/fsl_ssi.c | |
parent | ff9062c60e4b8e01980b1a81dcabe3965f71df77 (diff) |
ASoC: fsl: assign dma peripheral type according to bus topology
The dma peripheral_type for SSI should be IMX_DMATYPE_SSI_SP if the SSI
is on SPBA bus.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/fsl_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 30ff605144c6..4f76b5df0ce4 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -746,6 +746,12 @@ static int __devinit fsl_ssi_probe(struct platform_device *pdev) | |||
746 | } | 746 | } |
747 | ssi_private->dma_params_tx.dma = dma_events[0]; | 747 | ssi_private->dma_params_tx.dma = dma_events[0]; |
748 | ssi_private->dma_params_rx.dma = dma_events[1]; | 748 | ssi_private->dma_params_rx.dma = dma_events[1]; |
749 | |||
750 | ssi_private->dma_params_tx.shared_peripheral = | ||
751 | of_device_is_compatible(of_get_parent(np), | ||
752 | "fsl,spba-bus"); | ||
753 | ssi_private->dma_params_rx.shared_peripheral = | ||
754 | ssi_private->dma_params_tx.shared_peripheral; | ||
749 | } | 755 | } |
750 | 756 | ||
751 | /* Initialize the the device_attribute structure */ | 757 | /* Initialize the the device_attribute structure */ |