diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-18 15:50:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-21 09:02:01 -0500 |
commit | 875065491fba8eb13219f16c36e79a6fb4e15c68 (patch) | |
tree | b95327a466e6b79cb5d8a1d9be0f33697dd05db8 /sound/soc/pxa | |
parent | 9b0db7e7fd20d5a38844e9435f7d4246ea44978a (diff) |
ASoC: Rename snd_soc_card to snd_soc_machine
One of the issues with the ASoC v1 API which has been addressed in the
ASoC v2 work that Liam Girdwood has done is that the ALSA card provided
by ASoC is distributed around the ASoC structures. For example, machine
wide data such as the struct snd_card are maintained as part of the
CODEC data structure, preventing the use of multiple codecs. This has
been addressed by refactoring the data structures so that all the data
for the ALSA card is contained in a single structure snd_soc_card which
replaces the existing snd_soc_machine and snd_soc_device.
Begin the process of backporting this by renaming struct snd_soc_machine
to struct snd_soc_card, better reflecting its function and bringing it
closer to standard ALSA terminology.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/corgi.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/e800_wm9712.c | 6 | ||||
-rw-r--r-- | sound/soc/pxa/em-x270.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/palm27x.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/poodle.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/spitz.c | 4 | ||||
-rw-r--r-- | sound/soc/pxa/tosa.c | 6 |
7 files changed, 16 insertions, 16 deletions
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c index 2718eaf7895f..647f056a3cb3 100644 --- a/sound/soc/pxa/corgi.c +++ b/sound/soc/pxa/corgi.c | |||
@@ -314,7 +314,7 @@ static struct snd_soc_dai_link corgi_dai = { | |||
314 | }; | 314 | }; |
315 | 315 | ||
316 | /* corgi audio machine driver */ | 316 | /* corgi audio machine driver */ |
317 | static struct snd_soc_machine snd_soc_machine_corgi = { | 317 | static struct snd_soc_card snd_soc_corgi = { |
318 | .name = "Corgi", | 318 | .name = "Corgi", |
319 | .dai_link = &corgi_dai, | 319 | .dai_link = &corgi_dai, |
320 | .num_links = 1, | 320 | .num_links = 1, |
@@ -328,7 +328,7 @@ static struct wm8731_setup_data corgi_wm8731_setup = { | |||
328 | 328 | ||
329 | /* corgi audio subsystem */ | 329 | /* corgi audio subsystem */ |
330 | static struct snd_soc_device corgi_snd_devdata = { | 330 | static struct snd_soc_device corgi_snd_devdata = { |
331 | .machine = &snd_soc_machine_corgi, | 331 | .card = &snd_soc_corgi, |
332 | .platform = &pxa2xx_soc_platform, | 332 | .platform = &pxa2xx_soc_platform, |
333 | .codec_dev = &soc_codec_dev_wm8731, | 333 | .codec_dev = &soc_codec_dev_wm8731, |
334 | .codec_data = &corgi_wm8731_setup, | 334 | .codec_data = &corgi_wm8731_setup, |
diff --git a/sound/soc/pxa/e800_wm9712.c b/sound/soc/pxa/e800_wm9712.c index 6781c5be242f..60c64861512a 100644 --- a/sound/soc/pxa/e800_wm9712.c +++ b/sound/soc/pxa/e800_wm9712.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "pxa2xx-pcm.h" | 29 | #include "pxa2xx-pcm.h" |
30 | #include "pxa2xx-ac97.h" | 30 | #include "pxa2xx-ac97.h" |
31 | 31 | ||
32 | static struct snd_soc_machine e800; | 32 | static struct snd_soc_card e800; |
33 | 33 | ||
34 | static struct snd_soc_dai_link e800_dai[] = { | 34 | static struct snd_soc_dai_link e800_dai[] = { |
35 | { | 35 | { |
@@ -40,14 +40,14 @@ static struct snd_soc_dai_link e800_dai[] = { | |||
40 | }, | 40 | }, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct snd_soc_machine e800 = { | 43 | static struct snd_soc_card e800 = { |
44 | .name = "Toshiba e800", | 44 | .name = "Toshiba e800", |
45 | .dai_link = e800_dai, | 45 | .dai_link = e800_dai, |
46 | .num_links = ARRAY_SIZE(e800_dai), | 46 | .num_links = ARRAY_SIZE(e800_dai), |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct snd_soc_device e800_snd_devdata = { | 49 | static struct snd_soc_device e800_snd_devdata = { |
50 | .machine = &e800, | 50 | .card = &e800, |
51 | .platform = &pxa2xx_soc_platform, | 51 | .platform = &pxa2xx_soc_platform, |
52 | .codec_dev = &soc_codec_dev_wm9712, | 52 | .codec_dev = &soc_codec_dev_wm9712, |
53 | }; | 53 | }; |
diff --git a/sound/soc/pxa/em-x270.c b/sound/soc/pxa/em-x270.c index e6ff6929ab4b..4a61925c3104 100644 --- a/sound/soc/pxa/em-x270.c +++ b/sound/soc/pxa/em-x270.c | |||
@@ -53,14 +53,14 @@ static struct snd_soc_dai_link em_x270_dai[] = { | |||
53 | }, | 53 | }, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static struct snd_soc_machine em_x270 = { | 56 | static struct snd_soc_card em_x270 = { |
57 | .name = "EM-X270", | 57 | .name = "EM-X270", |
58 | .dai_link = em_x270_dai, | 58 | .dai_link = em_x270_dai, |
59 | .num_links = ARRAY_SIZE(em_x270_dai), | 59 | .num_links = ARRAY_SIZE(em_x270_dai), |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct snd_soc_device em_x270_snd_devdata = { | 62 | static struct snd_soc_device em_x270_snd_devdata = { |
63 | .machine = &em_x270, | 63 | .card = &em_x270, |
64 | .platform = &pxa2xx_soc_platform, | 64 | .platform = &pxa2xx_soc_platform, |
65 | .codec_dev = &soc_codec_dev_wm9712, | 65 | .codec_dev = &soc_codec_dev_wm9712, |
66 | }; | 66 | }; |
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c index e364abc700db..3bb8879ac8a2 100644 --- a/sound/soc/pxa/palm27x.c +++ b/sound/soc/pxa/palm27x.c | |||
@@ -189,14 +189,14 @@ static struct snd_soc_dai_link palm27x_dai[] = { | |||
189 | }, | 189 | }, |
190 | }; | 190 | }; |
191 | 191 | ||
192 | static struct snd_soc_machine palm27x_asoc = { | 192 | static struct snd_soc_card palm27x_asoc = { |
193 | .name = "Palm/PXA27x", | 193 | .name = "Palm/PXA27x", |
194 | .dai_link = palm27x_dai, | 194 | .dai_link = palm27x_dai, |
195 | .num_links = ARRAY_SIZE(palm27x_dai), | 195 | .num_links = ARRAY_SIZE(palm27x_dai), |
196 | }; | 196 | }; |
197 | 197 | ||
198 | static struct snd_soc_device palm27x_snd_devdata = { | 198 | static struct snd_soc_device palm27x_snd_devdata = { |
199 | .machine = &palm27x_asoc, | 199 | .card = &palm27x_asoc, |
200 | .platform = &pxa2xx_soc_platform, | 200 | .platform = &pxa2xx_soc_platform, |
201 | .codec_dev = &soc_codec_dev_wm9712, | 201 | .codec_dev = &soc_codec_dev_wm9712, |
202 | }; | 202 | }; |
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c index 4d9930c52789..03b510ab2824 100644 --- a/sound/soc/pxa/poodle.c +++ b/sound/soc/pxa/poodle.c | |||
@@ -276,7 +276,7 @@ static struct snd_soc_dai_link poodle_dai = { | |||
276 | }; | 276 | }; |
277 | 277 | ||
278 | /* poodle audio machine driver */ | 278 | /* poodle audio machine driver */ |
279 | static struct snd_soc_machine snd_soc_machine_poodle = { | 279 | static struct snd_soc_card snd_soc_poodle = { |
280 | .name = "Poodle", | 280 | .name = "Poodle", |
281 | .dai_link = &poodle_dai, | 281 | .dai_link = &poodle_dai, |
282 | .num_links = 1, | 282 | .num_links = 1, |
@@ -290,7 +290,7 @@ static struct wm8731_setup_data poodle_wm8731_setup = { | |||
290 | 290 | ||
291 | /* poodle audio subsystem */ | 291 | /* poodle audio subsystem */ |
292 | static struct snd_soc_device poodle_snd_devdata = { | 292 | static struct snd_soc_device poodle_snd_devdata = { |
293 | .machine = &snd_soc_machine_poodle, | 293 | .card = &snd_soc_poodle, |
294 | .platform = &pxa2xx_soc_platform, | 294 | .platform = &pxa2xx_soc_platform, |
295 | .codec_dev = &soc_codec_dev_wm8731, | 295 | .codec_dev = &soc_codec_dev_wm8731, |
296 | .codec_data = &poodle_wm8731_setup, | 296 | .codec_data = &poodle_wm8731_setup, |
diff --git a/sound/soc/pxa/spitz.c b/sound/soc/pxa/spitz.c index d307b6757e95..579d93368f14 100644 --- a/sound/soc/pxa/spitz.c +++ b/sound/soc/pxa/spitz.c | |||
@@ -319,7 +319,7 @@ static struct snd_soc_dai_link spitz_dai = { | |||
319 | }; | 319 | }; |
320 | 320 | ||
321 | /* spitz audio machine driver */ | 321 | /* spitz audio machine driver */ |
322 | static struct snd_soc_machine snd_soc_machine_spitz = { | 322 | static struct snd_soc_card snd_soc_spitz = { |
323 | .name = "Spitz", | 323 | .name = "Spitz", |
324 | .dai_link = &spitz_dai, | 324 | .dai_link = &spitz_dai, |
325 | .num_links = 1, | 325 | .num_links = 1, |
@@ -333,7 +333,7 @@ static struct wm8750_setup_data spitz_wm8750_setup = { | |||
333 | 333 | ||
334 | /* spitz audio subsystem */ | 334 | /* spitz audio subsystem */ |
335 | static struct snd_soc_device spitz_snd_devdata = { | 335 | static struct snd_soc_device spitz_snd_devdata = { |
336 | .machine = &snd_soc_machine_spitz, | 336 | .card = &snd_soc_spitz, |
337 | .platform = &pxa2xx_soc_platform, | 337 | .platform = &pxa2xx_soc_platform, |
338 | .codec_dev = &soc_codec_dev_wm8750, | 338 | .codec_dev = &soc_codec_dev_wm8750, |
339 | .codec_data = &spitz_wm8750_setup, | 339 | .codec_data = &spitz_wm8750_setup, |
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c index afefe41b8c46..9d9be5a14d14 100644 --- a/sound/soc/pxa/tosa.c +++ b/sound/soc/pxa/tosa.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include "pxa2xx-pcm.h" | 38 | #include "pxa2xx-pcm.h" |
39 | #include "pxa2xx-ac97.h" | 39 | #include "pxa2xx-ac97.h" |
40 | 40 | ||
41 | static struct snd_soc_machine tosa; | 41 | static struct snd_soc_card tosa; |
42 | 42 | ||
43 | #define TOSA_HP 0 | 43 | #define TOSA_HP 0 |
44 | #define TOSA_MIC_INT 1 | 44 | #define TOSA_MIC_INT 1 |
@@ -230,14 +230,14 @@ static struct snd_soc_dai_link tosa_dai[] = { | |||
230 | }, | 230 | }, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static struct snd_soc_machine tosa = { | 233 | static struct snd_soc_card tosa = { |
234 | .name = "Tosa", | 234 | .name = "Tosa", |
235 | .dai_link = tosa_dai, | 235 | .dai_link = tosa_dai, |
236 | .num_links = ARRAY_SIZE(tosa_dai), | 236 | .num_links = ARRAY_SIZE(tosa_dai), |
237 | }; | 237 | }; |
238 | 238 | ||
239 | static struct snd_soc_device tosa_snd_devdata = { | 239 | static struct snd_soc_device tosa_snd_devdata = { |
240 | .machine = &tosa, | 240 | .card = &tosa, |
241 | .platform = &pxa2xx_soc_platform, | 241 | .platform = &pxa2xx_soc_platform, |
242 | .codec_dev = &soc_codec_dev_wm9712, | 242 | .codec_dev = &soc_codec_dev_wm9712, |
243 | }; | 243 | }; |