aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/platform_data/davinci_asp.h4
-rw-r--r--sound/soc/davinci/davinci-mcasp.c16
2 files changed, 11 insertions, 9 deletions
diff --git a/include/linux/platform_data/davinci_asp.h b/include/linux/platform_data/davinci_asp.h
index 5245992b0367..85ad68f9206a 100644
--- a/include/linux/platform_data/davinci_asp.h
+++ b/include/linux/platform_data/davinci_asp.h
@@ -18,7 +18,7 @@
18 18
19#include <linux/genalloc.h> 19#include <linux/genalloc.h>
20 20
21struct snd_platform_data { 21struct davinci_mcasp_pdata {
22 u32 tx_dma_offset; 22 u32 tx_dma_offset;
23 u32 rx_dma_offset; 23 u32 rx_dma_offset;
24 int asp_chan_q; /* event queue number for ASP channel */ 24 int asp_chan_q; /* event queue number for ASP channel */
@@ -87,6 +87,8 @@ struct snd_platform_data {
87 int tx_dma_channel; 87 int tx_dma_channel;
88 int rx_dma_channel; 88 int rx_dma_channel;
89}; 89};
90/* TODO: Fix arch/arm/mach-davinci/ users and remove this define */
91#define snd_platform_data davinci_mcasp_pdata
90 92
91enum { 93enum {
92 MCASP_VERSION_1 = 0, /* DM646x */ 94 MCASP_VERSION_1 = 0, /* DM646x */
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c
index 63b1ecc97cb1..e5fce2ed4dc6 100644
--- a/sound/soc/davinci/davinci-mcasp.c
+++ b/sound/soc/davinci/davinci-mcasp.c
@@ -823,28 +823,28 @@ static const struct snd_soc_component_driver davinci_mcasp_component = {
823}; 823};
824 824
825/* Some HW specific values and defaults. The rest is filled in from DT. */ 825/* Some HW specific values and defaults. The rest is filled in from DT. */
826static struct snd_platform_data dm646x_mcasp_pdata = { 826static struct davinci_mcasp_pdata dm646x_mcasp_pdata = {
827 .tx_dma_offset = 0x400, 827 .tx_dma_offset = 0x400,
828 .rx_dma_offset = 0x400, 828 .rx_dma_offset = 0x400,
829 .asp_chan_q = EVENTQ_0, 829 .asp_chan_q = EVENTQ_0,
830 .version = MCASP_VERSION_1, 830 .version = MCASP_VERSION_1,
831}; 831};
832 832
833static struct snd_platform_data da830_mcasp_pdata = { 833static struct davinci_mcasp_pdata da830_mcasp_pdata = {
834 .tx_dma_offset = 0x2000, 834 .tx_dma_offset = 0x2000,
835 .rx_dma_offset = 0x2000, 835 .rx_dma_offset = 0x2000,
836 .asp_chan_q = EVENTQ_0, 836 .asp_chan_q = EVENTQ_0,
837 .version = MCASP_VERSION_2, 837 .version = MCASP_VERSION_2,
838}; 838};
839 839
840static struct snd_platform_data am33xx_mcasp_pdata = { 840static struct davinci_mcasp_pdata am33xx_mcasp_pdata = {
841 .tx_dma_offset = 0, 841 .tx_dma_offset = 0,
842 .rx_dma_offset = 0, 842 .rx_dma_offset = 0,
843 .asp_chan_q = EVENTQ_0, 843 .asp_chan_q = EVENTQ_0,
844 .version = MCASP_VERSION_3, 844 .version = MCASP_VERSION_3,
845}; 845};
846 846
847static struct snd_platform_data dra7_mcasp_pdata = { 847static struct davinci_mcasp_pdata dra7_mcasp_pdata = {
848 .tx_dma_offset = 0x200, 848 .tx_dma_offset = 0x200,
849 .rx_dma_offset = 0x284, 849 .rx_dma_offset = 0x284,
850 .asp_chan_q = EVENTQ_0, 850 .asp_chan_q = EVENTQ_0,
@@ -912,11 +912,11 @@ err1:
912 return ret; 912 return ret;
913} 913}
914 914
915static struct snd_platform_data *davinci_mcasp_set_pdata_from_of( 915static struct davinci_mcasp_pdata *davinci_mcasp_set_pdata_from_of(
916 struct platform_device *pdev) 916 struct platform_device *pdev)
917{ 917{
918 struct device_node *np = pdev->dev.of_node; 918 struct device_node *np = pdev->dev.of_node;
919 struct snd_platform_data *pdata = NULL; 919 struct davinci_mcasp_pdata *pdata = NULL;
920 const struct of_device_id *match = 920 const struct of_device_id *match =
921 of_match_device(mcasp_dt_ids, &pdev->dev); 921 of_match_device(mcasp_dt_ids, &pdev->dev);
922 struct of_phandle_args dma_spec; 922 struct of_phandle_args dma_spec;
@@ -929,7 +929,7 @@ static struct snd_platform_data *davinci_mcasp_set_pdata_from_of(
929 pdata = pdev->dev.platform_data; 929 pdata = pdev->dev.platform_data;
930 return pdata; 930 return pdata;
931 } else if (match) { 931 } else if (match) {
932 pdata = (struct snd_platform_data *) match->data; 932 pdata = (struct davinci_mcasp_pdata*) match->data;
933 } else { 933 } else {
934 /* control shouldn't reach here. something is wrong */ 934 /* control shouldn't reach here. something is wrong */
935 ret = -EINVAL; 935 ret = -EINVAL;
@@ -1023,7 +1023,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
1023{ 1023{
1024 struct davinci_pcm_dma_params *dma_data; 1024 struct davinci_pcm_dma_params *dma_data;
1025 struct resource *mem, *ioarea, *res, *dat; 1025 struct resource *mem, *ioarea, *res, *dat;
1026 struct snd_platform_data *pdata; 1026 struct davinci_mcasp_pdata *pdata;
1027 struct davinci_mcasp *mcasp; 1027 struct davinci_mcasp *mcasp;
1028 int ret; 1028 int ret;
1029 1029