diff options
33 files changed, 127 insertions, 127 deletions
diff --git a/Documentation/sound/alsa/soc/machine.txt b/Documentation/sound/alsa/soc/machine.txt index f370e7db86af..4a9f51e2905c 100644 --- a/Documentation/sound/alsa/soc/machine.txt +++ b/Documentation/sound/alsa/soc/machine.txt | |||
@@ -9,7 +9,7 @@ the audio subsystem with the kernel as a platform device and is represented by | |||
9 | the following struct:- | 9 | the following struct:- |
10 | 10 | ||
11 | /* SoC machine */ | 11 | /* SoC machine */ |
12 | struct snd_soc_machine { | 12 | struct snd_soc_card {_ |
13 | char *name; | 13 | char *name; |
14 | 14 | ||
15 | int (*probe)(struct platform_device *pdev); | 15 | int (*probe)(struct platform_device *pdev); |
@@ -67,10 +67,10 @@ static struct snd_soc_dai_link corgi_dai = { | |||
67 | .ops = &corgi_ops, | 67 | .ops = &corgi_ops, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct snd_soc_machine then sets up the machine with it's DAIs. e.g. | 70 | struct snd_soc_card then sets up the machine with it's DAIs. e.g. |
71 | 71 | ||
72 | /* corgi audio machine driver */ | 72 | /* corgi audio machine driver */ |
73 | static struct snd_soc_machine snd_soc_machine_corgi = { | 73 | static struct snd_soc_card snd_soc_corgi = { |
74 | .name = "Corgi", | 74 | .name = "Corgi", |
75 | .dai_link = &corgi_dai, | 75 | .dai_link = &corgi_dai, |
76 | .num_links = 1, | 76 | .num_links = 1, |
@@ -90,7 +90,7 @@ static struct wm8731_setup_data corgi_wm8731_setup = { | |||
90 | 90 | ||
91 | /* corgi audio subsystem */ | 91 | /* corgi audio subsystem */ |
92 | static struct snd_soc_device corgi_snd_devdata = { | 92 | static struct snd_soc_device corgi_snd_devdata = { |
93 | .machine = &snd_soc_machine_corgi, | 93 | .machine = &snd_soc_corgi, |
94 | .platform = &pxa2xx_soc_platform, | 94 | .platform = &pxa2xx_soc_platform, |
95 | .codec_dev = &soc_codec_dev_wm8731, | 95 | .codec_dev = &soc_codec_dev_wm8731, |
96 | .codec_data = &corgi_wm8731_setup, | 96 | .codec_data = &corgi_wm8731_setup, |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 077dfe4e51f0..3be17b3c650c 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -482,8 +482,8 @@ struct snd_soc_dai_link { | |||
482 | struct snd_pcm *pcm; | 482 | struct snd_pcm *pcm; |
483 | }; | 483 | }; |
484 | 484 | ||
485 | /* SoC machine */ | 485 | /* SoC card */ |
486 | struct snd_soc_machine { | 486 | struct snd_soc_card { |
487 | char *name; | 487 | char *name; |
488 | 488 | ||
489 | int (*probe)(struct platform_device *pdev); | 489 | int (*probe)(struct platform_device *pdev); |
@@ -497,7 +497,7 @@ struct snd_soc_machine { | |||
497 | int (*resume_post)(struct platform_device *pdev); | 497 | int (*resume_post)(struct platform_device *pdev); |
498 | 498 | ||
499 | /* callbacks */ | 499 | /* callbacks */ |
500 | int (*set_bias_level)(struct snd_soc_machine *, | 500 | int (*set_bias_level)(struct snd_soc_card *, |
501 | enum snd_soc_bias_level level); | 501 | enum snd_soc_bias_level level); |
502 | 502 | ||
503 | /* CPU <--> Codec DAI links */ | 503 | /* CPU <--> Codec DAI links */ |
@@ -508,7 +508,7 @@ struct snd_soc_machine { | |||
508 | /* SoC Device - the audio subsystem */ | 508 | /* SoC Device - the audio subsystem */ |
509 | struct snd_soc_device { | 509 | struct snd_soc_device { |
510 | struct device *dev; | 510 | struct device *dev; |
511 | struct snd_soc_machine *machine; | 511 | struct snd_soc_card *card; |
512 | struct snd_soc_platform *platform; | 512 | struct snd_soc_platform *platform; |
513 | struct snd_soc_codec *codec; | 513 | struct snd_soc_codec *codec; |
514 | struct snd_soc_codec_device *codec_dev; | 514 | struct snd_soc_codec_device *codec_dev; |
diff --git a/sound/soc/atmel/playpaq_wm8510.c b/sound/soc/atmel/playpaq_wm8510.c index ea7935d2a66d..d40b5a52a8d2 100644 --- a/sound/soc/atmel/playpaq_wm8510.c +++ b/sound/soc/atmel/playpaq_wm8510.c | |||
@@ -361,7 +361,7 @@ static struct snd_soc_dai_link playpaq_wm8510_dai = { | |||
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | static struct snd_soc_machine snd_soc_machine_playpaq = { | 364 | static struct snd_soc_card snd_soc_playpaq = { |
365 | .name = "LRS_PlayPaq_WM8510", | 365 | .name = "LRS_PlayPaq_WM8510", |
366 | .dai_link = &playpaq_wm8510_dai, | 366 | .dai_link = &playpaq_wm8510_dai, |
367 | .num_links = 1, | 367 | .num_links = 1, |
@@ -377,7 +377,7 @@ static struct wm8510_setup_data playpaq_wm8510_setup = { | |||
377 | 377 | ||
378 | 378 | ||
379 | static struct snd_soc_device playpaq_wm8510_snd_devdata = { | 379 | static struct snd_soc_device playpaq_wm8510_snd_devdata = { |
380 | .machine = &snd_soc_machine_playpaq, | 380 | .card = &snd_soc_playpaq, |
381 | .platform = &at32_soc_platform, | 381 | .platform = &at32_soc_platform, |
382 | .codec_dev = &soc_codec_dev_wm8510, | 382 | .codec_dev = &soc_codec_dev_wm8510, |
383 | .codec_data = &playpaq_wm8510_setup, | 383 | .codec_data = &playpaq_wm8510_setup, |
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index 710addcc66b3..fdc1d0206e0b 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c | |||
@@ -242,7 +242,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = { | |||
242 | .ops = &at91sam9g20ek_ops, | 242 | .ops = &at91sam9g20ek_ops, |
243 | }; | 243 | }; |
244 | 244 | ||
245 | static struct snd_soc_machine snd_soc_machine_at91sam9g20ek = { | 245 | static struct snd_soc_card snd_soc_at91sam9g20ek = { |
246 | .name = "WM8731", | 246 | .name = "WM8731", |
247 | .dai_link = &at91sam9g20ek_dai, | 247 | .dai_link = &at91sam9g20ek_dai, |
248 | .num_links = 1, | 248 | .num_links = 1, |
@@ -254,7 +254,7 @@ static struct wm8731_setup_data at91sam9g20ek_wm8731_setup = { | |||
254 | }; | 254 | }; |
255 | 255 | ||
256 | static struct snd_soc_device at91sam9g20ek_snd_devdata = { | 256 | static struct snd_soc_device at91sam9g20ek_snd_devdata = { |
257 | .machine = &snd_soc_machine_at91sam9g20ek, | 257 | .card = &snd_soc_at91sam9g20ek, |
258 | .platform = &atmel_soc_platform, | 258 | .platform = &atmel_soc_platform, |
259 | .codec_dev = &soc_codec_dev_wm8731, | 259 | .codec_dev = &soc_codec_dev_wm8731, |
260 | .codec_data = &at91sam9g20ek_wm8731_setup, | 260 | .codec_data = &at91sam9g20ek_wm8731_setup, |
diff --git a/sound/soc/au1x/sample-ac97.c b/sound/soc/au1x/sample-ac97.c index f75ae7f62c3d..27683eb7905e 100644 --- a/sound/soc/au1x/sample-ac97.c +++ b/sound/soc/au1x/sample-ac97.c | |||
@@ -42,14 +42,14 @@ static struct snd_soc_dai_link au1xpsc_sample_ac97_dai = { | |||
42 | .ops = NULL, | 42 | .ops = NULL, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | static struct snd_soc_machine au1xpsc_sample_ac97_machine = { | 45 | static struct snd_soc_card au1xpsc_sample_ac97_machine = { |
46 | .name = "Au1xxx PSC AC97 Audio", | 46 | .name = "Au1xxx PSC AC97 Audio", |
47 | .dai_link = &au1xpsc_sample_ac97_dai, | 47 | .dai_link = &au1xpsc_sample_ac97_dai, |
48 | .num_links = 1, | 48 | .num_links = 1, |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static struct snd_soc_device au1xpsc_sample_ac97_devdata = { | 51 | static struct snd_soc_device au1xpsc_sample_ac97_devdata = { |
52 | .machine = &au1xpsc_sample_ac97_machine, | 52 | .card = &au1xpsc_sample_ac97_machine, |
53 | .platform = &au1xpsc_soc_platform, /* see dbdma2.c */ | 53 | .platform = &au1xpsc_soc_platform, /* see dbdma2.c */ |
54 | .codec_dev = &soc_codec_dev_ac97, | 54 | .codec_dev = &soc_codec_dev_ac97, |
55 | }; | 55 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ad1980.c b/sound/soc/blackfin/bf5xx-ad1980.c index 124425d22320..36c569a43ce1 100644 --- a/sound/soc/blackfin/bf5xx-ad1980.c +++ b/sound/soc/blackfin/bf5xx-ad1980.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "bf5xx-ac97-pcm.h" | 43 | #include "bf5xx-ac97-pcm.h" |
44 | #include "bf5xx-ac97.h" | 44 | #include "bf5xx-ac97.h" |
45 | 45 | ||
46 | static struct snd_soc_machine bf5xx_board; | 46 | static struct snd_soc_card bf5xx_board; |
47 | 47 | ||
48 | static int bf5xx_board_startup(struct snd_pcm_substream *substream) | 48 | static int bf5xx_board_startup(struct snd_pcm_substream *substream) |
49 | { | 49 | { |
@@ -67,14 +67,14 @@ static struct snd_soc_dai_link bf5xx_board_dai = { | |||
67 | .ops = &bf5xx_board_ops, | 67 | .ops = &bf5xx_board_ops, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct snd_soc_machine bf5xx_board = { | 70 | static struct snd_soc_card bf5xx_board = { |
71 | .name = "bf5xx-board", | 71 | .name = "bf5xx-board", |
72 | .dai_link = &bf5xx_board_dai, | 72 | .dai_link = &bf5xx_board_dai, |
73 | .num_links = 1, | 73 | .num_links = 1, |
74 | }; | 74 | }; |
75 | 75 | ||
76 | static struct snd_soc_device bf5xx_board_snd_devdata = { | 76 | static struct snd_soc_device bf5xx_board_snd_devdata = { |
77 | .machine = &bf5xx_board, | 77 | .card = &bf5xx_board, |
78 | .platform = &bf5xx_ac97_soc_platform, | 78 | .platform = &bf5xx_ac97_soc_platform, |
79 | .codec_dev = &soc_codec_dev_ad1980, | 79 | .codec_dev = &soc_codec_dev_ad1980, |
80 | }; | 80 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ad73311.c b/sound/soc/blackfin/bf5xx-ad73311.c index 47da49b9aeac..57da14799375 100644 --- a/sound/soc/blackfin/bf5xx-ad73311.c +++ b/sound/soc/blackfin/bf5xx-ad73311.c | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | #define GPIO_SE CONFIG_SND_BFIN_AD73311_SE | 66 | #define GPIO_SE CONFIG_SND_BFIN_AD73311_SE |
67 | 67 | ||
68 | static struct snd_soc_machine bf5xx_ad73311; | 68 | static struct snd_soc_card bf5xx_ad73311; |
69 | 69 | ||
70 | static int snd_ad73311_startup(void) | 70 | static int snd_ad73311_startup(void) |
71 | { | 71 | { |
@@ -190,7 +190,7 @@ static struct snd_soc_dai_link bf5xx_ad73311_dai = { | |||
190 | .ops = &bf5xx_ad73311_ops, | 190 | .ops = &bf5xx_ad73311_ops, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | static struct snd_soc_machine bf5xx_ad73311 = { | 193 | static struct snd_soc_card bf5xx_ad73311 = { |
194 | .name = "bf5xx_ad73311", | 194 | .name = "bf5xx_ad73311", |
195 | .probe = bf5xx_probe, | 195 | .probe = bf5xx_probe, |
196 | .dai_link = &bf5xx_ad73311_dai, | 196 | .dai_link = &bf5xx_ad73311_dai, |
@@ -198,7 +198,7 @@ static struct snd_soc_machine bf5xx_ad73311 = { | |||
198 | }; | 198 | }; |
199 | 199 | ||
200 | static struct snd_soc_device bf5xx_ad73311_snd_devdata = { | 200 | static struct snd_soc_device bf5xx_ad73311_snd_devdata = { |
201 | .machine = &bf5xx_ad73311, | 201 | .card = &bf5xx_ad73311, |
202 | .platform = &bf5xx_i2s_soc_platform, | 202 | .platform = &bf5xx_i2s_soc_platform, |
203 | .codec_dev = &soc_codec_dev_ad73311, | 203 | .codec_dev = &soc_codec_dev_ad73311, |
204 | }; | 204 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ssm2602.c b/sound/soc/blackfin/bf5xx-ssm2602.c index 744a90e765d9..0078dfcd95b9 100644 --- a/sound/soc/blackfin/bf5xx-ssm2602.c +++ b/sound/soc/blackfin/bf5xx-ssm2602.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include "bf5xx-i2s-pcm.h" | 44 | #include "bf5xx-i2s-pcm.h" |
45 | #include "bf5xx-i2s.h" | 45 | #include "bf5xx-i2s.h" |
46 | 46 | ||
47 | static struct snd_soc_machine bf5xx_ssm2602; | 47 | static struct snd_soc_card bf5xx_ssm2602; |
48 | 48 | ||
49 | static int bf5xx_ssm2602_startup(struct snd_pcm_substream *substream) | 49 | static int bf5xx_ssm2602_startup(struct snd_pcm_substream *substream) |
50 | { | 50 | { |
@@ -135,14 +135,14 @@ static struct ssm2602_setup_data bf5xx_ssm2602_setup = { | |||
135 | .i2c_address = 0x1b, | 135 | .i2c_address = 0x1b, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static struct snd_soc_machine bf5xx_ssm2602 = { | 138 | static struct snd_soc_card bf5xx_ssm2602 = { |
139 | .name = "bf5xx_ssm2602", | 139 | .name = "bf5xx_ssm2602", |
140 | .dai_link = &bf5xx_ssm2602_dai, | 140 | .dai_link = &bf5xx_ssm2602_dai, |
141 | .num_links = 1, | 141 | .num_links = 1, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static struct snd_soc_device bf5xx_ssm2602_snd_devdata = { | 144 | static struct snd_soc_device bf5xx_ssm2602_snd_devdata = { |
145 | .machine = &bf5xx_ssm2602, | 145 | .card = &bf5xx_ssm2602, |
146 | .platform = &bf5xx_i2s_soc_platform, | 146 | .platform = &bf5xx_i2s_soc_platform, |
147 | .codec_dev = &soc_codec_dev_ssm2602, | 147 | .codec_dev = &soc_codec_dev_ssm2602, |
148 | .codec_data = &bf5xx_ssm2602_setup, | 148 | .codec_data = &bf5xx_ssm2602_setup, |
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 9e6062cd6b59..2ce34d44b15c 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -128,7 +128,7 @@ static struct snd_soc_dai_link evm_dai = { | |||
128 | }; | 128 | }; |
129 | 129 | ||
130 | /* davinci-evm audio machine driver */ | 130 | /* davinci-evm audio machine driver */ |
131 | static struct snd_soc_machine snd_soc_machine_evm = { | 131 | static struct snd_soc_card snd_soc_card_evm = { |
132 | .name = "DaVinci EVM", | 132 | .name = "DaVinci EVM", |
133 | .dai_link = &evm_dai, | 133 | .dai_link = &evm_dai, |
134 | .num_links = 1, | 134 | .num_links = 1, |
@@ -142,7 +142,7 @@ static struct aic3x_setup_data evm_aic3x_setup = { | |||
142 | 142 | ||
143 | /* evm audio subsystem */ | 143 | /* evm audio subsystem */ |
144 | static struct snd_soc_device evm_snd_devdata = { | 144 | static struct snd_soc_device evm_snd_devdata = { |
145 | .machine = &snd_soc_machine_evm, | 145 | .card = &snd_soc_card_evm, |
146 | .platform = &davinci_soc_platform, | 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, |
diff --git a/sound/soc/davinci/davinci-i2s.c b/sound/soc/davinci/davinci-i2s.c index 11c20d0b7bcc..95df51e803b4 100644 --- a/sound/soc/davinci/davinci-i2s.c +++ b/sound/soc/davinci/davinci-i2s.c | |||
@@ -375,8 +375,8 @@ static int davinci_i2s_probe(struct platform_device *pdev, | |||
375 | struct snd_soc_dai *dai) | 375 | struct snd_soc_dai *dai) |
376 | { | 376 | { |
377 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 377 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
378 | struct snd_soc_machine *machine = socdev->machine; | 378 | struct snd_soc_card *card = socdev->card; |
379 | struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; | 379 | struct snd_soc_dai *cpu_dai = card->dai_link[pdev->id].cpu_dai; |
380 | struct davinci_mcbsp_dev *dev; | 380 | struct davinci_mcbsp_dev *dev; |
381 | struct resource *mem, *ioarea; | 381 | struct resource *mem, *ioarea; |
382 | struct evm_snd_platform_data *pdata; | 382 | struct evm_snd_platform_data *pdata; |
@@ -437,8 +437,8 @@ static void davinci_i2s_remove(struct platform_device *pdev, | |||
437 | struct snd_soc_dai *dai) | 437 | struct snd_soc_dai *dai) |
438 | { | 438 | { |
439 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 439 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
440 | struct snd_soc_machine *machine = socdev->machine; | 440 | struct snd_soc_card *card = socdev->card; |
441 | struct snd_soc_dai *cpu_dai = machine->dai_link[pdev->id].cpu_dai; | 441 | struct snd_soc_dai *cpu_dai = card->dai_link[pdev->id].cpu_dai; |
442 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; | 442 | struct davinci_mcbsp_dev *dev = cpu_dai->private_data; |
443 | struct resource *mem; | 443 | struct resource *mem; |
444 | 444 | ||
diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c index 69a8a769f4d8..fa38f9cd3506 100644 --- a/sound/soc/davinci/davinci-sffsdr.c +++ b/sound/soc/davinci/davinci-sffsdr.c | |||
@@ -73,7 +73,7 @@ static struct snd_soc_dai_link sffsdr_dai = { | |||
73 | }; | 73 | }; |
74 | 74 | ||
75 | /* davinci-sffsdr audio machine driver */ | 75 | /* davinci-sffsdr audio machine driver */ |
76 | static struct snd_soc_machine snd_soc_machine_sffsdr = { | 76 | static struct snd_soc_card snd_soc_sffsdr = { |
77 | .name = "DaVinci SFFSDR", | 77 | .name = "DaVinci SFFSDR", |
78 | .dai_link = &sffsdr_dai, | 78 | .dai_link = &sffsdr_dai, |
79 | .num_links = 1, | 79 | .num_links = 1, |
@@ -89,7 +89,7 @@ static struct pcm3008_setup_data sffsdr_pcm3008_setup = { | |||
89 | 89 | ||
90 | /* sffsdr audio subsystem */ | 90 | /* sffsdr audio subsystem */ |
91 | static struct snd_soc_device sffsdr_snd_devdata = { | 91 | static struct snd_soc_device sffsdr_snd_devdata = { |
92 | .machine = &snd_soc_machine_sffsdr, | 92 | .card = &snd_soc_sffsdr, |
93 | .platform = &davinci_soc_platform, | 93 | .platform = &davinci_soc_platform, |
94 | .codec_dev = &soc_codec_dev_pcm3008, | 94 | .codec_dev = &soc_codec_dev_pcm3008, |
95 | .codec_data = &sffsdr_pcm3008_setup, | 95 | .codec_data = &sffsdr_pcm3008_setup, |
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index d2d3da9729f2..bf92331b4768 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
@@ -284,7 +284,7 @@ static irqreturn_t fsl_dma_isr(int irq, void *dev_id) | |||
284 | * fsl_dma_new: initialize this PCM driver. | 284 | * fsl_dma_new: initialize this PCM driver. |
285 | * | 285 | * |
286 | * This function is called when the codec driver calls snd_soc_new_pcms(), | 286 | * This function is called when the codec driver calls snd_soc_new_pcms(), |
287 | * once for each .dai_link in the machine driver's snd_soc_machine | 287 | * once for each .dai_link in the machine driver's snd_soc_card |
288 | * structure. | 288 | * structure. |
289 | */ | 289 | */ |
290 | static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai, | 290 | static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai, |
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 94f89debde1f..1cf4d6eeb538 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -29,7 +29,7 @@ | |||
29 | struct mpc8610_hpcd_data { | 29 | struct mpc8610_hpcd_data { |
30 | struct snd_soc_device sound_devdata; | 30 | struct snd_soc_device sound_devdata; |
31 | struct snd_soc_dai_link dai; | 31 | struct snd_soc_dai_link dai; |
32 | struct snd_soc_machine machine; | 32 | struct snd_soc_card machine; |
33 | unsigned int dai_format; | 33 | unsigned int dai_format; |
34 | unsigned int codec_clk_direction; | 34 | unsigned int codec_clk_direction; |
35 | unsigned int cpu_clk_direction; | 35 | unsigned int cpu_clk_direction; |
@@ -185,7 +185,7 @@ static struct snd_soc_ops mpc8610_hpcd_ops = { | |||
185 | /** | 185 | /** |
186 | * mpc8610_hpcd_machine: ASoC machine data | 186 | * mpc8610_hpcd_machine: ASoC machine data |
187 | */ | 187 | */ |
188 | static struct snd_soc_machine mpc8610_hpcd_machine = { | 188 | static struct snd_soc_card mpc8610_hpcd_machine = { |
189 | .probe = mpc8610_hpcd_machine_probe, | 189 | .probe = mpc8610_hpcd_machine_probe, |
190 | .remove = mpc8610_hpcd_machine_remove, | 190 | .remove = mpc8610_hpcd_machine_remove, |
191 | .name = "MPC8610 HPCD", | 191 | .name = "MPC8610 HPCD", |
@@ -465,7 +465,7 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev, | |||
465 | goto error; | 465 | goto error; |
466 | } | 466 | } |
467 | 467 | ||
468 | machine_data->sound_devdata.machine = &mpc8610_hpcd_machine; | 468 | machine_data->sound_devdata.card = &mpc8610_hpcd_machine; |
469 | machine_data->sound_devdata.codec_dev = &soc_codec_device_cs4270; | 469 | machine_data->sound_devdata.codec_dev = &soc_codec_device_cs4270; |
470 | machine_data->sound_devdata.platform = &fsl_soc_platform; | 470 | machine_data->sound_devdata.platform = &fsl_soc_platform; |
471 | 471 | ||
diff --git a/sound/soc/fsl/soc-of-simple.c b/sound/soc/fsl/soc-of-simple.c index 0382fdac51cd..53be6491320a 100644 --- a/sound/soc/fsl/soc-of-simple.c +++ b/sound/soc/fsl/soc-of-simple.c | |||
@@ -31,7 +31,7 @@ struct of_snd_soc_device { | |||
31 | int id; | 31 | int id; |
32 | struct list_head list; | 32 | struct list_head list; |
33 | struct snd_soc_device device; | 33 | struct snd_soc_device device; |
34 | struct snd_soc_machine machine; | 34 | struct snd_soc_card card; |
35 | struct snd_soc_dai_link dai_link; | 35 | struct snd_soc_dai_link dai_link; |
36 | struct platform_device *pdev; | 36 | struct platform_device *pdev; |
37 | struct device_node *platform_node; | 37 | struct device_node *platform_node; |
@@ -58,9 +58,9 @@ of_snd_soc_get_device(struct device_node *codec_node) | |||
58 | /* Initialize the structure and add it to the global list */ | 58 | /* Initialize the structure and add it to the global list */ |
59 | of_soc->codec_node = codec_node; | 59 | of_soc->codec_node = codec_node; |
60 | of_soc->id = of_snd_soc_next_index++; | 60 | of_soc->id = of_snd_soc_next_index++; |
61 | of_soc->machine.dai_link = &of_soc->dai_link; | 61 | of_soc->card.dai_link = &of_soc->dai_link; |
62 | of_soc->machine.num_links = 1; | 62 | of_soc->card.num_links = 1; |
63 | of_soc->device.machine = &of_soc->machine; | 63 | of_soc->device.card = &of_soc->card; |
64 | of_soc->dai_link.ops = &of_snd_soc_ops; | 64 | of_soc->dai_link.ops = &of_snd_soc_ops; |
65 | list_add(&of_soc->list, &of_snd_soc_device_list); | 65 | list_add(&of_soc->list, &of_snd_soc_device_list); |
66 | 66 | ||
@@ -159,7 +159,7 @@ int of_snd_soc_register_platform(struct snd_soc_platform *platform, | |||
159 | of_soc->platform_node = node; | 159 | of_soc->platform_node = node; |
160 | of_soc->dai_link.cpu_dai = cpu_dai; | 160 | of_soc->dai_link.cpu_dai = cpu_dai; |
161 | of_soc->device.platform = platform; | 161 | of_soc->device.platform = platform; |
162 | of_soc->machine.name = of_soc->dai_link.cpu_dai->name; | 162 | of_soc->card.name = of_soc->dai_link.cpu_dai->name; |
163 | 163 | ||
164 | /* Now try to register the SoC device */ | 164 | /* Now try to register the SoC device */ |
165 | of_snd_soc_register_device(of_soc); | 165 | of_snd_soc_register_device(of_soc); |
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index fae3ad36e0bf..d216b4f9e14e 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -282,7 +282,7 @@ static struct snd_soc_dai_link n810_dai = { | |||
282 | }; | 282 | }; |
283 | 283 | ||
284 | /* Audio machine driver */ | 284 | /* Audio machine driver */ |
285 | static struct snd_soc_machine snd_soc_machine_n810 = { | 285 | static struct snd_soc_card snd_soc_n810 = { |
286 | .name = "N810", | 286 | .name = "N810", |
287 | .dai_link = &n810_dai, | 287 | .dai_link = &n810_dai, |
288 | .num_links = 1, | 288 | .num_links = 1, |
@@ -298,7 +298,7 @@ static struct aic3x_setup_data n810_aic33_setup = { | |||
298 | 298 | ||
299 | /* Audio subsystem */ | 299 | /* Audio subsystem */ |
300 | static struct snd_soc_device n810_snd_devdata = { | 300 | static struct snd_soc_device n810_snd_devdata = { |
301 | .machine = &snd_soc_machine_n810, | 301 | .card = &snd_soc_n810, |
302 | .platform = &omap_soc_platform, | 302 | .platform = &omap_soc_platform, |
303 | .codec_dev = &soc_codec_dev_aic3x, | 303 | .codec_dev = &soc_codec_dev_aic3x, |
304 | .codec_data = &n810_aic33_setup, | 304 | .codec_data = &n810_aic33_setup, |
diff --git a/sound/soc/omap/omap2evm.c b/sound/soc/omap/omap2evm.c index c37621357d00..5bea31157a94 100644 --- a/sound/soc/omap/omap2evm.c +++ b/sound/soc/omap/omap2evm.c | |||
@@ -90,7 +90,7 @@ static struct snd_soc_dai_link omap2evm_dai = { | |||
90 | }; | 90 | }; |
91 | 91 | ||
92 | /* Audio machine driver */ | 92 | /* Audio machine driver */ |
93 | static struct snd_soc_machine snd_soc_machine_omap2evm = { | 93 | static struct snd_soc_card snd_soc_omap2evm = { |
94 | .name = "omap2evm", | 94 | .name = "omap2evm", |
95 | .dai_link = &omap2evm_dai, | 95 | .dai_link = &omap2evm_dai, |
96 | .num_links = 1, | 96 | .num_links = 1, |
@@ -98,7 +98,7 @@ static struct snd_soc_machine snd_soc_machine_omap2evm = { | |||
98 | 98 | ||
99 | /* Audio subsystem */ | 99 | /* Audio subsystem */ |
100 | static struct snd_soc_device omap2evm_snd_devdata = { | 100 | static struct snd_soc_device omap2evm_snd_devdata = { |
101 | .machine = &snd_soc_machine_omap2evm, | 101 | .card = &snd_soc_omap2evm, |
102 | .platform = &omap_soc_platform, | 102 | .platform = &omap_soc_platform, |
103 | .codec_dev = &soc_codec_dev_twl4030, | 103 | .codec_dev = &soc_codec_dev_twl4030, |
104 | }; | 104 | }; |
diff --git a/sound/soc/omap/omap3beagle.c b/sound/soc/omap/omap3beagle.c index ec84a9bbc563..3ed25464627f 100644 --- a/sound/soc/omap/omap3beagle.c +++ b/sound/soc/omap/omap3beagle.c | |||
@@ -88,7 +88,7 @@ static struct snd_soc_dai_link omap3beagle_dai = { | |||
88 | }; | 88 | }; |
89 | 89 | ||
90 | /* Audio machine driver */ | 90 | /* Audio machine driver */ |
91 | static struct snd_soc_machine snd_soc_machine_omap3beagle = { | 91 | static struct snd_soc_card snd_soc_omap3beagle = { |
92 | .name = "omap3beagle", | 92 | .name = "omap3beagle", |
93 | .dai_link = &omap3beagle_dai, | 93 | .dai_link = &omap3beagle_dai, |
94 | .num_links = 1, | 94 | .num_links = 1, |
@@ -96,7 +96,7 @@ static struct snd_soc_machine snd_soc_machine_omap3beagle = { | |||
96 | 96 | ||
97 | /* Audio subsystem */ | 97 | /* Audio subsystem */ |
98 | static struct snd_soc_device omap3beagle_snd_devdata = { | 98 | static struct snd_soc_device omap3beagle_snd_devdata = { |
99 | .machine = &snd_soc_machine_omap3beagle, | 99 | .card = &snd_soc_omap3beagle, |
100 | .platform = &omap_soc_platform, | 100 | .platform = &omap_soc_platform, |
101 | .codec_dev = &soc_codec_dev_twl4030, | 101 | .codec_dev = &soc_codec_dev_twl4030, |
102 | }; | 102 | }; |
diff --git a/sound/soc/omap/osk5912.c b/sound/soc/omap/osk5912.c index 0fe733796898..7a8f14d0c772 100644 --- a/sound/soc/omap/osk5912.c +++ b/sound/soc/omap/osk5912.c | |||
@@ -143,7 +143,7 @@ static struct snd_soc_dai_link osk_dai = { | |||
143 | }; | 143 | }; |
144 | 144 | ||
145 | /* Audio machine driver */ | 145 | /* Audio machine driver */ |
146 | static struct snd_soc_machine snd_soc_machine_osk = { | 146 | static struct snd_soc_card snd_soc_card_osk = { |
147 | .name = "OSK5912", | 147 | .name = "OSK5912", |
148 | .dai_link = &osk_dai, | 148 | .dai_link = &osk_dai, |
149 | .num_links = 1, | 149 | .num_links = 1, |
@@ -151,7 +151,7 @@ static struct snd_soc_machine snd_soc_machine_osk = { | |||
151 | 151 | ||
152 | /* Audio subsystem */ | 152 | /* Audio subsystem */ |
153 | static struct snd_soc_device osk_snd_devdata = { | 153 | static struct snd_soc_device osk_snd_devdata = { |
154 | .machine = &snd_soc_machine_osk, | 154 | .card = &snd_soc_card_osk, |
155 | .platform = &omap_soc_platform, | 155 | .platform = &omap_soc_platform, |
156 | .codec_dev = &soc_codec_dev_tlv320aic23, | 156 | .codec_dev = &soc_codec_dev_tlv320aic23, |
157 | }; | 157 | }; |
diff --git a/sound/soc/omap/overo.c b/sound/soc/omap/overo.c index c26d1de7da51..eea0c372bb3f 100644 --- a/sound/soc/omap/overo.c +++ b/sound/soc/omap/overo.c | |||
@@ -88,7 +88,7 @@ static struct snd_soc_dai_link overo_dai = { | |||
88 | }; | 88 | }; |
89 | 89 | ||
90 | /* Audio machine driver */ | 90 | /* Audio machine driver */ |
91 | static struct snd_soc_machine snd_soc_machine_overo = { | 91 | static struct snd_soc_card snd_soc_card_overo = { |
92 | .name = "overo", | 92 | .name = "overo", |
93 | .dai_link = &overo_dai, | 93 | .dai_link = &overo_dai, |
94 | .num_links = 1, | 94 | .num_links = 1, |
@@ -96,7 +96,7 @@ static struct snd_soc_machine snd_soc_machine_overo = { | |||
96 | 96 | ||
97 | /* Audio subsystem */ | 97 | /* Audio subsystem */ |
98 | static struct snd_soc_device overo_snd_devdata = { | 98 | static struct snd_soc_device overo_snd_devdata = { |
99 | .machine = &snd_soc_machine_overo, | 99 | .card = &snd_soc_card_overo, |
100 | .platform = &omap_soc_platform, | 100 | .platform = &omap_soc_platform, |
101 | .codec_dev = &soc_codec_dev_twl4030, | 101 | .codec_dev = &soc_codec_dev_twl4030, |
102 | }; | 102 | }; |
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 | }; |
diff --git a/sound/soc/s3c24xx/ln2440sbc_alc650.c b/sound/soc/s3c24xx/ln2440sbc_alc650.c index 4eab2c19c454..a70cbc0fa070 100644 --- a/sound/soc/s3c24xx/ln2440sbc_alc650.c +++ b/sound/soc/s3c24xx/ln2440sbc_alc650.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "s3c24xx-pcm.h" | 27 | #include "s3c24xx-pcm.h" |
28 | #include "s3c24xx-ac97.h" | 28 | #include "s3c24xx-ac97.h" |
29 | 29 | ||
30 | static struct snd_soc_machine ln2440sbc; | 30 | static struct snd_soc_card ln2440sbc; |
31 | 31 | ||
32 | static struct snd_soc_dai_link ln2440sbc_dai[] = { | 32 | static struct snd_soc_dai_link ln2440sbc_dai[] = { |
33 | { | 33 | { |
@@ -38,14 +38,14 @@ static struct snd_soc_dai_link ln2440sbc_dai[] = { | |||
38 | }, | 38 | }, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static struct snd_soc_machine ln2440sbc = { | 41 | static struct snd_soc_card ln2440sbc = { |
42 | .name = "LN2440SBC", | 42 | .name = "LN2440SBC", |
43 | .dai_link = ln2440sbc_dai, | 43 | .dai_link = ln2440sbc_dai, |
44 | .num_links = ARRAY_SIZE(ln2440sbc_dai), | 44 | .num_links = ARRAY_SIZE(ln2440sbc_dai), |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static struct snd_soc_device ln2440sbc_snd_ac97_devdata = { | 47 | static struct snd_soc_device ln2440sbc_snd_ac97_devdata = { |
48 | .machine = &ln2440sbc, | 48 | .card = &ln2440sbc, |
49 | .platform = &s3c24xx_soc_platform, | 49 | .platform = &s3c24xx_soc_platform, |
50 | .codec_dev = &soc_codec_dev_ac97, | 50 | .codec_dev = &soc_codec_dev_ac97, |
51 | }; | 51 | }; |
diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c index 87ddfefcc2fb..528fc3f1b45b 100644 --- a/sound/soc/s3c24xx/neo1973_wm8753.c +++ b/sound/soc/s3c24xx/neo1973_wm8753.c | |||
@@ -59,7 +59,7 @@ | |||
59 | #define NEO_CAPTURE_HEADSET 7 | 59 | #define NEO_CAPTURE_HEADSET 7 |
60 | #define NEO_CAPTURE_BLUETOOTH 8 | 60 | #define NEO_CAPTURE_BLUETOOTH 8 |
61 | 61 | ||
62 | static struct snd_soc_machine neo1973; | 62 | static struct snd_soc_card neo1973; |
63 | static struct i2c_client *i2c; | 63 | static struct i2c_client *i2c; |
64 | 64 | ||
65 | static int neo1973_hifi_hw_params(struct snd_pcm_substream *substream, | 65 | static int neo1973_hifi_hw_params(struct snd_pcm_substream *substream, |
@@ -579,7 +579,7 @@ static struct snd_soc_dai_link neo1973_dai[] = { | |||
579 | }, | 579 | }, |
580 | }; | 580 | }; |
581 | 581 | ||
582 | static struct snd_soc_machine neo1973 = { | 582 | static struct snd_soc_card neo1973 = { |
583 | .name = "neo1973", | 583 | .name = "neo1973", |
584 | .dai_link = neo1973_dai, | 584 | .dai_link = neo1973_dai, |
585 | .num_links = ARRAY_SIZE(neo1973_dai), | 585 | .num_links = ARRAY_SIZE(neo1973_dai), |
@@ -591,7 +591,7 @@ static struct wm8753_setup_data neo1973_wm8753_setup = { | |||
591 | }; | 591 | }; |
592 | 592 | ||
593 | static struct snd_soc_device neo1973_snd_devdata = { | 593 | static struct snd_soc_device neo1973_snd_devdata = { |
594 | .machine = &neo1973, | 594 | .card = &neo1973, |
595 | .platform = &s3c24xx_soc_platform, | 595 | .platform = &s3c24xx_soc_platform, |
596 | .codec_dev = &soc_codec_dev_wm8753, | 596 | .codec_dev = &soc_codec_dev_wm8753, |
597 | .codec_data = &neo1973_wm8753_setup, | 597 | .codec_data = &neo1973_wm8753_setup, |
diff --git a/sound/soc/s3c24xx/s3c24xx_uda134x.c b/sound/soc/s3c24xx/s3c24xx_uda134x.c index 92d90f2f6901..23325fca1f64 100644 --- a/sound/soc/s3c24xx/s3c24xx_uda134x.c +++ b/sound/soc/s3c24xx/s3c24xx_uda134x.c | |||
@@ -232,7 +232,7 @@ static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = { | |||
232 | .ops = &s3c24xx_uda134x_ops, | 232 | .ops = &s3c24xx_uda134x_ops, |
233 | }; | 233 | }; |
234 | 234 | ||
235 | static struct snd_soc_machine snd_soc_machine_s3c24xx_uda134x = { | 235 | static struct snd_soc_card snd_soc_s3c24xx_uda134x = { |
236 | .name = "S3C24XX_UDA134X", | 236 | .name = "S3C24XX_UDA134X", |
237 | .dai_link = &s3c24xx_uda134x_dai_link, | 237 | .dai_link = &s3c24xx_uda134x_dai_link, |
238 | .num_links = 1, | 238 | .num_links = 1, |
@@ -270,7 +270,7 @@ static struct uda134x_platform_data s3c24xx_uda134x = { | |||
270 | }; | 270 | }; |
271 | 271 | ||
272 | static struct snd_soc_device s3c24xx_uda134x_snd_devdata = { | 272 | static struct snd_soc_device s3c24xx_uda134x_snd_devdata = { |
273 | .machine = &snd_soc_machine_s3c24xx_uda134x, | 273 | .card = &snd_soc_s3c24xx_uda134x, |
274 | .platform = &s3c24xx_soc_platform, | 274 | .platform = &s3c24xx_soc_platform, |
275 | .codec_dev = &soc_codec_dev_uda134x, | 275 | .codec_dev = &soc_codec_dev_uda134x, |
276 | .codec_data = &s3c24xx_uda134x, | 276 | .codec_data = &s3c24xx_uda134x, |
diff --git a/sound/soc/s3c24xx/smdk2443_wm9710.c b/sound/soc/s3c24xx/smdk2443_wm9710.c index 8515d6ff03f2..3d2e6a0417ec 100644 --- a/sound/soc/s3c24xx/smdk2443_wm9710.c +++ b/sound/soc/s3c24xx/smdk2443_wm9710.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "s3c24xx-pcm.h" | 23 | #include "s3c24xx-pcm.h" |
24 | #include "s3c24xx-ac97.h" | 24 | #include "s3c24xx-ac97.h" |
25 | 25 | ||
26 | static struct snd_soc_machine smdk2443; | 26 | static struct snd_soc_card smdk2443; |
27 | 27 | ||
28 | static struct snd_soc_dai_link smdk2443_dai[] = { | 28 | static struct snd_soc_dai_link smdk2443_dai[] = { |
29 | { | 29 | { |
@@ -34,14 +34,14 @@ static struct snd_soc_dai_link smdk2443_dai[] = { | |||
34 | }, | 34 | }, |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static struct snd_soc_machine smdk2443 = { | 37 | static struct snd_soc_card smdk2443 = { |
38 | .name = "SMDK2443", | 38 | .name = "SMDK2443", |
39 | .dai_link = smdk2443_dai, | 39 | .dai_link = smdk2443_dai, |
40 | .num_links = ARRAY_SIZE(smdk2443_dai), | 40 | .num_links = ARRAY_SIZE(smdk2443_dai), |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct snd_soc_device smdk2443_snd_ac97_devdata = { | 43 | static struct snd_soc_device smdk2443_snd_ac97_devdata = { |
44 | .machine = &smdk2443, | 44 | .card = &smdk2443, |
45 | .platform = &s3c24xx_soc_platform, | 45 | .platform = &s3c24xx_soc_platform, |
46 | .codec_dev = &soc_codec_dev_ac97, | 46 | .codec_dev = &soc_codec_dev_ac97, |
47 | }; | 47 | }; |
diff --git a/sound/soc/sh/sh7760-ac97.c b/sound/soc/sh/sh7760-ac97.c index 92bfaf4774a7..8b44f9c8a9ff 100644 --- a/sound/soc/sh/sh7760-ac97.c +++ b/sound/soc/sh/sh7760-ac97.c | |||
@@ -38,14 +38,14 @@ static struct snd_soc_dai_link sh7760_ac97_dai = { | |||
38 | .ops = NULL, | 38 | .ops = NULL, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static struct snd_soc_machine sh7760_ac97_soc_machine = { | 41 | static struct snd_soc_card sh7760_ac97_soc_machine = { |
42 | .name = "SH7760 AC97", | 42 | .name = "SH7760 AC97", |
43 | .dai_link = &sh7760_ac97_dai, | 43 | .dai_link = &sh7760_ac97_dai, |
44 | .num_links = 1, | 44 | .num_links = 1, |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static struct snd_soc_device sh7760_ac97_snd_devdata = { | 47 | static struct snd_soc_device sh7760_ac97_snd_devdata = { |
48 | .machine = &sh7760_ac97_soc_machine, | 48 | .card = &sh7760_ac97_soc_machine, |
49 | .platform = &sh7760_soc_platform, | 49 | .platform = &sh7760_soc_platform, |
50 | .codec_dev = &soc_codec_dev_ac97, | 50 | .codec_dev = &soc_codec_dev_ac97, |
51 | }; | 51 | }; |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 9feaa7b6dc34..c5cb9516fea4 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -620,7 +620,7 @@ static struct snd_pcm_ops soc_pcm_ops = { | |||
620 | static int soc_suspend(struct platform_device *pdev, pm_message_t state) | 620 | static int soc_suspend(struct platform_device *pdev, pm_message_t state) |
621 | { | 621 | { |
622 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 622 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
623 | struct snd_soc_machine *machine = socdev->machine; | 623 | struct snd_soc_card *card = socdev->card; |
624 | struct snd_soc_platform *platform = socdev->platform; | 624 | struct snd_soc_platform *platform = socdev->platform; |
625 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; | 625 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; |
626 | struct snd_soc_codec *codec = socdev->codec; | 626 | struct snd_soc_codec *codec = socdev->codec; |
@@ -644,14 +644,14 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state) | |||
644 | } | 644 | } |
645 | 645 | ||
646 | /* suspend all pcms */ | 646 | /* suspend all pcms */ |
647 | for (i = 0; i < machine->num_links; i++) | 647 | for (i = 0; i < card->num_links; i++) |
648 | snd_pcm_suspend_all(machine->dai_link[i].pcm); | 648 | snd_pcm_suspend_all(card->dai_link[i].pcm); |
649 | 649 | ||
650 | if (machine->suspend_pre) | 650 | if (card->suspend_pre) |
651 | machine->suspend_pre(pdev, state); | 651 | card->suspend_pre(pdev, state); |
652 | 652 | ||
653 | for (i = 0; i < machine->num_links; i++) { | 653 | for (i = 0; i < card->num_links; i++) { |
654 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 654 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
655 | if (cpu_dai->suspend && cpu_dai->type != SND_SOC_DAI_AC97) | 655 | if (cpu_dai->suspend && cpu_dai->type != SND_SOC_DAI_AC97) |
656 | cpu_dai->suspend(pdev, cpu_dai); | 656 | cpu_dai->suspend(pdev, cpu_dai); |
657 | if (platform->suspend) | 657 | if (platform->suspend) |
@@ -676,14 +676,14 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state) | |||
676 | if (codec_dev->suspend) | 676 | if (codec_dev->suspend) |
677 | codec_dev->suspend(pdev, state); | 677 | codec_dev->suspend(pdev, state); |
678 | 678 | ||
679 | for (i = 0; i < machine->num_links; i++) { | 679 | for (i = 0; i < card->num_links; i++) { |
680 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 680 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
681 | if (cpu_dai->suspend && cpu_dai->type == SND_SOC_DAI_AC97) | 681 | if (cpu_dai->suspend && cpu_dai->type == SND_SOC_DAI_AC97) |
682 | cpu_dai->suspend(pdev, cpu_dai); | 682 | cpu_dai->suspend(pdev, cpu_dai); |
683 | } | 683 | } |
684 | 684 | ||
685 | if (machine->suspend_post) | 685 | if (card->suspend_post) |
686 | machine->suspend_post(pdev, state); | 686 | card->suspend_post(pdev, state); |
687 | 687 | ||
688 | return 0; | 688 | return 0; |
689 | } | 689 | } |
@@ -696,7 +696,7 @@ static void soc_resume_deferred(struct work_struct *work) | |||
696 | struct snd_soc_device *socdev = container_of(work, | 696 | struct snd_soc_device *socdev = container_of(work, |
697 | struct snd_soc_device, | 697 | struct snd_soc_device, |
698 | deferred_resume_work); | 698 | deferred_resume_work); |
699 | struct snd_soc_machine *machine = socdev->machine; | 699 | struct snd_soc_card *card = socdev->card; |
700 | struct snd_soc_platform *platform = socdev->platform; | 700 | struct snd_soc_platform *platform = socdev->platform; |
701 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; | 701 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; |
702 | struct snd_soc_codec *codec = socdev->codec; | 702 | struct snd_soc_codec *codec = socdev->codec; |
@@ -709,11 +709,11 @@ static void soc_resume_deferred(struct work_struct *work) | |||
709 | 709 | ||
710 | dev_info(socdev->dev, "starting resume work\n"); | 710 | dev_info(socdev->dev, "starting resume work\n"); |
711 | 711 | ||
712 | if (machine->resume_pre) | 712 | if (card->resume_pre) |
713 | machine->resume_pre(pdev); | 713 | card->resume_pre(pdev); |
714 | 714 | ||
715 | for (i = 0; i < machine->num_links; i++) { | 715 | for (i = 0; i < card->num_links; i++) { |
716 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 716 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
717 | if (cpu_dai->resume && cpu_dai->type == SND_SOC_DAI_AC97) | 717 | if (cpu_dai->resume && cpu_dai->type == SND_SOC_DAI_AC97) |
718 | cpu_dai->resume(pdev, cpu_dai); | 718 | cpu_dai->resume(pdev, cpu_dai); |
719 | } | 719 | } |
@@ -739,16 +739,16 @@ static void soc_resume_deferred(struct work_struct *work) | |||
739 | dai->dai_ops.digital_mute(dai, 0); | 739 | dai->dai_ops.digital_mute(dai, 0); |
740 | } | 740 | } |
741 | 741 | ||
742 | for (i = 0; i < machine->num_links; i++) { | 742 | for (i = 0; i < card->num_links; i++) { |
743 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 743 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
744 | if (cpu_dai->resume && cpu_dai->type != SND_SOC_DAI_AC97) | 744 | if (cpu_dai->resume && cpu_dai->type != SND_SOC_DAI_AC97) |
745 | cpu_dai->resume(pdev, cpu_dai); | 745 | cpu_dai->resume(pdev, cpu_dai); |
746 | if (platform->resume) | 746 | if (platform->resume) |
747 | platform->resume(pdev, cpu_dai); | 747 | platform->resume(pdev, cpu_dai); |
748 | } | 748 | } |
749 | 749 | ||
750 | if (machine->resume_post) | 750 | if (card->resume_post) |
751 | machine->resume_post(pdev); | 751 | card->resume_post(pdev); |
752 | 752 | ||
753 | dev_info(socdev->dev, "resume work completed\n"); | 753 | dev_info(socdev->dev, "resume work completed\n"); |
754 | 754 | ||
@@ -779,18 +779,18 @@ static int soc_probe(struct platform_device *pdev) | |||
779 | { | 779 | { |
780 | int ret = 0, i; | 780 | int ret = 0, i; |
781 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 781 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
782 | struct snd_soc_machine *machine = socdev->machine; | 782 | struct snd_soc_card *card = socdev->card; |
783 | struct snd_soc_platform *platform = socdev->platform; | 783 | struct snd_soc_platform *platform = socdev->platform; |
784 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; | 784 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; |
785 | 785 | ||
786 | if (machine->probe) { | 786 | if (card->probe) { |
787 | ret = machine->probe(pdev); | 787 | ret = card->probe(pdev); |
788 | if (ret < 0) | 788 | if (ret < 0) |
789 | return ret; | 789 | return ret; |
790 | } | 790 | } |
791 | 791 | ||
792 | for (i = 0; i < machine->num_links; i++) { | 792 | for (i = 0; i < card->num_links; i++) { |
793 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 793 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
794 | if (cpu_dai->probe) { | 794 | if (cpu_dai->probe) { |
795 | ret = cpu_dai->probe(pdev, cpu_dai); | 795 | ret = cpu_dai->probe(pdev, cpu_dai); |
796 | if (ret < 0) | 796 | if (ret < 0) |
@@ -825,13 +825,13 @@ platform_err: | |||
825 | 825 | ||
826 | cpu_dai_err: | 826 | cpu_dai_err: |
827 | for (i--; i >= 0; i--) { | 827 | for (i--; i >= 0; i--) { |
828 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 828 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
829 | if (cpu_dai->remove) | 829 | if (cpu_dai->remove) |
830 | cpu_dai->remove(pdev, cpu_dai); | 830 | cpu_dai->remove(pdev, cpu_dai); |
831 | } | 831 | } |
832 | 832 | ||
833 | if (machine->remove) | 833 | if (card->remove) |
834 | machine->remove(pdev); | 834 | card->remove(pdev); |
835 | 835 | ||
836 | return ret; | 836 | return ret; |
837 | } | 837 | } |
@@ -841,7 +841,7 @@ static int soc_remove(struct platform_device *pdev) | |||
841 | { | 841 | { |
842 | int i; | 842 | int i; |
843 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); | 843 | struct snd_soc_device *socdev = platform_get_drvdata(pdev); |
844 | struct snd_soc_machine *machine = socdev->machine; | 844 | struct snd_soc_card *card = socdev->card; |
845 | struct snd_soc_platform *platform = socdev->platform; | 845 | struct snd_soc_platform *platform = socdev->platform; |
846 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; | 846 | struct snd_soc_codec_device *codec_dev = socdev->codec_dev; |
847 | 847 | ||
@@ -853,14 +853,14 @@ static int soc_remove(struct platform_device *pdev) | |||
853 | if (codec_dev->remove) | 853 | if (codec_dev->remove) |
854 | codec_dev->remove(pdev); | 854 | codec_dev->remove(pdev); |
855 | 855 | ||
856 | for (i = 0; i < machine->num_links; i++) { | 856 | for (i = 0; i < card->num_links; i++) { |
857 | struct snd_soc_dai *cpu_dai = machine->dai_link[i].cpu_dai; | 857 | struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai; |
858 | if (cpu_dai->remove) | 858 | if (cpu_dai->remove) |
859 | cpu_dai->remove(pdev, cpu_dai); | 859 | cpu_dai->remove(pdev, cpu_dai); |
860 | } | 860 | } |
861 | 861 | ||
862 | if (machine->remove) | 862 | if (card->remove) |
863 | machine->remove(pdev); | 863 | card->remove(pdev); |
864 | 864 | ||
865 | return 0; | 865 | return 0; |
866 | } | 866 | } |
@@ -1212,7 +1212,7 @@ EXPORT_SYMBOL_GPL(snd_soc_test_bits); | |||
1212 | int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid) | 1212 | int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid) |
1213 | { | 1213 | { |
1214 | struct snd_soc_codec *codec = socdev->codec; | 1214 | struct snd_soc_codec *codec = socdev->codec; |
1215 | struct snd_soc_machine *machine = socdev->machine; | 1215 | struct snd_soc_card *card = socdev->card; |
1216 | int ret = 0, i; | 1216 | int ret = 0, i; |
1217 | 1217 | ||
1218 | mutex_lock(&codec->mutex); | 1218 | mutex_lock(&codec->mutex); |
@@ -1231,11 +1231,11 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid) | |||
1231 | strncpy(codec->card->driver, codec->name, sizeof(codec->card->driver)); | 1231 | strncpy(codec->card->driver, codec->name, sizeof(codec->card->driver)); |
1232 | 1232 | ||
1233 | /* create the pcms */ | 1233 | /* create the pcms */ |
1234 | for (i = 0; i < machine->num_links; i++) { | 1234 | for (i = 0; i < card->num_links; i++) { |
1235 | ret = soc_new_pcm(socdev, &machine->dai_link[i], i); | 1235 | ret = soc_new_pcm(socdev, &card->dai_link[i], i); |
1236 | if (ret < 0) { | 1236 | if (ret < 0) { |
1237 | printk(KERN_ERR "asoc: can't create pcm %s\n", | 1237 | printk(KERN_ERR "asoc: can't create pcm %s\n", |
1238 | machine->dai_link[i].stream_name); | 1238 | card->dai_link[i].stream_name); |
1239 | mutex_unlock(&codec->mutex); | 1239 | mutex_unlock(&codec->mutex); |
1240 | return ret; | 1240 | return ret; |
1241 | } | 1241 | } |
@@ -1258,26 +1258,26 @@ EXPORT_SYMBOL_GPL(snd_soc_new_pcms); | |||
1258 | int snd_soc_register_card(struct snd_soc_device *socdev) | 1258 | int snd_soc_register_card(struct snd_soc_device *socdev) |
1259 | { | 1259 | { |
1260 | struct snd_soc_codec *codec = socdev->codec; | 1260 | struct snd_soc_codec *codec = socdev->codec; |
1261 | struct snd_soc_machine *machine = socdev->machine; | 1261 | struct snd_soc_card *card = socdev->card; |
1262 | int ret = 0, i, ac97 = 0, err = 0; | 1262 | int ret = 0, i, ac97 = 0, err = 0; |
1263 | 1263 | ||
1264 | for (i = 0; i < machine->num_links; i++) { | 1264 | for (i = 0; i < card->num_links; i++) { |
1265 | if (socdev->machine->dai_link[i].init) { | 1265 | if (card->dai_link[i].init) { |
1266 | err = socdev->machine->dai_link[i].init(codec); | 1266 | err = card->dai_link[i].init(codec); |
1267 | if (err < 0) { | 1267 | if (err < 0) { |
1268 | printk(KERN_ERR "asoc: failed to init %s\n", | 1268 | printk(KERN_ERR "asoc: failed to init %s\n", |
1269 | socdev->machine->dai_link[i].stream_name); | 1269 | card->dai_link[i].stream_name); |
1270 | continue; | 1270 | continue; |
1271 | } | 1271 | } |
1272 | } | 1272 | } |
1273 | if (socdev->machine->dai_link[i].codec_dai->type == | 1273 | if (card->dai_link[i].codec_dai->type == |
1274 | SND_SOC_DAI_AC97_BUS) | 1274 | SND_SOC_DAI_AC97_BUS) |
1275 | ac97 = 1; | 1275 | ac97 = 1; |
1276 | } | 1276 | } |
1277 | snprintf(codec->card->shortname, sizeof(codec->card->shortname), | 1277 | snprintf(codec->card->shortname, sizeof(codec->card->shortname), |
1278 | "%s", machine->name); | 1278 | "%s", card->name); |
1279 | snprintf(codec->card->longname, sizeof(codec->card->longname), | 1279 | snprintf(codec->card->longname, sizeof(codec->card->longname), |
1280 | "%s (%s)", machine->name, codec->name); | 1280 | "%s (%s)", card->name, codec->name); |
1281 | 1281 | ||
1282 | ret = snd_card_register(codec->card); | 1282 | ret = snd_card_register(codec->card); |
1283 | if (ret < 0) { | 1283 | if (ret < 0) { |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 0fecbb44726b..61d7d85aa578 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1402,11 +1402,11 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev, | |||
1402 | enum snd_soc_bias_level level) | 1402 | enum snd_soc_bias_level level) |
1403 | { | 1403 | { |
1404 | struct snd_soc_codec *codec = socdev->codec; | 1404 | struct snd_soc_codec *codec = socdev->codec; |
1405 | struct snd_soc_machine *machine = socdev->machine; | 1405 | struct snd_soc_card *card = socdev->card; |
1406 | int ret = 0; | 1406 | int ret = 0; |
1407 | 1407 | ||
1408 | if (machine->set_bias_level) | 1408 | if (card->set_bias_level) |
1409 | ret = machine->set_bias_level(machine, level); | 1409 | ret = card->set_bias_level(card, level); |
1410 | if (ret == 0 && codec->set_bias_level) | 1410 | if (ret == 0 && codec->set_bias_level) |
1411 | ret = codec->set_bias_level(codec, level); | 1411 | ret = codec->set_bias_level(codec, level); |
1412 | 1412 | ||