diff options
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-audio.c | 8 | ||||
-rw-r--r-- | include/linux/platform_data/asoc-ux500-msp.h | 9 | ||||
-rw-r--r-- | sound/soc/ux500/ux500_msp_i2s.h | 2 |
3 files changed, 6 insertions, 13 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-audio.c b/arch/arm/mach-ux500/board-mop500-audio.c index 154e15f59702..43d6cb8c381d 100644 --- a/arch/arm/mach-ux500/board-mop500-audio.c +++ b/arch/arm/mach-ux500/board-mop500-audio.c | |||
@@ -31,7 +31,7 @@ static struct stedma40_chan_cfg msp0_dma_tx = { | |||
31 | }; | 31 | }; |
32 | 32 | ||
33 | struct msp_i2s_platform_data msp0_platform_data = { | 33 | struct msp_i2s_platform_data msp0_platform_data = { |
34 | .id = MSP_I2S_0, | 34 | .id = 0, |
35 | .msp_i2s_dma_rx = &msp0_dma_rx, | 35 | .msp_i2s_dma_rx = &msp0_dma_rx, |
36 | .msp_i2s_dma_tx = &msp0_dma_tx, | 36 | .msp_i2s_dma_tx = &msp0_dma_tx, |
37 | }; | 37 | }; |
@@ -49,7 +49,7 @@ static struct stedma40_chan_cfg msp1_dma_tx = { | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | struct msp_i2s_platform_data msp1_platform_data = { | 51 | struct msp_i2s_platform_data msp1_platform_data = { |
52 | .id = MSP_I2S_1, | 52 | .id = 1, |
53 | .msp_i2s_dma_rx = NULL, | 53 | .msp_i2s_dma_rx = NULL, |
54 | .msp_i2s_dma_tx = &msp1_dma_tx, | 54 | .msp_i2s_dma_tx = &msp1_dma_tx, |
55 | }; | 55 | }; |
@@ -69,13 +69,13 @@ static struct stedma40_chan_cfg msp2_dma_tx = { | |||
69 | }; | 69 | }; |
70 | 70 | ||
71 | struct msp_i2s_platform_data msp2_platform_data = { | 71 | struct msp_i2s_platform_data msp2_platform_data = { |
72 | .id = MSP_I2S_2, | 72 | .id = 2, |
73 | .msp_i2s_dma_rx = &msp2_dma_rx, | 73 | .msp_i2s_dma_rx = &msp2_dma_rx, |
74 | .msp_i2s_dma_tx = &msp2_dma_tx, | 74 | .msp_i2s_dma_tx = &msp2_dma_tx, |
75 | }; | 75 | }; |
76 | 76 | ||
77 | struct msp_i2s_platform_data msp3_platform_data = { | 77 | struct msp_i2s_platform_data msp3_platform_data = { |
78 | .id = MSP_I2S_3, | 78 | .id = 3, |
79 | .msp_i2s_dma_rx = &msp1_dma_rx, | 79 | .msp_i2s_dma_rx = &msp1_dma_rx, |
80 | .msp_i2s_dma_tx = NULL, | 80 | .msp_i2s_dma_tx = NULL, |
81 | }; | 81 | }; |
diff --git a/include/linux/platform_data/asoc-ux500-msp.h b/include/linux/platform_data/asoc-ux500-msp.h index 9991aea3d577..2f34bb98fe2a 100644 --- a/include/linux/platform_data/asoc-ux500-msp.h +++ b/include/linux/platform_data/asoc-ux500-msp.h | |||
@@ -10,16 +10,9 @@ | |||
10 | 10 | ||
11 | #include <linux/platform_data/dma-ste-dma40.h> | 11 | #include <linux/platform_data/dma-ste-dma40.h> |
12 | 12 | ||
13 | enum msp_i2s_id { | ||
14 | MSP_I2S_0 = 0, | ||
15 | MSP_I2S_1, | ||
16 | MSP_I2S_2, | ||
17 | MSP_I2S_3, | ||
18 | }; | ||
19 | |||
20 | /* Platform data structure for a MSP I2S-device */ | 13 | /* Platform data structure for a MSP I2S-device */ |
21 | struct msp_i2s_platform_data { | 14 | struct msp_i2s_platform_data { |
22 | enum msp_i2s_id id; | 15 | int id; |
23 | struct stedma40_chan_cfg *msp_i2s_dma_rx; | 16 | struct stedma40_chan_cfg *msp_i2s_dma_rx; |
24 | struct stedma40_chan_cfg *msp_i2s_dma_tx; | 17 | struct stedma40_chan_cfg *msp_i2s_dma_tx; |
25 | }; | 18 | }; |
diff --git a/sound/soc/ux500/ux500_msp_i2s.h b/sound/soc/ux500/ux500_msp_i2s.h index 258d0bcee0bd..875de0f68b85 100644 --- a/sound/soc/ux500/ux500_msp_i2s.h +++ b/sound/soc/ux500/ux500_msp_i2s.h | |||
@@ -475,7 +475,7 @@ struct ux500_msp_dma_params { | |||
475 | }; | 475 | }; |
476 | 476 | ||
477 | struct ux500_msp { | 477 | struct ux500_msp { |
478 | enum msp_i2s_id id; | 478 | int id; |
479 | void __iomem *registers; | 479 | void __iomem *registers; |
480 | struct device *dev; | 480 | struct device *dev; |
481 | struct ux500_msp_dma_params playback_dma_data; | 481 | struct ux500_msp_dma_params playback_dma_data; |