diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /sound/pcmcia | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'sound/pcmcia')
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.c | 18 | ||||
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf.h | 3 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxp_ops.c | 2 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxpocket.c | 17 | ||||
-rw-r--r-- | sound/pcmcia/vx/vxpocket.h | 1 |
5 files changed, 17 insertions, 24 deletions
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index 7ab9174a8a84..ce33be0e4e98 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c | |||
@@ -142,10 +142,9 @@ static int snd_pdacf_probe(struct pcmcia_device *link) | |||
142 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; | 142 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; |
143 | link->resource[0]->end = 16; | 143 | link->resource[0]->end = 16; |
144 | 144 | ||
145 | link->conf.Attributes = CONF_ENABLE_IRQ | CONF_ENABLE_PULSE_IRQ; | 145 | link->config_flags = CONF_ENABLE_IRQ | CONF_ENABLE_PULSE_IRQ; |
146 | link->conf.IntType = INT_MEMORY_AND_IO; | 146 | link->config_index = 1; |
147 | link->conf.ConfigIndex = 1; | 147 | link->config_regs = PRESENT_OPTION; |
148 | link->conf.Present = PRESENT_OPTION; | ||
149 | 148 | ||
150 | return pdacf_config(link); | 149 | return pdacf_config(link); |
151 | } | 150 | } |
@@ -217,7 +216,8 @@ static int pdacf_config(struct pcmcia_device *link) | |||
217 | int ret; | 216 | int ret; |
218 | 217 | ||
219 | snd_printdd(KERN_DEBUG "pdacf_config called\n"); | 218 | snd_printdd(KERN_DEBUG "pdacf_config called\n"); |
220 | link->conf.ConfigIndex = 0x5; | 219 | link->config_index = 0x5; |
220 | link->config_flags |= CONF_ENABLE_IRQ | CONF_ENABLE_PULSE_IRQ; | ||
221 | 221 | ||
222 | ret = pcmcia_request_io(link); | 222 | ret = pcmcia_request_io(link); |
223 | if (ret) | 223 | if (ret) |
@@ -227,7 +227,7 @@ static int pdacf_config(struct pcmcia_device *link) | |||
227 | if (ret) | 227 | if (ret) |
228 | goto failed; | 228 | goto failed; |
229 | 229 | ||
230 | ret = pcmcia_request_configuration(link, &link->conf); | 230 | ret = pcmcia_enable_device(link); |
231 | if (ret) | 231 | if (ret) |
232 | goto failed; | 232 | goto failed; |
233 | 233 | ||
@@ -278,7 +278,7 @@ static int pdacf_resume(struct pcmcia_device *link) | |||
278 | /* | 278 | /* |
279 | * Module entry points | 279 | * Module entry points |
280 | */ | 280 | */ |
281 | static struct pcmcia_device_id snd_pdacf_ids[] = { | 281 | static const struct pcmcia_device_id snd_pdacf_ids[] = { |
282 | /* this is too general PCMCIA_DEVICE_MANF_CARD(0x015d, 0x4c45), */ | 282 | /* this is too general PCMCIA_DEVICE_MANF_CARD(0x015d, 0x4c45), */ |
283 | PCMCIA_DEVICE_PROD_ID12("Core Sound","PDAudio-CF",0x396d19d2,0x71717b49), | 283 | PCMCIA_DEVICE_PROD_ID12("Core Sound","PDAudio-CF",0x396d19d2,0x71717b49), |
284 | PCMCIA_DEVICE_NULL | 284 | PCMCIA_DEVICE_NULL |
@@ -287,9 +287,7 @@ MODULE_DEVICE_TABLE(pcmcia, snd_pdacf_ids); | |||
287 | 287 | ||
288 | static struct pcmcia_driver pdacf_cs_driver = { | 288 | static struct pcmcia_driver pdacf_cs_driver = { |
289 | .owner = THIS_MODULE, | 289 | .owner = THIS_MODULE, |
290 | .drv = { | 290 | .name = "snd-pdaudiocf", |
291 | .name = "snd-pdaudiocf", | ||
292 | }, | ||
293 | .probe = snd_pdacf_probe, | 291 | .probe = snd_pdacf_probe, |
294 | .remove = snd_pdacf_detach, | 292 | .remove = snd_pdacf_detach, |
295 | .id_table = snd_pdacf_ids, | 293 | .id_table = snd_pdacf_ids, |
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.h b/sound/pcmcia/pdaudiocf/pdaudiocf.h index 5cc3e4573074..6ce9ad700290 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.h +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.h | |||
@@ -22,9 +22,8 @@ | |||
22 | #define __PDAUDIOCF_H | 22 | #define __PDAUDIOCF_H |
23 | 23 | ||
24 | #include <sound/pcm.h> | 24 | #include <sound/pcm.h> |
25 | #include <asm/io.h> | 25 | #include <linux/io.h> |
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <pcmcia/cs.h> | ||
28 | #include <pcmcia/cistpl.h> | 27 | #include <pcmcia/cistpl.h> |
29 | #include <pcmcia/ds.h> | 28 | #include <pcmcia/ds.h> |
30 | 29 | ||
diff --git a/sound/pcmcia/vx/vxp_ops.c b/sound/pcmcia/vx/vxp_ops.c index 989e04abb520..fe33e122e372 100644 --- a/sound/pcmcia/vx/vxp_ops.c +++ b/sound/pcmcia/vx/vxp_ops.c | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/device.h> | 24 | #include <linux/device.h> |
25 | #include <linux/firmware.h> | 25 | #include <linux/firmware.h> |
26 | #include <linux/io.h> | ||
26 | #include <sound/core.h> | 27 | #include <sound/core.h> |
27 | #include <asm/io.h> | ||
28 | #include "vxpocket.h" | 28 | #include "vxpocket.h" |
29 | 29 | ||
30 | 30 | ||
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index a6edfc3be29a..d9ef21d8fa73 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Driver for Digigram VXpocket V2/440 soundcards | 2 | * Driver for Digigram VXpocket V2/440 soundcards |
3 | * | 3 | * |
4 | * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> | 4 | * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> |
5 | * | 5 | |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation; either version 2 of the License, or | 8 | * the Free Software Foundation; either version 2 of the License, or |
@@ -162,10 +162,9 @@ static int snd_vxpocket_new(struct snd_card *card, int ibl, | |||
162 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; | 162 | link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; |
163 | link->resource[0]->end = 16; | 163 | link->resource[0]->end = 16; |
164 | 164 | ||
165 | link->conf.Attributes = CONF_ENABLE_IRQ; | 165 | link->config_flags |= CONF_ENABLE_IRQ; |
166 | link->conf.IntType = INT_MEMORY_AND_IO; | 166 | link->config_index = 1; |
167 | link->conf.ConfigIndex = 1; | 167 | link->config_regs = PRESENT_OPTION; |
168 | link->conf.Present = PRESENT_OPTION; | ||
169 | 168 | ||
170 | *chip_ret = vxp; | 169 | *chip_ret = vxp; |
171 | return 0; | 170 | return 0; |
@@ -234,7 +233,7 @@ static int vxpocket_config(struct pcmcia_device *link) | |||
234 | if (ret) | 233 | if (ret) |
235 | goto failed; | 234 | goto failed; |
236 | 235 | ||
237 | ret = pcmcia_request_configuration(link, &link->conf); | 236 | ret = pcmcia_enable_device(link); |
238 | if (ret) | 237 | if (ret) |
239 | goto failed; | 238 | goto failed; |
240 | 239 | ||
@@ -351,7 +350,7 @@ static void vxpocket_detach(struct pcmcia_device *link) | |||
351 | * Module entry points | 350 | * Module entry points |
352 | */ | 351 | */ |
353 | 352 | ||
354 | static struct pcmcia_device_id vxp_ids[] = { | 353 | static const struct pcmcia_device_id vxp_ids[] = { |
355 | PCMCIA_DEVICE_MANF_CARD(0x01f1, 0x0100), | 354 | PCMCIA_DEVICE_MANF_CARD(0x01f1, 0x0100), |
356 | PCMCIA_DEVICE_NULL | 355 | PCMCIA_DEVICE_NULL |
357 | }; | 356 | }; |
@@ -359,9 +358,7 @@ MODULE_DEVICE_TABLE(pcmcia, vxp_ids); | |||
359 | 358 | ||
360 | static struct pcmcia_driver vxp_cs_driver = { | 359 | static struct pcmcia_driver vxp_cs_driver = { |
361 | .owner = THIS_MODULE, | 360 | .owner = THIS_MODULE, |
362 | .drv = { | 361 | .name = "snd-vxpocket", |
363 | .name = "snd-vxpocket", | ||
364 | }, | ||
365 | .probe = vxpocket_probe, | 362 | .probe = vxpocket_probe, |
366 | .remove = vxpocket_detach, | 363 | .remove = vxpocket_detach, |
367 | .id_table = vxp_ids, | 364 | .id_table = vxp_ids, |
diff --git a/sound/pcmcia/vx/vxpocket.h b/sound/pcmcia/vx/vxpocket.h index d9110669d042..13d658c1a216 100644 --- a/sound/pcmcia/vx/vxpocket.h +++ b/sound/pcmcia/vx/vxpocket.h | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #include <sound/vx_core.h> | 24 | #include <sound/vx_core.h> |
25 | 25 | ||
26 | #include <pcmcia/cs.h> | ||
27 | #include <pcmcia/cistpl.h> | 26 | #include <pcmcia/cistpl.h> |
28 | #include <pcmcia/ds.h> | 27 | #include <pcmcia/ds.h> |
29 | 28 | ||