diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-02 11:01:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-02 11:03:40 -0500 |
commit | 87689d567a45f80416feea0a2aa6d3a2a6b8963a (patch) | |
tree | d33d923e9e359f3be124d0a63c30b41637b9f933 /sound/soc/davinci | |
parent | 6308419a199eed66086cd756ab8dc81b88d54a6b (diff) |
ASoC: Push platform registration down into the card
As part of the deprecation of snd_soc_device push the registration of
the platform down into the card structure.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 2 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-i2s.c | 2 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-sffsdr.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 2ce34d44b15c..d87b91179cc8 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -130,6 +130,7 @@ static struct snd_soc_dai_link evm_dai = { | |||
130 | /* davinci-evm audio machine driver */ | 130 | /* davinci-evm audio machine driver */ |
131 | static struct snd_soc_card snd_soc_card_evm = { | 131 | static struct snd_soc_card snd_soc_card_evm = { |
132 | .name = "DaVinci EVM", | 132 | .name = "DaVinci EVM", |
133 | .platform = &davinci_soc_platform, | ||
133 | .dai_link = &evm_dai, | 134 | .dai_link = &evm_dai, |
134 | .num_links = 1, | 135 | .num_links = 1, |
135 | }; | 136 | }; |
@@ -143,7 +144,6 @@ static struct aic3x_setup_data evm_aic3x_setup = { | |||
143 | /* evm audio subsystem */ | 144 | /* evm audio subsystem */ |
144 | static struct snd_soc_device evm_snd_devdata = { | 145 | static struct snd_soc_device evm_snd_devdata = { |
145 | .card = &snd_soc_card_evm, | 146 | .card = &snd_soc_card_evm, |
146 | .platform = &davinci_soc_platform, | ||
147 | .codec_dev = &soc_codec_dev_aic3x, | 147 | .codec_dev = &soc_codec_dev_aic3x, |
148 | .codec_data = &evm_aic3x_setup, | 148 | .codec_data = &evm_aic3x_setup, |
149 | }; | 149 | }; |
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index cf31b3bb96cf..8b99efbc64c6 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c | |||
@@ -112,7 +112,7 @@ static void davinci_mcbsp_start(struct snd_pcm_substream *substream) | |||
112 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 112 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
113 | struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; | 113 | struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; |
114 | struct snd_soc_device *socdev = rtd->socdev; | 114 | struct snd_soc_device *socdev = rtd->socdev; |
115 | struct snd_soc_platform *platform = socdev->platform; | 115 | struct snd_soc_platform *platform = socdev->card->platform; |
116 | u32 w; | 116 | u32 w; |
117 | int ret; | 117 | int ret; |
118 | 118 | ||
diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c index e95fde1766b5..f67579d52765 100644 --- a/sound/soc/davinci/davinci-sffsdr.c +++ b/sound/soc/davinci/davinci-sffsdr.c | |||
@@ -76,6 +76,7 @@ static struct snd_soc_dai_link sffsdr_dai = { | |||
76 | /* davinci-sffsdr audio machine driver */ | 76 | /* davinci-sffsdr audio machine driver */ |
77 | static struct snd_soc_card snd_soc_sffsdr = { | 77 | static struct snd_soc_card snd_soc_sffsdr = { |
78 | .name = "DaVinci SFFSDR", | 78 | .name = "DaVinci SFFSDR", |
79 | .platform = &davinci_soc_platform, | ||
79 | .dai_link = &sffsdr_dai, | 80 | .dai_link = &sffsdr_dai, |
80 | .num_links = 1, | 81 | .num_links = 1, |
81 | }; | 82 | }; |
@@ -91,7 +92,6 @@ static struct pcm3008_setup_data sffsdr_pcm3008_setup = { | |||
91 | /* sffsdr audio subsystem */ | 92 | /* sffsdr audio subsystem */ |
92 | static struct snd_soc_device sffsdr_snd_devdata = { | 93 | static struct snd_soc_device sffsdr_snd_devdata = { |
93 | .card = &snd_soc_sffsdr, | 94 | .card = &snd_soc_sffsdr, |
94 | .platform = &davinci_soc_platform, | ||
95 | .codec_dev = &soc_codec_dev_pcm3008, | 95 | .codec_dev = &soc_codec_dev_pcm3008, |
96 | .codec_data = &sffsdr_pcm3008_setup, | 96 | .codec_data = &sffsdr_pcm3008_setup, |
97 | }; | 97 | }; |