diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-12 16:03:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-12 16:03:35 -0400 |
commit | 155dbfd8846bf165bb036c4492ad121c8b059f1d (patch) | |
tree | 93c1140ecece7daac04da8a980d7b1d1e0c36bb0 | |
parent | 15e0c694367332d7e7114c7c73044bc5fed9ee48 (diff) | |
parent | d2a5b9d45f31bf5e5a1b89a87421e218ebe1a6ba (diff) |
Merge commit master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa of HEAD
* HEAD:
[ALSA] Fix undefined (missing) references in ISA MIRO sound driver
[ALSA] make sound/isa/gus/gusextreme.c:devices static
[ALSA] hda-codec - Fix missing array terminators in AD1988 codec support
[ALSA] Fix a deadlock in snd-rtctimer
[ALSA] Fix section mismatch errors in ALSA PCI drivers
[ALSA] remove unused snd_minor.name field
[ALSA] Fix no mpu401 interface can cause hard freeze
[ALSA] wavefront: fix __init/__devinit confusion
[ALSA] Fix workaround for AD1988A rev2 codec
[ALSA] trivial: Code clean up of i2c/cs8427.c
[ALSA] sound/i2c/cs8427.c: don't export a static function
[ALSA] intel8x0 - Add ac97 quirk for Tyan Thunder K8WE board
[ALSA] Reduce the string length of Terratec Aureon 7.1 Universe
[ALSA] sound/pci/Kconfig - fix broken indenting for SND_FM801_TEA575X
[ALSA] fix the SND_FM801_TEA575X dependencies
[ALSA] Memory leak in sound/pcmcia/pdaudiocf/pdaudiocf.c
64 files changed, 272 insertions, 186 deletions
diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl index 69866d5997a4..b8dc51ca776c 100644 --- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl +++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | |||
@@ -1172,7 +1172,7 @@ | |||
1172 | } | 1172 | } |
1173 | 1173 | ||
1174 | /* PCI IDs */ | 1174 | /* PCI IDs */ |
1175 | static struct pci_device_id snd_mychip_ids[] __devinitdata = { | 1175 | static struct pci_device_id snd_mychip_ids[] = { |
1176 | { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, | 1176 | { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, |
1177 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 1177 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
1178 | .... | 1178 | .... |
@@ -1565,7 +1565,7 @@ | |||
1565 | <informalexample> | 1565 | <informalexample> |
1566 | <programlisting> | 1566 | <programlisting> |
1567 | <![CDATA[ | 1567 | <![CDATA[ |
1568 | static struct pci_device_id snd_mychip_ids[] __devinitdata = { | 1568 | static struct pci_device_id snd_mychip_ids[] = { |
1569 | { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, | 1569 | { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, |
1570 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 1570 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
1571 | .... | 1571 | .... |
diff --git a/include/sound/core.h b/include/sound/core.h index 5d184be0ff72..bab3ff457e40 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -188,8 +188,6 @@ struct snd_minor { | |||
188 | int device; /* device number */ | 188 | int device; /* device number */ |
189 | const struct file_operations *f_ops; /* file operations */ | 189 | const struct file_operations *f_ops; /* file operations */ |
190 | void *private_data; /* private data for f_ops->open */ | 190 | void *private_data; /* private data for f_ops->open */ |
191 | char name[0]; /* device name (keep at the end of | ||
192 | structure) */ | ||
193 | }; | 191 | }; |
194 | 192 | ||
195 | /* sound.c */ | 193 | /* sound.c */ |
diff --git a/include/sound/cs46xx.h b/include/sound/cs46xx.h index 80b2979c0cba..685928e6f65a 100644 --- a/include/sound/cs46xx.h +++ b/include/sound/cs46xx.h | |||
@@ -1704,6 +1704,7 @@ struct snd_cs46xx { | |||
1704 | int acpi_port; | 1704 | int acpi_port; |
1705 | struct snd_kcontrol *eapd_switch; /* for amplifier hack */ | 1705 | struct snd_kcontrol *eapd_switch; /* for amplifier hack */ |
1706 | int accept_valid; /* accept mmap valid (for OSS) */ | 1706 | int accept_valid; /* accept mmap valid (for OSS) */ |
1707 | int in_suspend; | ||
1707 | 1708 | ||
1708 | struct gameport *gameport; | 1709 | struct gameport *gameport; |
1709 | 1710 | ||
diff --git a/sound/core/sound.c b/sound/core/sound.c index 264f2efd1af8..7edd1fc58b17 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -244,7 +244,7 @@ int snd_register_device(int type, struct snd_card *card, int dev, | |||
244 | struct device *device = NULL; | 244 | struct device *device = NULL; |
245 | 245 | ||
246 | snd_assert(name, return -EINVAL); | 246 | snd_assert(name, return -EINVAL); |
247 | preg = kmalloc(sizeof(struct snd_minor) + strlen(name) + 1, GFP_KERNEL); | 247 | preg = kmalloc(sizeof *preg, GFP_KERNEL); |
248 | if (preg == NULL) | 248 | if (preg == NULL) |
249 | return -ENOMEM; | 249 | return -ENOMEM; |
250 | preg->type = type; | 250 | preg->type = type; |
@@ -252,7 +252,6 @@ int snd_register_device(int type, struct snd_card *card, int dev, | |||
252 | preg->device = dev; | 252 | preg->device = dev; |
253 | preg->f_ops = f_ops; | 253 | preg->f_ops = f_ops; |
254 | preg->private_data = private_data; | 254 | preg->private_data = private_data; |
255 | strcpy(preg->name, name); | ||
256 | mutex_lock(&sound_mutex); | 255 | mutex_lock(&sound_mutex); |
257 | #ifdef CONFIG_SND_DYNAMIC_MINORS | 256 | #ifdef CONFIG_SND_DYNAMIC_MINORS |
258 | minor = snd_find_free_minor(); | 257 | minor = snd_find_free_minor(); |
diff --git a/sound/core/timer.c b/sound/core/timer.c index 78199f58b93a..0a984e881c10 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -628,8 +628,9 @@ static void snd_timer_tasklet(unsigned long arg) | |||
628 | struct snd_timer_instance *ti; | 628 | struct snd_timer_instance *ti; |
629 | struct list_head *p; | 629 | struct list_head *p; |
630 | unsigned long resolution, ticks; | 630 | unsigned long resolution, ticks; |
631 | unsigned long flags; | ||
631 | 632 | ||
632 | spin_lock(&timer->lock); | 633 | spin_lock_irqsave(&timer->lock, flags); |
633 | /* now process all callbacks */ | 634 | /* now process all callbacks */ |
634 | while (!list_empty(&timer->sack_list_head)) { | 635 | while (!list_empty(&timer->sack_list_head)) { |
635 | p = timer->sack_list_head.next; /* get first item */ | 636 | p = timer->sack_list_head.next; /* get first item */ |
@@ -649,7 +650,7 @@ static void snd_timer_tasklet(unsigned long arg) | |||
649 | spin_lock(&timer->lock); | 650 | spin_lock(&timer->lock); |
650 | ti->flags &= ~SNDRV_TIMER_IFLG_CALLBACK; | 651 | ti->flags &= ~SNDRV_TIMER_IFLG_CALLBACK; |
651 | } | 652 | } |
652 | spin_unlock(&timer->lock); | 653 | spin_unlock_irqrestore(&timer->lock, flags); |
653 | } | 654 | } |
654 | 655 | ||
655 | /* | 656 | /* |
diff --git a/sound/i2c/cs8427.c b/sound/i2c/cs8427.c index cb89f7eb9236..64388cb8d6e5 100644 --- a/sound/i2c/cs8427.c +++ b/sound/i2c/cs8427.c | |||
@@ -76,23 +76,28 @@ int snd_cs8427_reg_write(struct snd_i2c_device *device, unsigned char reg, | |||
76 | buf[0] = reg & 0x7f; | 76 | buf[0] = reg & 0x7f; |
77 | buf[1] = val; | 77 | buf[1] = val; |
78 | if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { | 78 | if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { |
79 | snd_printk(KERN_ERR "unable to send bytes 0x%02x:0x%02x to CS8427 (%i)\n", buf[0], buf[1], err); | 79 | snd_printk(KERN_ERR "unable to send bytes 0x%02x:0x%02x " |
80 | "to CS8427 (%i)\n", buf[0], buf[1], err); | ||
80 | return err < 0 ? err : -EIO; | 81 | return err < 0 ? err : -EIO; |
81 | } | 82 | } |
82 | return 0; | 83 | return 0; |
83 | } | 84 | } |
84 | 85 | ||
86 | EXPORT_SYMBOL(snd_cs8427_reg_write); | ||
87 | |||
85 | static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) | 88 | static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) |
86 | { | 89 | { |
87 | int err; | 90 | int err; |
88 | unsigned char buf; | 91 | unsigned char buf; |
89 | 92 | ||
90 | if ((err = snd_i2c_sendbytes(device, ®, 1)) != 1) { | 93 | if ((err = snd_i2c_sendbytes(device, ®, 1)) != 1) { |
91 | snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n", reg); | 94 | snd_printk(KERN_ERR "unable to send register 0x%x byte " |
95 | "to CS8427\n", reg); | ||
92 | return err < 0 ? err : -EIO; | 96 | return err < 0 ? err : -EIO; |
93 | } | 97 | } |
94 | if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { | 98 | if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { |
95 | snd_printk(KERN_ERR "unable to read register 0x%x byte from CS8427\n", reg); | 99 | snd_printk(KERN_ERR "unable to read register 0x%x byte " |
100 | "from CS8427\n", reg); | ||
96 | return err < 0 ? err : -EIO; | 101 | return err < 0 ? err : -EIO; |
97 | } | 102 | } |
98 | return buf; | 103 | return buf; |
@@ -121,7 +126,8 @@ static int snd_cs8427_send_corudata(struct snd_i2c_device *device, | |||
121 | int count) | 126 | int count) |
122 | { | 127 | { |
123 | struct cs8427 *chip = device->private_data; | 128 | struct cs8427 *chip = device->private_data; |
124 | char *hw_data = udata ? chip->playback.hw_udata : chip->playback.hw_status; | 129 | char *hw_data = udata ? |
130 | chip->playback.hw_udata : chip->playback.hw_status; | ||
125 | char data[32]; | 131 | char data[32]; |
126 | int err, idx; | 132 | int err, idx; |
127 | 133 | ||
@@ -134,11 +140,11 @@ static int snd_cs8427_send_corudata(struct snd_i2c_device *device, | |||
134 | memset(data, 0, sizeof(data)); | 140 | memset(data, 0, sizeof(data)); |
135 | if (memcmp(hw_data, data, count) == 0) { | 141 | if (memcmp(hw_data, data, count) == 0) { |
136 | chip->regmap[CS8427_REG_UDATABUF] &= ~CS8427_UBMMASK; | 142 | chip->regmap[CS8427_REG_UDATABUF] &= ~CS8427_UBMMASK; |
137 | chip->regmap[CS8427_REG_UDATABUF] |= CS8427_UBMZEROS | CS8427_EFTUI; | 143 | chip->regmap[CS8427_REG_UDATABUF] |= CS8427_UBMZEROS | |
138 | if ((err = snd_cs8427_reg_write(device, CS8427_REG_UDATABUF, | 144 | CS8427_EFTUI; |
139 | chip->regmap[CS8427_REG_UDATABUF])) < 0) | 145 | err = snd_cs8427_reg_write(device, CS8427_REG_UDATABUF, |
140 | return err; | 146 | chip->regmap[CS8427_REG_UDATABUF]); |
141 | return 0; | 147 | return err < 0 ? err : 0; |
142 | } | 148 | } |
143 | } | 149 | } |
144 | data[0] = CS8427_REG_AUTOINC | CS8427_REG_CORU_DATABUF; | 150 | data[0] = CS8427_REG_AUTOINC | CS8427_REG_CORU_DATABUF; |
@@ -161,24 +167,32 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
161 | { | 167 | { |
162 | static unsigned char initvals1[] = { | 168 | static unsigned char initvals1[] = { |
163 | CS8427_REG_CONTROL1 | CS8427_REG_AUTOINC, | 169 | CS8427_REG_CONTROL1 | CS8427_REG_AUTOINC, |
164 | /* CS8427_REG_CONTROL1: RMCK to OMCK, valid PCM audio, disable mutes, TCBL=output */ | 170 | /* CS8427_REG_CONTROL1: RMCK to OMCK, valid PCM audio, disable mutes, |
171 | TCBL=output */ | ||
165 | CS8427_SWCLK | CS8427_TCBLDIR, | 172 | CS8427_SWCLK | CS8427_TCBLDIR, |
166 | /* CS8427_REG_CONTROL2: hold last valid audio sample, RMCK=256*Fs, normal stereo operation */ | 173 | /* CS8427_REG_CONTROL2: hold last valid audio sample, RMCK=256*Fs, |
174 | normal stereo operation */ | ||
167 | 0x00, | 175 | 0x00, |
168 | /* CS8427_REG_DATAFLOW: output drivers normal operation, Tx<=serial, Rx=>serial */ | 176 | /* CS8427_REG_DATAFLOW: output drivers normal operation, Tx<=serial, |
177 | Rx=>serial */ | ||
169 | CS8427_TXDSERIAL | CS8427_SPDAES3RECEIVER, | 178 | CS8427_TXDSERIAL | CS8427_SPDAES3RECEIVER, |
170 | /* CS8427_REG_CLOCKSOURCE: Run off, CMCK=256*Fs, output time base = OMCK, input time base = | 179 | /* CS8427_REG_CLOCKSOURCE: Run off, CMCK=256*Fs, |
171 | recovered input clock, recovered input clock source is ILRCK changed to AES3INPUT (workaround, see snd_cs8427_reset) */ | 180 | output time base = OMCK, input time base = recovered input clock, |
181 | recovered input clock source is ILRCK changed to AES3INPUT | ||
182 | (workaround, see snd_cs8427_reset) */ | ||
172 | CS8427_RXDILRCK, | 183 | CS8427_RXDILRCK, |
173 | /* CS8427_REG_SERIALINPUT: Serial audio input port data format = I2S, 24-bit, 64*Fsi */ | 184 | /* CS8427_REG_SERIALINPUT: Serial audio input port data format = I2S, |
185 | 24-bit, 64*Fsi */ | ||
174 | CS8427_SIDEL | CS8427_SILRPOL, | 186 | CS8427_SIDEL | CS8427_SILRPOL, |
175 | /* CS8427_REG_SERIALOUTPUT: Serial audio output port data format = I2S, 24-bit, 64*Fsi */ | 187 | /* CS8427_REG_SERIALOUTPUT: Serial audio output port data format |
188 | = I2S, 24-bit, 64*Fsi */ | ||
176 | CS8427_SODEL | CS8427_SOLRPOL, | 189 | CS8427_SODEL | CS8427_SOLRPOL, |
177 | }; | 190 | }; |
178 | static unsigned char initvals2[] = { | 191 | static unsigned char initvals2[] = { |
179 | CS8427_REG_RECVERRMASK | CS8427_REG_AUTOINC, | 192 | CS8427_REG_RECVERRMASK | CS8427_REG_AUTOINC, |
180 | /* CS8427_REG_RECVERRMASK: unmask the input PLL clock, V, confidence, biphase, parity status bits */ | 193 | /* CS8427_REG_RECVERRMASK: unmask the input PLL clock, V, confidence, |
181 | /* CS8427_UNLOCK | CS8427_V | CS8427_CONF | CS8427_BIP | CS8427_PAR, */ | 194 | biphase, parity status bits */ |
195 | /* CS8427_UNLOCK | CS8427_V | CS8427_CONF | CS8427_BIP | CS8427_PAR,*/ | ||
182 | 0xff, /* set everything */ | 196 | 0xff, /* set everything */ |
183 | /* CS8427_REG_CSDATABUF: | 197 | /* CS8427_REG_CSDATABUF: |
184 | Registers 32-55 window to CS buffer | 198 | Registers 32-55 window to CS buffer |
@@ -201,7 +215,8 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
201 | struct snd_i2c_device *device; | 215 | struct snd_i2c_device *device; |
202 | unsigned char buf[24]; | 216 | unsigned char buf[24]; |
203 | 217 | ||
204 | if ((err = snd_i2c_device_create(bus, "CS8427", CS8427_ADDR | (addr & 7), | 218 | if ((err = snd_i2c_device_create(bus, "CS8427", |
219 | CS8427_ADDR | (addr & 7), | ||
205 | &device)) < 0) | 220 | &device)) < 0) |
206 | return err; | 221 | return err; |
207 | chip = device->private_data = kzalloc(sizeof(*chip), GFP_KERNEL); | 222 | chip = device->private_data = kzalloc(sizeof(*chip), GFP_KERNEL); |
@@ -212,8 +227,8 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
212 | device->private_free = snd_cs8427_free; | 227 | device->private_free = snd_cs8427_free; |
213 | 228 | ||
214 | snd_i2c_lock(bus); | 229 | snd_i2c_lock(bus); |
215 | if ((err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER)) != | 230 | err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER); |
216 | CS8427_VER8427A) { | 231 | if (err != CS8427_VER8427A) { |
217 | snd_i2c_unlock(bus); | 232 | snd_i2c_unlock(bus); |
218 | snd_printk(KERN_ERR "unable to find CS8427 signature " | 233 | snd_printk(KERN_ERR "unable to find CS8427 signature " |
219 | "(expected 0x%x, read 0x%x),\n", | 234 | "(expected 0x%x, read 0x%x),\n", |
@@ -222,7 +237,8 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
222 | return -EFAULT; | 237 | return -EFAULT; |
223 | } | 238 | } |
224 | /* turn off run bit while making changes to configuration */ | 239 | /* turn off run bit while making changes to configuration */ |
225 | if ((err = snd_cs8427_reg_write(device, CS8427_REG_CLOCKSOURCE, 0x00)) < 0) | 240 | err = snd_cs8427_reg_write(device, CS8427_REG_CLOCKSOURCE, 0x00); |
241 | if (err < 0) | ||
226 | goto __fail; | 242 | goto __fail; |
227 | /* send initial values */ | 243 | /* send initial values */ |
228 | memcpy(chip->regmap + (initvals1[0] & 0x7f), initvals1 + 1, 6); | 244 | memcpy(chip->regmap + (initvals1[0] & 0x7f), initvals1 + 1, 6); |
@@ -282,6 +298,8 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
282 | return err < 0 ? err : -EIO; | 298 | return err < 0 ? err : -EIO; |
283 | } | 299 | } |
284 | 300 | ||
301 | EXPORT_SYMBOL(snd_cs8427_create); | ||
302 | |||
285 | /* | 303 | /* |
286 | * Reset the chip using run bit, also lock PLL using ILRCK and | 304 | * Reset the chip using run bit, also lock PLL using ILRCK and |
287 | * put back AES3INPUT. This workaround is described in latest | 305 | * put back AES3INPUT. This workaround is described in latest |
@@ -296,7 +314,8 @@ static void snd_cs8427_reset(struct snd_i2c_device *cs8427) | |||
296 | snd_assert(cs8427, return); | 314 | snd_assert(cs8427, return); |
297 | chip = cs8427->private_data; | 315 | chip = cs8427->private_data; |
298 | snd_i2c_lock(cs8427->bus); | 316 | snd_i2c_lock(cs8427->bus); |
299 | if ((chip->regmap[CS8427_REG_CLOCKSOURCE] & CS8427_RXDAES3INPUT) == CS8427_RXDAES3INPUT) /* AES3 bit is set */ | 317 | if ((chip->regmap[CS8427_REG_CLOCKSOURCE] & CS8427_RXDAES3INPUT) == |
318 | CS8427_RXDAES3INPUT) /* AES3 bit is set */ | ||
300 | aes3input = 1; | 319 | aes3input = 1; |
301 | chip->regmap[CS8427_REG_CLOCKSOURCE] &= ~(CS8427_RUN | CS8427_RXDMASK); | 320 | chip->regmap[CS8427_REG_CLOCKSOURCE] &= ~(CS8427_RUN | CS8427_RXDMASK); |
302 | snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE, | 321 | snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE, |
@@ -367,12 +386,15 @@ static int snd_cs8427_qsubcode_get(struct snd_kcontrol *kcontrol, | |||
367 | 386 | ||
368 | snd_i2c_lock(device->bus); | 387 | snd_i2c_lock(device->bus); |
369 | if ((err = snd_i2c_sendbytes(device, ®, 1)) != 1) { | 388 | if ((err = snd_i2c_sendbytes(device, ®, 1)) != 1) { |
370 | snd_printk(KERN_ERR "unable to send register 0x%x byte to CS8427\n", reg); | 389 | snd_printk(KERN_ERR "unable to send register 0x%x byte " |
390 | "to CS8427\n", reg); | ||
371 | snd_i2c_unlock(device->bus); | 391 | snd_i2c_unlock(device->bus); |
372 | return err < 0 ? err : -EIO; | 392 | return err < 0 ? err : -EIO; |
373 | } | 393 | } |
374 | if ((err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10)) != 10) { | 394 | err = snd_i2c_readbytes(device, ucontrol->value.bytes.data, 10); |
375 | snd_printk(KERN_ERR "unable to read Q-subcode bytes from CS8427\n"); | 395 | if (err != 10) { |
396 | snd_printk(KERN_ERR "unable to read Q-subcode bytes " | ||
397 | "from CS8427\n"); | ||
376 | snd_i2c_unlock(device->bus); | 398 | snd_i2c_unlock(device->bus); |
377 | return err < 0 ? err : -EIO; | 399 | return err < 0 ? err : -EIO; |
378 | } | 400 | } |
@@ -380,7 +402,8 @@ static int snd_cs8427_qsubcode_get(struct snd_kcontrol *kcontrol, | |||
380 | return 0; | 402 | return 0; |
381 | } | 403 | } |
382 | 404 | ||
383 | static int snd_cs8427_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) | 405 | static int snd_cs8427_spdif_info(struct snd_kcontrol *kcontrol, |
406 | struct snd_ctl_elem_info *uinfo) | ||
384 | { | 407 | { |
385 | uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; | 408 | uinfo->type = SNDRV_CTL_ELEM_TYPE_IEC958; |
386 | uinfo->count = 1; | 409 | uinfo->count = 1; |
@@ -413,7 +436,8 @@ static int snd_cs8427_spdif_put(struct snd_kcontrol *kcontrol, | |||
413 | snd_i2c_lock(device->bus); | 436 | snd_i2c_lock(device->bus); |
414 | change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; | 437 | change = memcmp(ucontrol->value.iec958.status, status, 24) != 0; |
415 | memcpy(status, ucontrol->value.iec958.status, 24); | 438 | memcpy(status, ucontrol->value.iec958.status, 24); |
416 | if (change && (kcontrol->private_value ? runtime != NULL : runtime == NULL)) { | 439 | if (change && (kcontrol->private_value ? |
440 | runtime != NULL : runtime == NULL)) { | ||
417 | err = snd_cs8427_send_corudata(device, 0, status, 24); | 441 | err = snd_cs8427_send_corudata(device, 0, status, 24); |
418 | if (err < 0) | 442 | if (err < 0) |
419 | change = err; | 443 | change = err; |
@@ -442,7 +466,8 @@ static struct snd_kcontrol_new snd_cs8427_iec958_controls[] = { | |||
442 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 466 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
443 | .info = snd_cs8427_in_status_info, | 467 | .info = snd_cs8427_in_status_info, |
444 | .name = "IEC958 CS8427 Input Status", | 468 | .name = "IEC958 CS8427 Input Status", |
445 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 469 | .access = (SNDRV_CTL_ELEM_ACCESS_READ | |
470 | SNDRV_CTL_ELEM_ACCESS_VOLATILE), | ||
446 | .get = snd_cs8427_in_status_get, | 471 | .get = snd_cs8427_in_status_get, |
447 | .private_value = 15, | 472 | .private_value = 15, |
448 | }, | 473 | }, |
@@ -450,7 +475,8 @@ static struct snd_kcontrol_new snd_cs8427_iec958_controls[] = { | |||
450 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 475 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
451 | .info = snd_cs8427_in_status_info, | 476 | .info = snd_cs8427_in_status_info, |
452 | .name = "IEC958 CS8427 Error Status", | 477 | .name = "IEC958 CS8427 Error Status", |
453 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 478 | .access = (SNDRV_CTL_ELEM_ACCESS_READ | |
479 | SNDRV_CTL_ELEM_ACCESS_VOLATILE), | ||
454 | .get = snd_cs8427_in_status_get, | 480 | .get = snd_cs8427_in_status_get, |
455 | .private_value = 16, | 481 | .private_value = 16, |
456 | }, | 482 | }, |
@@ -470,7 +496,8 @@ static struct snd_kcontrol_new snd_cs8427_iec958_controls[] = { | |||
470 | .private_value = 0 | 496 | .private_value = 0 |
471 | }, | 497 | }, |
472 | { | 498 | { |
473 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, | 499 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
500 | SNDRV_CTL_ELEM_ACCESS_INACTIVE), | ||
474 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 501 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
475 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM), | 502 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM), |
476 | .info = snd_cs8427_spdif_info, | 503 | .info = snd_cs8427_spdif_info, |
@@ -482,7 +509,8 @@ static struct snd_kcontrol_new snd_cs8427_iec958_controls[] = { | |||
482 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 509 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
483 | .info = snd_cs8427_qsubcode_info, | 510 | .info = snd_cs8427_qsubcode_info, |
484 | .name = "IEC958 Q-subcode Capture Default", | 511 | .name = "IEC958 Q-subcode Capture Default", |
485 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 512 | .access = (SNDRV_CTL_ELEM_ACCESS_READ | |
513 | SNDRV_CTL_ELEM_ACCESS_VOLATILE), | ||
486 | .get = snd_cs8427_qsubcode_get | 514 | .get = snd_cs8427_qsubcode_get |
487 | }}; | 515 | }}; |
488 | 516 | ||
@@ -505,7 +533,8 @@ int snd_cs8427_iec958_build(struct snd_i2c_device *cs8427, | |||
505 | err = snd_ctl_add(cs8427->bus->card, kctl); | 533 | err = snd_ctl_add(cs8427->bus->card, kctl); |
506 | if (err < 0) | 534 | if (err < 0) |
507 | return err; | 535 | return err; |
508 | if (!strcmp(kctl->id.name, SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM))) | 536 | if (! strcmp(kctl->id.name, |
537 | SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM))) | ||
509 | chip->playback.pcm_ctl = kctl; | 538 | chip->playback.pcm_ctl = kctl; |
510 | } | 539 | } |
511 | 540 | ||
@@ -515,6 +544,8 @@ int snd_cs8427_iec958_build(struct snd_i2c_device *cs8427, | |||
515 | return 0; | 544 | return 0; |
516 | } | 545 | } |
517 | 546 | ||
547 | EXPORT_SYMBOL(snd_cs8427_iec958_build); | ||
548 | |||
518 | int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active) | 549 | int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active) |
519 | { | 550 | { |
520 | struct cs8427 *chip; | 551 | struct cs8427 *chip; |
@@ -522,13 +553,17 @@ int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active) | |||
522 | snd_assert(cs8427, return -ENXIO); | 553 | snd_assert(cs8427, return -ENXIO); |
523 | chip = cs8427->private_data; | 554 | chip = cs8427->private_data; |
524 | if (active) | 555 | if (active) |
525 | memcpy(chip->playback.pcm_status, chip->playback.def_status, 24); | 556 | memcpy(chip->playback.pcm_status, |
557 | chip->playback.def_status, 24); | ||
526 | chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; | 558 | chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; |
527 | snd_ctl_notify(cs8427->bus->card, SNDRV_CTL_EVENT_MASK_VALUE | | 559 | snd_ctl_notify(cs8427->bus->card, |
528 | SNDRV_CTL_EVENT_MASK_INFO, &chip->playback.pcm_ctl->id); | 560 | SNDRV_CTL_EVENT_MASK_VALUE | SNDRV_CTL_EVENT_MASK_INFO, |
561 | &chip->playback.pcm_ctl->id); | ||
529 | return 0; | 562 | return 0; |
530 | } | 563 | } |
531 | 564 | ||
565 | EXPORT_SYMBOL(snd_cs8427_iec958_active); | ||
566 | |||
532 | int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate) | 567 | int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate) |
533 | { | 568 | { |
534 | struct cs8427 *chip; | 569 | struct cs8427 *chip; |
@@ -568,6 +603,8 @@ int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate) | |||
568 | return err < 0 ? err : 0; | 603 | return err < 0 ? err : 0; |
569 | } | 604 | } |
570 | 605 | ||
606 | EXPORT_SYMBOL(snd_cs8427_iec958_pcm); | ||
607 | |||
571 | static int __init alsa_cs8427_module_init(void) | 608 | static int __init alsa_cs8427_module_init(void) |
572 | { | 609 | { |
573 | return 0; | 610 | return 0; |
@@ -579,10 +616,3 @@ static void __exit alsa_cs8427_module_exit(void) | |||
579 | 616 | ||
580 | module_init(alsa_cs8427_module_init) | 617 | module_init(alsa_cs8427_module_init) |
581 | module_exit(alsa_cs8427_module_exit) | 618 | module_exit(alsa_cs8427_module_exit) |
582 | |||
583 | EXPORT_SYMBOL(snd_cs8427_create); | ||
584 | EXPORT_SYMBOL(snd_cs8427_reset); | ||
585 | EXPORT_SYMBOL(snd_cs8427_reg_write); | ||
586 | EXPORT_SYMBOL(snd_cs8427_iec958_build); | ||
587 | EXPORT_SYMBOL(snd_cs8427_iec958_active); | ||
588 | EXPORT_SYMBOL(snd_cs8427_iec958_pcm); | ||
diff --git a/sound/isa/cs423x/Makefile b/sound/isa/cs423x/Makefile index d2afaea30cbc..2fb4f7409d7c 100644 --- a/sound/isa/cs423x/Makefile +++ b/sound/isa/cs423x/Makefile | |||
@@ -11,6 +11,7 @@ snd-cs4236-objs := cs4236.o | |||
11 | 11 | ||
12 | # Toplevel Module Dependency | 12 | # Toplevel Module Dependency |
13 | obj-$(CONFIG_SND_AZT2320) += snd-cs4231-lib.o | 13 | obj-$(CONFIG_SND_AZT2320) += snd-cs4231-lib.o |
14 | obj-$(CONFIG_SND_MIRO) += snd-cs4231-lib.o | ||
14 | obj-$(CONFIG_SND_OPL3SA2) += snd-cs4231-lib.o | 15 | obj-$(CONFIG_SND_OPL3SA2) += snd-cs4231-lib.o |
15 | obj-$(CONFIG_SND_CS4231) += snd-cs4231.o snd-cs4231-lib.o | 16 | obj-$(CONFIG_SND_CS4231) += snd-cs4231.o snd-cs4231-lib.o |
16 | obj-$(CONFIG_SND_CS4232) += snd-cs4232.o snd-cs4231-lib.o | 17 | obj-$(CONFIG_SND_CS4232) += snd-cs4232.o snd-cs4231-lib.o |
diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c index 22cdddbfd824..532c56e35ca4 100644 --- a/sound/isa/gus/gusextreme.c +++ b/sound/isa/gus/gusextreme.c | |||
@@ -87,7 +87,7 @@ MODULE_PARM_DESC(channels, "GF1 channels for GUS Extreme driver."); | |||
87 | module_param_array(pcm_channels, int, NULL, 0444); | 87 | module_param_array(pcm_channels, int, NULL, 0444); |
88 | MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for GUS Extreme driver."); | 88 | MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for GUS Extreme driver."); |
89 | 89 | ||
90 | struct platform_device *devices[SNDRV_CARDS]; | 90 | static struct platform_device *devices[SNDRV_CARDS]; |
91 | 91 | ||
92 | 92 | ||
93 | #define PFX "gusextreme: " | 93 | #define PFX "gusextreme: " |
diff --git a/sound/isa/wavefront/wavefront_fx.c b/sound/isa/wavefront/wavefront_fx.c index 180661c5ffdc..4f0846feb73f 100644 --- a/sound/isa/wavefront/wavefront_fx.c +++ b/sound/isa/wavefront/wavefront_fx.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | /* weird stuff, derived from port I/O tracing with dosemu */ | 35 | /* weird stuff, derived from port I/O tracing with dosemu */ |
36 | 36 | ||
37 | static unsigned char page_zero[] __initdata = { | 37 | static unsigned char page_zero[] __devinitdata = { |
38 | 0x01, 0x7c, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf5, 0x00, | 38 | 0x01, 0x7c, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf5, 0x00, |
39 | 0x11, 0x00, 0x20, 0x00, 0x32, 0x00, 0x40, 0x00, 0x13, 0x00, 0x00, | 39 | 0x11, 0x00, 0x20, 0x00, 0x32, 0x00, 0x40, 0x00, 0x13, 0x00, 0x00, |
40 | 0x00, 0x14, 0x02, 0x76, 0x00, 0x60, 0x00, 0x80, 0x02, 0x00, 0x00, | 40 | 0x00, 0x14, 0x02, 0x76, 0x00, 0x60, 0x00, 0x80, 0x02, 0x00, 0x00, |
@@ -61,7 +61,7 @@ static unsigned char page_zero[] __initdata = { | |||
61 | 0x1d, 0x02, 0xdf | 61 | 0x1d, 0x02, 0xdf |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static unsigned char page_one[] __initdata = { | 64 | static unsigned char page_one[] __devinitdata = { |
65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x19, 0x00, | 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x19, 0x00, |
66 | 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xd8, 0x00, 0x00, | 66 | 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xd8, 0x00, 0x00, |
67 | 0x02, 0x20, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x01, | 67 | 0x02, 0x20, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x01, |
@@ -88,7 +88,7 @@ static unsigned char page_one[] __initdata = { | |||
88 | 0x60, 0x00, 0x1b | 88 | 0x60, 0x00, 0x1b |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static unsigned char page_two[] __initdata = { | 91 | static unsigned char page_two[] __devinitdata = { |
92 | 0xc4, 0x00, 0x44, 0x07, 0x44, 0x00, 0x40, 0x25, 0x01, 0x06, 0xc4, | 92 | 0xc4, 0x00, 0x44, 0x07, 0x44, 0x00, 0x40, 0x25, 0x01, 0x06, 0xc4, |
93 | 0x07, 0x40, 0x25, 0x01, 0x00, 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, | 93 | 0x07, 0x40, 0x25, 0x01, 0x00, 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, |
94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -103,7 +103,7 @@ static unsigned char page_two[] __initdata = { | |||
103 | 0x46, 0x05, 0x46, 0x07, 0x46, 0x07, 0x44 | 103 | 0x46, 0x05, 0x46, 0x07, 0x46, 0x07, 0x44 |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static unsigned char page_three[] __initdata = { | 106 | static unsigned char page_three[] __devinitdata = { |
107 | 0x07, 0x40, 0x00, 0x00, 0x00, 0x47, 0x00, 0x40, 0x00, 0x40, 0x06, | 107 | 0x07, 0x40, 0x00, 0x00, 0x00, 0x47, 0x00, 0x40, 0x00, 0x40, 0x06, |
108 | 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 108 | 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
109 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 109 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -118,7 +118,7 @@ static unsigned char page_three[] __initdata = { | |||
118 | 0x02, 0x00, 0x42, 0x00, 0xc0, 0x00, 0x40 | 118 | 0x02, 0x00, 0x42, 0x00, 0xc0, 0x00, 0x40 |
119 | }; | 119 | }; |
120 | 120 | ||
121 | static unsigned char page_four[] __initdata = { | 121 | static unsigned char page_four[] __devinitdata = { |
122 | 0x63, 0x03, 0x26, 0x02, 0x2c, 0x00, 0x24, 0x00, 0x2e, 0x02, 0x02, | 122 | 0x63, 0x03, 0x26, 0x02, 0x2c, 0x00, 0x24, 0x00, 0x2e, 0x02, 0x02, |
123 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 123 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
124 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 124 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -133,7 +133,7 @@ static unsigned char page_four[] __initdata = { | |||
133 | 0x02, 0x62, 0x02, 0x20, 0x01, 0x21, 0x01 | 133 | 0x02, 0x62, 0x02, 0x20, 0x01, 0x21, 0x01 |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static unsigned char page_six[] __initdata = { | 136 | static unsigned char page_six[] __devinitdata = { |
137 | 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00, 0x06, 0x00, | 137 | 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00, 0x06, 0x00, |
138 | 0x00, 0x08, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0e, | 138 | 0x00, 0x08, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0e, |
139 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x12, 0x00, 0x00, 0x14, 0x00, 0x00, | 139 | 0x00, 0x00, 0x10, 0x00, 0x00, 0x12, 0x00, 0x00, 0x14, 0x00, 0x00, |
@@ -154,7 +154,7 @@ static unsigned char page_six[] __initdata = { | |||
154 | 0x80, 0x00, 0x7e, 0x80, 0x80 | 154 | 0x80, 0x00, 0x7e, 0x80, 0x80 |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static unsigned char page_seven[] __initdata = { | 157 | static unsigned char page_seven[] __devinitdata = { |
158 | 0x0f, 0xff, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, | 158 | 0x0f, 0xff, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, |
159 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, | 159 | 0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, |
160 | 0x08, 0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x0f, | 160 | 0x08, 0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x0f, |
@@ -181,7 +181,7 @@ static unsigned char page_seven[] __initdata = { | |||
181 | 0x00, 0x02, 0x00 | 181 | 0x00, 0x02, 0x00 |
182 | }; | 182 | }; |
183 | 183 | ||
184 | static unsigned char page_zero_v2[] __initdata = { | 184 | static unsigned char page_zero_v2[] __devinitdata = { |
185 | 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 185 | 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
187 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 187 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -193,7 +193,7 @@ static unsigned char page_zero_v2[] __initdata = { | |||
193 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 193 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
194 | }; | 194 | }; |
195 | 195 | ||
196 | static unsigned char page_one_v2[] __initdata = { | 196 | static unsigned char page_one_v2[] __devinitdata = { |
197 | 0x01, 0xc0, 0x01, 0xfa, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, | 197 | 0x01, 0xc0, 0x01, 0xfa, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, |
198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -205,21 +205,21 @@ static unsigned char page_one_v2[] __initdata = { | |||
205 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 205 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
206 | }; | 206 | }; |
207 | 207 | ||
208 | static unsigned char page_two_v2[] __initdata = { | 208 | static unsigned char page_two_v2[] __devinitdata = { |
209 | 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 209 | 0x46, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
210 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 210 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
211 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 211 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
212 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 212 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
213 | 0x00, 0x00, 0x00, 0x00 | 213 | 0x00, 0x00, 0x00, 0x00 |
214 | }; | 214 | }; |
215 | static unsigned char page_three_v2[] __initdata = { | 215 | static unsigned char page_three_v2[] __devinitdata = { |
216 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 216 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
217 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 217 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
218 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 218 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
219 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 219 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
220 | 0x00, 0x00, 0x00, 0x00 | 220 | 0x00, 0x00, 0x00, 0x00 |
221 | }; | 221 | }; |
222 | static unsigned char page_four_v2[] __initdata = { | 222 | static unsigned char page_four_v2[] __devinitdata = { |
223 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 223 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
224 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 224 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
225 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 225 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -227,7 +227,7 @@ static unsigned char page_four_v2[] __initdata = { | |||
227 | 0x00, 0x00, 0x00, 0x00 | 227 | 0x00, 0x00, 0x00, 0x00 |
228 | }; | 228 | }; |
229 | 229 | ||
230 | static unsigned char page_seven_v2[] __initdata = { | 230 | static unsigned char page_seven_v2[] __devinitdata = { |
231 | 0x0f, 0xff, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 231 | 0x0f, 0xff, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
232 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 232 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
233 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 233 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
@@ -239,7 +239,7 @@ static unsigned char page_seven_v2[] __initdata = { | |||
239 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | 239 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
240 | }; | 240 | }; |
241 | 241 | ||
242 | static unsigned char mod_v2[] __initdata = { | 242 | static unsigned char mod_v2[] __devinitdata = { |
243 | 0x01, 0x00, 0x02, 0x00, 0x01, 0x01, 0x02, 0x00, 0x01, 0x02, 0x02, | 243 | 0x01, 0x00, 0x02, 0x00, 0x01, 0x01, 0x02, 0x00, 0x01, 0x02, 0x02, |
244 | 0x00, 0x01, 0x03, 0x02, 0x00, 0x01, 0x04, 0x02, 0x00, 0x01, 0x05, | 244 | 0x00, 0x01, 0x03, 0x02, 0x00, 0x01, 0x04, 0x02, 0x00, 0x01, 0x05, |
245 | 0x02, 0x00, 0x01, 0x06, 0x02, 0x00, 0x01, 0x07, 0x02, 0x00, 0xb0, | 245 | 0x02, 0x00, 0x01, 0x06, 0x02, 0x00, 0x01, 0x07, 0x02, 0x00, 0xb0, |
@@ -269,7 +269,7 @@ static unsigned char mod_v2[] __initdata = { | |||
269 | 0x02, 0x01, 0x01, 0x04, 0x02, 0x01, 0x01, 0x05, 0x02, 0x01, 0x01, | 269 | 0x02, 0x01, 0x01, 0x04, 0x02, 0x01, 0x01, 0x05, 0x02, 0x01, 0x01, |
270 | 0x06, 0x02, 0x01, 0x01, 0x07, 0x02, 0x01 | 270 | 0x06, 0x02, 0x01, 0x01, 0x07, 0x02, 0x01 |
271 | }; | 271 | }; |
272 | static unsigned char coefficients[] __initdata = { | 272 | static unsigned char coefficients[] __devinitdata = { |
273 | 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x00, 0x4b, 0x03, | 273 | 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x00, 0x4b, 0x03, |
274 | 0x11, 0x00, 0x4d, 0x01, 0x32, 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, | 274 | 0x11, 0x00, 0x4d, 0x01, 0x32, 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, |
275 | 0x00, 0x00, 0x07, 0x40, 0x00, 0x00, 0x07, 0x41, 0x00, 0x00, 0x01, | 275 | 0x00, 0x00, 0x07, 0x40, 0x00, 0x00, 0x07, 0x41, 0x00, 0x00, 0x01, |
@@ -305,14 +305,14 @@ static unsigned char coefficients[] __initdata = { | |||
305 | 0x06, 0x6c, 0x4c, 0x6c, 0x06, 0x50, 0x52, 0xe2, 0x06, 0x42, 0x02, | 305 | 0x06, 0x6c, 0x4c, 0x6c, 0x06, 0x50, 0x52, 0xe2, 0x06, 0x42, 0x02, |
306 | 0xba | 306 | 0xba |
307 | }; | 307 | }; |
308 | static unsigned char coefficients2[] __initdata = { | 308 | static unsigned char coefficients2[] __devinitdata = { |
309 | 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x07, 0x45, 0x0f, | 309 | 0x07, 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x07, 0x45, 0x0f, |
310 | 0xff, 0x07, 0x48, 0x0f, 0xff, 0x07, 0x7b, 0x04, 0xcc, 0x07, 0x7d, | 310 | 0xff, 0x07, 0x48, 0x0f, 0xff, 0x07, 0x7b, 0x04, 0xcc, 0x07, 0x7d, |
311 | 0x04, 0xcc, 0x07, 0x7c, 0x00, 0x00, 0x07, 0x7e, 0x00, 0x00, 0x07, | 311 | 0x04, 0xcc, 0x07, 0x7c, 0x00, 0x00, 0x07, 0x7e, 0x00, 0x00, 0x07, |
312 | 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x07, 0x47, 0x00, 0x00, | 312 | 0x46, 0x00, 0x00, 0x07, 0x49, 0x00, 0x00, 0x07, 0x47, 0x00, 0x00, |
313 | 0x07, 0x4a, 0x00, 0x00, 0x07, 0x4c, 0x00, 0x00, 0x07, 0x4e, 0x00, 0x00 | 313 | 0x07, 0x4a, 0x00, 0x00, 0x07, 0x4c, 0x00, 0x00, 0x07, 0x4e, 0x00, 0x00 |
314 | }; | 314 | }; |
315 | static unsigned char coefficients3[] __initdata = { | 315 | static unsigned char coefficients3[] __devinitdata = { |
316 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x28, 0x00, 0x51, 0x00, | 316 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x28, 0x00, 0x51, 0x00, |
317 | 0x51, 0x00, 0x7a, 0x00, 0x7a, 0x00, 0xa3, 0x00, 0xa3, 0x00, 0xcc, | 317 | 0x51, 0x00, 0x7a, 0x00, 0x7a, 0x00, 0xa3, 0x00, 0xa3, 0x00, 0xcc, |
318 | 0x00, 0xcc, 0x00, 0xf5, 0x00, 0xf5, 0x01, 0x1e, 0x01, 0x1e, 0x01, | 318 | 0x00, 0xcc, 0x00, 0xf5, 0x00, 0xf5, 0x01, 0x1e, 0x01, 0x1e, 0x01, |
@@ -563,7 +563,7 @@ snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file, | |||
563 | */ | 563 | */ |
564 | 564 | ||
565 | 565 | ||
566 | int __init | 566 | int __devinit |
567 | snd_wavefront_fx_start (snd_wavefront_t *dev) | 567 | snd_wavefront_fx_start (snd_wavefront_t *dev) |
568 | 568 | ||
569 | { | 569 | { |
diff --git a/sound/isa/wavefront/wavefront_midi.c b/sound/isa/wavefront/wavefront_midi.c index 15888ba2169b..cb3460094324 100644 --- a/sound/isa/wavefront/wavefront_midi.c +++ b/sound/isa/wavefront/wavefront_midi.c | |||
@@ -474,7 +474,7 @@ snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *card) | |||
474 | spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); | 474 | spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); |
475 | } | 475 | } |
476 | 476 | ||
477 | int __init | 477 | int __devinit |
478 | snd_wavefront_midi_start (snd_wavefront_card_t *card) | 478 | snd_wavefront_midi_start (snd_wavefront_card_t *card) |
479 | 479 | ||
480 | { | 480 | { |
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index 68aa091e8961..bed329edbdd7 100644 --- a/sound/isa/wavefront/wavefront_synth.c +++ b/sound/isa/wavefront/wavefront_synth.c | |||
@@ -1738,7 +1738,7 @@ snd_wavefront_internal_interrupt (snd_wavefront_card_t *card) | |||
1738 | 7 Unused | 1738 | 7 Unused |
1739 | */ | 1739 | */ |
1740 | 1740 | ||
1741 | static int __init | 1741 | static int __devinit |
1742 | snd_wavefront_interrupt_bits (int irq) | 1742 | snd_wavefront_interrupt_bits (int irq) |
1743 | 1743 | ||
1744 | { | 1744 | { |
@@ -1766,7 +1766,7 @@ snd_wavefront_interrupt_bits (int irq) | |||
1766 | return bits; | 1766 | return bits; |
1767 | } | 1767 | } |
1768 | 1768 | ||
1769 | static void __init | 1769 | static void __devinit |
1770 | wavefront_should_cause_interrupt (snd_wavefront_t *dev, | 1770 | wavefront_should_cause_interrupt (snd_wavefront_t *dev, |
1771 | int val, int port, int timeout) | 1771 | int val, int port, int timeout) |
1772 | 1772 | ||
@@ -1787,7 +1787,7 @@ wavefront_should_cause_interrupt (snd_wavefront_t *dev, | |||
1787 | } | 1787 | } |
1788 | } | 1788 | } |
1789 | 1789 | ||
1790 | static int __init | 1790 | static int __devinit |
1791 | wavefront_reset_to_cleanliness (snd_wavefront_t *dev) | 1791 | wavefront_reset_to_cleanliness (snd_wavefront_t *dev) |
1792 | 1792 | ||
1793 | { | 1793 | { |
@@ -1946,7 +1946,7 @@ wavefront_reset_to_cleanliness (snd_wavefront_t *dev) | |||
1946 | #include <asm/uaccess.h> | 1946 | #include <asm/uaccess.h> |
1947 | 1947 | ||
1948 | 1948 | ||
1949 | static int __init | 1949 | static int __devinit |
1950 | wavefront_download_firmware (snd_wavefront_t *dev, char *path) | 1950 | wavefront_download_firmware (snd_wavefront_t *dev, char *path) |
1951 | 1951 | ||
1952 | { | 1952 | { |
@@ -2047,7 +2047,7 @@ wavefront_download_firmware (snd_wavefront_t *dev, char *path) | |||
2047 | } | 2047 | } |
2048 | 2048 | ||
2049 | 2049 | ||
2050 | static int __init | 2050 | static int __devinit |
2051 | wavefront_do_reset (snd_wavefront_t *dev) | 2051 | wavefront_do_reset (snd_wavefront_t *dev) |
2052 | 2052 | ||
2053 | { | 2053 | { |
@@ -2136,7 +2136,7 @@ wavefront_do_reset (snd_wavefront_t *dev) | |||
2136 | return 1; | 2136 | return 1; |
2137 | } | 2137 | } |
2138 | 2138 | ||
2139 | int __init | 2139 | int __devinit |
2140 | snd_wavefront_start (snd_wavefront_t *dev) | 2140 | snd_wavefront_start (snd_wavefront_t *dev) |
2141 | 2141 | ||
2142 | { | 2142 | { |
@@ -2178,7 +2178,7 @@ snd_wavefront_start (snd_wavefront_t *dev) | |||
2178 | return (0); | 2178 | return (0); |
2179 | } | 2179 | } |
2180 | 2180 | ||
2181 | int __init | 2181 | int __devinit |
2182 | snd_wavefront_detect (snd_wavefront_card_t *card) | 2182 | snd_wavefront_detect (snd_wavefront_card_t *card) |
2183 | 2183 | ||
2184 | { | 2184 | { |
diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig index 23e54cedfd4a..d7ad32f514da 100644 --- a/sound/pci/Kconfig +++ b/sound/pci/Kconfig | |||
@@ -460,17 +460,19 @@ config SND_FM801 | |||
460 | To compile this driver as a module, choose M here: the module | 460 | To compile this driver as a module, choose M here: the module |
461 | will be called snd-fm801. | 461 | will be called snd-fm801. |
462 | 462 | ||
463 | config SND_FM801_TEA575X | 463 | config SND_FM801_TEA575X_BOOL |
464 | tristate "ForteMedia FM801 + TEA5757 tuner" | 464 | bool "ForteMedia FM801 + TEA5757 tuner" |
465 | depends on SND_FM801 | 465 | depends on SND_FM801 |
466 | select VIDEO_DEV | ||
467 | help | 466 | help |
468 | Say Y here to include support for soundcards based on the ForteMedia | 467 | Say Y here to include support for soundcards based on the ForteMedia |
469 | FM801 chip with a TEA5757 tuner connected to GPIO1-3 pins (Media | 468 | FM801 chip with a TEA5757 tuner connected to GPIO1-3 pins (Media |
470 | Forte SF256-PCS-02). | 469 | Forte SF256-PCS-02) into the snd-fm801 driver. |
471 | 470 | ||
472 | To compile this driver as a module, choose M here: the module | 471 | config SND_FM801_TEA575X |
473 | will be called snd-fm801-tea575x. | 472 | tristate |
473 | depends on SND_FM801_TEA575X_BOOL | ||
474 | default SND_FM801 | ||
475 | select VIDEO_DEV | ||
474 | 476 | ||
475 | config SND_HDA_INTEL | 477 | config SND_HDA_INTEL |
476 | tristate "Intel HD Audio" | 478 | tristate "Intel HD Audio" |
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index f7aef8c9cf43..0786d0edaca5 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -241,14 +241,14 @@ ad1889_channel_reset(struct snd_ad1889 *chip, unsigned int channel) | |||
241 | } | 241 | } |
242 | } | 242 | } |
243 | 243 | ||
244 | static inline u16 | 244 | static u16 |
245 | snd_ad1889_ac97_read(struct snd_ac97 *ac97, unsigned short reg) | 245 | snd_ad1889_ac97_read(struct snd_ac97 *ac97, unsigned short reg) |
246 | { | 246 | { |
247 | struct snd_ad1889 *chip = ac97->private_data; | 247 | struct snd_ad1889 *chip = ac97->private_data; |
248 | return ad1889_readw(chip, AD_AC97_BASE + reg); | 248 | return ad1889_readw(chip, AD_AC97_BASE + reg); |
249 | } | 249 | } |
250 | 250 | ||
251 | static inline void | 251 | static void |
252 | snd_ad1889_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val) | 252 | snd_ad1889_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val) |
253 | { | 253 | { |
254 | struct snd_ad1889 *chip = ac97->private_data; | 254 | struct snd_ad1889 *chip = ac97->private_data; |
@@ -873,7 +873,7 @@ skip_hw: | |||
873 | return 0; | 873 | return 0; |
874 | } | 874 | } |
875 | 875 | ||
876 | static inline int | 876 | static int |
877 | snd_ad1889_dev_free(struct snd_device *device) | 877 | snd_ad1889_dev_free(struct snd_device *device) |
878 | { | 878 | { |
879 | struct snd_ad1889 *chip = device->device_data; | 879 | struct snd_ad1889 *chip = device->device_data; |
@@ -1051,7 +1051,7 @@ snd_ad1889_remove(struct pci_dev *pci) | |||
1051 | pci_set_drvdata(pci, NULL); | 1051 | pci_set_drvdata(pci, NULL); |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | static struct pci_device_id snd_ad1889_ids[] __devinitdata = { | 1054 | static struct pci_device_id snd_ad1889_ids[] = { |
1055 | { PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) }, | 1055 | { PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) }, |
1056 | { 0, }, | 1056 | { 0, }, |
1057 | }; | 1057 | }; |
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index e0a815e53d1c..74668398eac5 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -279,7 +279,7 @@ struct snd_ali { | |||
279 | #endif | 279 | #endif |
280 | }; | 280 | }; |
281 | 281 | ||
282 | static struct pci_device_id snd_ali_ids[] __devinitdata = { | 282 | static struct pci_device_id snd_ali_ids[] = { |
283 | {PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0}, | 283 | {PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0}, |
284 | {0, } | 284 | {0, } |
285 | }; | 285 | }; |
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index a9c38963188a..96cfb8ae5055 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c | |||
@@ -146,7 +146,7 @@ struct snd_als300_substream_data { | |||
146 | int block_counter_register; | 146 | int block_counter_register; |
147 | }; | 147 | }; |
148 | 148 | ||
149 | static struct pci_device_id snd_als300_ids[] __devinitdata = { | 149 | static struct pci_device_id snd_als300_ids[] = { |
150 | { 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 }, | 150 | { 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 }, |
151 | { 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS }, | 151 | { 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS }, |
152 | { 0, } | 152 | { 0, } |
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index a9f08066459a..9e596f750cbd 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -116,7 +116,7 @@ struct snd_card_als4000 { | |||
116 | #endif | 116 | #endif |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static struct pci_device_id snd_als4000_ids[] __devinitdata = { | 119 | static struct pci_device_id snd_als4000_ids[] = { |
120 | { 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ALS4000 */ | 120 | { 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ALS4000 */ |
121 | { 0, } | 121 | { 0, } |
122 | }; | 122 | }; |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 9fbb065a810b..347e25ff073d 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -284,7 +284,7 @@ struct atiixp { | |||
284 | 284 | ||
285 | /* | 285 | /* |
286 | */ | 286 | */ |
287 | static struct pci_device_id snd_atiixp_ids[] __devinitdata = { | 287 | static struct pci_device_id snd_atiixp_ids[] = { |
288 | { 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ | 288 | { 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ |
289 | { 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */ | 289 | { 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */ |
290 | { 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */ | 290 | { 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */ |
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index 7dcf4941dce2..a89d67c4598b 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -262,7 +262,7 @@ struct atiixp_modem { | |||
262 | 262 | ||
263 | /* | 263 | /* |
264 | */ | 264 | */ |
265 | static struct pci_device_id snd_atiixp_ids[] __devinitdata = { | 265 | static struct pci_device_id snd_atiixp_ids[] = { |
266 | { 0x1002, 0x434d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ | 266 | { 0x1002, 0x434d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ |
267 | { 0x1002, 0x4378, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */ | 267 | { 0x1002, 0x4378, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */ |
268 | { 0, } | 268 | { 0, } |
diff --git a/sound/pci/au88x0/au8810.c b/sound/pci/au88x0/au8810.c index bd3352998ad0..fce22c7af0ea 100644 --- a/sound/pci/au88x0/au8810.c +++ b/sound/pci/au88x0/au8810.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "au8810.h" | 1 | #include "au8810.h" |
2 | #include "au88x0.h" | 2 | #include "au88x0.h" |
3 | static struct pci_device_id snd_vortex_ids[] __devinitdata = { | 3 | static struct pci_device_id snd_vortex_ids[] = { |
4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE, | 4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE, |
5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,}, | 5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,}, |
6 | {0,} | 6 | {0,} |
diff --git a/sound/pci/au88x0/au8820.c b/sound/pci/au88x0/au8820.c index 7e3fd8372d8d..d1fbcce07257 100644 --- a/sound/pci/au88x0/au8820.c +++ b/sound/pci/au88x0/au8820.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "au8820.h" | 1 | #include "au8820.h" |
2 | #include "au88x0.h" | 2 | #include "au88x0.h" |
3 | static struct pci_device_id snd_vortex_ids[] __devinitdata = { | 3 | static struct pci_device_id snd_vortex_ids[] = { |
4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1, | 4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1, |
5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
6 | {0,} | 6 | {0,} |
diff --git a/sound/pci/au88x0/au8830.c b/sound/pci/au88x0/au8830.c index b840f6608a61..d4f2717c14fb 100644 --- a/sound/pci/au88x0/au8830.c +++ b/sound/pci/au88x0/au8830.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "au8830.h" | 1 | #include "au8830.h" |
2 | #include "au88x0.h" | 2 | #include "au88x0.h" |
3 | static struct pci_device_id snd_vortex_ids[] __devinitdata = { | 3 | static struct pci_device_id snd_vortex_ids[] = { |
4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2, | 4 | {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2, |
5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 5 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
6 | {0,} | 6 | {0,} |
diff --git a/sound/pci/au88x0/au88x0.h b/sound/pci/au88x0/au88x0.h index f078b716d2b0..b1cfc3c79d07 100644 --- a/sound/pci/au88x0/au88x0.h +++ b/sound/pci/au88x0/au88x0.h | |||
@@ -270,7 +270,8 @@ static void vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix, | |||
270 | 270 | ||
271 | /* A3D functions. */ | 271 | /* A3D functions. */ |
272 | #ifndef CHIP_AU8820 | 272 | #ifndef CHIP_AU8820 |
273 | static void vortex_Vort3D(vortex_t * v, int en); | 273 | static void vortex_Vort3D_enable(vortex_t * v); |
274 | static void vortex_Vort3D_disable(vortex_t * v); | ||
274 | static void vortex_Vort3D_connect(vortex_t * vortex, int en); | 275 | static void vortex_Vort3D_connect(vortex_t * vortex, int en); |
275 | static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en); | 276 | static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en); |
276 | #endif | 277 | #endif |
diff --git a/sound/pci/au88x0/au88x0_a3d.c b/sound/pci/au88x0/au88x0_a3d.c index d215f393ea64..649849e540d3 100644 --- a/sound/pci/au88x0/au88x0_a3d.c +++ b/sound/pci/au88x0/au88x0_a3d.c | |||
@@ -593,24 +593,23 @@ static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode) | |||
593 | static int vortex_a3d_register_controls(vortex_t * vortex); | 593 | static int vortex_a3d_register_controls(vortex_t * vortex); |
594 | static void vortex_a3d_unregister_controls(vortex_t * vortex); | 594 | static void vortex_a3d_unregister_controls(vortex_t * vortex); |
595 | /* A3D base support init/shudown */ | 595 | /* A3D base support init/shudown */ |
596 | static void vortex_Vort3D(vortex_t * v, int en) | 596 | static void __devinit vortex_Vort3D_enable(vortex_t * v) |
597 | { | 597 | { |
598 | int i; | 598 | int i; |
599 | if (en) { | 599 | |
600 | Vort3DRend_Initialize(v, XT_HEADPHONE); | 600 | Vort3DRend_Initialize(v, XT_HEADPHONE); |
601 | for (i = 0; i < NR_A3D; i++) { | 601 | for (i = 0; i < NR_A3D; i++) { |
602 | vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2); | 602 | vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2); |
603 | a3dsrc_ZeroStateA3D(&(v->a3d[0])); | 603 | a3dsrc_ZeroStateA3D(&(v->a3d[0])); |
604 | } | ||
605 | } else { | ||
606 | vortex_XtalkHw_Disable(v); | ||
607 | } | 604 | } |
608 | /* Register ALSA controls */ | 605 | /* Register ALSA controls */ |
609 | if (en) { | 606 | vortex_a3d_register_controls(v); |
610 | vortex_a3d_register_controls(v); | 607 | } |
611 | } else { | 608 | |
612 | vortex_a3d_unregister_controls(v); | 609 | static void vortex_Vort3D_disable(vortex_t * v) |
613 | } | 610 | { |
611 | vortex_XtalkHw_Disable(v); | ||
612 | vortex_a3d_unregister_controls(v); | ||
614 | } | 613 | } |
615 | 614 | ||
616 | /* Make A3D subsystem connections. */ | 615 | /* Make A3D subsystem connections. */ |
@@ -855,7 +854,7 @@ static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = { | |||
855 | }; | 854 | }; |
856 | 855 | ||
857 | /* Control (un)registration. */ | 856 | /* Control (un)registration. */ |
858 | static int vortex_a3d_register_controls(vortex_t * vortex) | 857 | static int __devinit vortex_a3d_register_controls(vortex_t * vortex) |
859 | { | 858 | { |
860 | struct snd_kcontrol *kcontrol; | 859 | struct snd_kcontrol *kcontrol; |
861 | int err, i; | 860 | int err, i; |
diff --git a/sound/pci/au88x0/au88x0_core.c b/sound/pci/au88x0/au88x0_core.c index 4347e6abc1d5..5299cce583d3 100644 --- a/sound/pci/au88x0/au88x0_core.c +++ b/sound/pci/au88x0/au88x0_core.c | |||
@@ -2690,7 +2690,7 @@ static int __devinit vortex_core_init(vortex_t * vortex) | |||
2690 | #ifndef CHIP_AU8820 | 2690 | #ifndef CHIP_AU8820 |
2691 | vortex_eq_init(vortex); | 2691 | vortex_eq_init(vortex); |
2692 | vortex_spdif_init(vortex, 48000, 1); | 2692 | vortex_spdif_init(vortex, 48000, 1); |
2693 | vortex_Vort3D(vortex, 1); | 2693 | vortex_Vort3D_enable(vortex); |
2694 | #endif | 2694 | #endif |
2695 | #ifndef CHIP_AU8810 | 2695 | #ifndef CHIP_AU8810 |
2696 | vortex_wt_init(vortex); | 2696 | vortex_wt_init(vortex); |
@@ -2718,7 +2718,7 @@ static int vortex_core_shutdown(vortex_t * vortex) | |||
2718 | printk(KERN_INFO "Vortex: shutdown..."); | 2718 | printk(KERN_INFO "Vortex: shutdown..."); |
2719 | #ifndef CHIP_AU8820 | 2719 | #ifndef CHIP_AU8820 |
2720 | vortex_eq_free(vortex); | 2720 | vortex_eq_free(vortex); |
2721 | vortex_Vort3D(vortex, 0); | 2721 | vortex_Vort3D_disable(vortex); |
2722 | #endif | 2722 | #endif |
2723 | //vortex_disable_timer_int(vortex); | 2723 | //vortex_disable_timer_int(vortex); |
2724 | vortex_disable_int(vortex); | 2724 | vortex_disable_int(vortex); |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index 15447a3216dd..bac8e9cfd921 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -238,7 +238,7 @@ struct snd_azf3328 { | |||
238 | #endif | 238 | #endif |
239 | }; | 239 | }; |
240 | 240 | ||
241 | static const struct pci_device_id snd_azf3328_ids[] __devinitdata = { | 241 | static const struct pci_device_id snd_azf3328_ids[] = { |
242 | { 0x122D, 0x50DC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* PCI168/3328 */ | 242 | { 0x122D, 0x50DC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* PCI168/3328 */ |
243 | { 0x122D, 0x80DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* 3328 */ | 243 | { 0x122D, 0x80DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* 3328 */ |
244 | { 0, } | 244 | { 0, } |
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index 4d4277d045aa..97a280a246cb 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -774,7 +774,7 @@ static int __devinit snd_bt87x_create(struct snd_card *card, | |||
774 | .driver_data = rate } | 774 | .driver_data = rate } |
775 | 775 | ||
776 | /* driver_data is the default digital_rate value for that device */ | 776 | /* driver_data is the default digital_rate value for that device */ |
777 | static struct pci_device_id snd_bt87x_ids[] __devinitdata = { | 777 | static struct pci_device_id snd_bt87x_ids[] = { |
778 | /* Hauppauge WinTV series */ | 778 | /* Hauppauge WinTV series */ |
779 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, 32000), | 779 | BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, 32000), |
780 | /* Hauppauge WinTV series */ | 780 | /* Hauppauge WinTV series */ |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index a30c019bab64..12bbbb6afd2d 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1602,7 +1602,7 @@ static void __devexit snd_ca0106_remove(struct pci_dev *pci) | |||
1602 | } | 1602 | } |
1603 | 1603 | ||
1604 | // PCI IDs | 1604 | // PCI IDs |
1605 | static struct pci_device_id snd_ca0106_ids[] __devinitdata = { | 1605 | static struct pci_device_id snd_ca0106_ids[] = { |
1606 | { 0x1102, 0x0007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Audigy LS or Live 24bit */ | 1606 | { 0x1102, 0x0007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Audigy LS or Live 24bit */ |
1607 | { 0, } | 1607 | { 0, } |
1608 | }; | 1608 | }; |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 03766ad74998..876b64464b6f 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -2609,7 +2609,7 @@ static inline void snd_cmipci_proc_init(struct cmipci *cm) {} | |||
2609 | #endif | 2609 | #endif |
2610 | 2610 | ||
2611 | 2611 | ||
2612 | static struct pci_device_id snd_cmipci_ids[] __devinitdata = { | 2612 | static struct pci_device_id snd_cmipci_ids[] = { |
2613 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 2613 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
2614 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 2614 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
2615 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 2615 | {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index d1802487f5be..9631456ec3de 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -494,7 +494,7 @@ struct cs4281 { | |||
494 | 494 | ||
495 | static irqreturn_t snd_cs4281_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 495 | static irqreturn_t snd_cs4281_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
496 | 496 | ||
497 | static struct pci_device_id snd_cs4281_ids[] __devinitdata = { | 497 | static struct pci_device_id snd_cs4281_ids[] = { |
498 | { 0x1013, 0x6005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4281 */ | 498 | { 0x1013, 0x6005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4281 */ |
499 | { 0, } | 499 | { 0, } |
500 | }; | 500 | }; |
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 772dc52bfeb2..8b6cd144d101 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -65,7 +65,7 @@ MODULE_PARM_DESC(thinkpad, "Force to enable Thinkpad's CLKRUN control."); | |||
65 | module_param_array(mmap_valid, bool, NULL, 0444); | 65 | module_param_array(mmap_valid, bool, NULL, 0444); |
66 | MODULE_PARM_DESC(mmap_valid, "Support OSS mmap."); | 66 | MODULE_PARM_DESC(mmap_valid, "Support OSS mmap."); |
67 | 67 | ||
68 | static struct pci_device_id snd_cs46xx_ids[] __devinitdata = { | 68 | static struct pci_device_id snd_cs46xx_ids[] = { |
69 | { 0x1013, 0x6001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4280 */ | 69 | { 0x1013, 0x6001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4280 */ |
70 | { 0x1013, 0x6003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4612 */ | 70 | { 0x1013, 0x6003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4612 */ |
71 | { 0x1013, 0x6004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4615 */ | 71 | { 0x1013, 0x6004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4615 */ |
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 894545ea41fd..4851847180d2 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -2317,7 +2317,7 @@ static struct snd_kcontrol_new snd_cs46xx_front_dup_ctl = { | |||
2317 | 2317 | ||
2318 | #ifdef CONFIG_SND_CS46XX_NEW_DSP | 2318 | #ifdef CONFIG_SND_CS46XX_NEW_DSP |
2319 | /* Only available on the Hercules Game Theater XP soundcard */ | 2319 | /* Only available on the Hercules Game Theater XP soundcard */ |
2320 | static struct snd_kcontrol_new snd_hercules_controls[] __devinitdata = { | 2320 | static struct snd_kcontrol_new snd_hercules_controls[] = { |
2321 | { | 2321 | { |
2322 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 2322 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
2323 | .name = "Optical/Coaxial SPDIF Input Switch", | 2323 | .name = "Optical/Coaxial SPDIF Input Switch", |
@@ -3458,6 +3458,9 @@ static void hercules_mixer_init (struct snd_cs46xx *chip) | |||
3458 | snd_printdd ("initializing Hercules mixer\n"); | 3458 | snd_printdd ("initializing Hercules mixer\n"); |
3459 | 3459 | ||
3460 | #ifdef CONFIG_SND_CS46XX_NEW_DSP | 3460 | #ifdef CONFIG_SND_CS46XX_NEW_DSP |
3461 | if (chip->in_suspend) | ||
3462 | return; | ||
3463 | |||
3461 | for (idx = 0 ; idx < ARRAY_SIZE(snd_hercules_controls); idx++) { | 3464 | for (idx = 0 ; idx < ARRAY_SIZE(snd_hercules_controls); idx++) { |
3462 | struct snd_kcontrol *kctl; | 3465 | struct snd_kcontrol *kctl; |
3463 | 3466 | ||
@@ -3669,6 +3672,7 @@ int snd_cs46xx_suspend(struct pci_dev *pci, pm_message_t state) | |||
3669 | int amp_saved; | 3672 | int amp_saved; |
3670 | 3673 | ||
3671 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); | 3674 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); |
3675 | chip->in_suspend = 1; | ||
3672 | snd_pcm_suspend_all(chip->pcm); | 3676 | snd_pcm_suspend_all(chip->pcm); |
3673 | // chip->ac97_powerdown = snd_cs46xx_codec_read(chip, AC97_POWER_CONTROL); | 3677 | // chip->ac97_powerdown = snd_cs46xx_codec_read(chip, AC97_POWER_CONTROL); |
3674 | // chip->ac97_general_purpose = snd_cs46xx_codec_read(chip, BA0_AC97_GENERAL_PURPOSE); | 3678 | // chip->ac97_general_purpose = snd_cs46xx_codec_read(chip, BA0_AC97_GENERAL_PURPOSE); |
@@ -3722,6 +3726,7 @@ int snd_cs46xx_resume(struct pci_dev *pci) | |||
3722 | else | 3726 | else |
3723 | chip->active_ctrl(chip, -1); /* disable CLKRUN */ | 3727 | chip->active_ctrl(chip, -1); /* disable CLKRUN */ |
3724 | chip->amplifier = amp_saved; | 3728 | chip->amplifier = amp_saved; |
3729 | chip->in_suspend = 0; | ||
3725 | snd_power_change_state(card, SNDRV_CTL_POWER_D0); | 3730 | snd_power_change_state(card, SNDRV_CTL_POWER_D0); |
3726 | return 0; | 3731 | return 0; |
3727 | } | 3732 | } |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index c12b24c679f2..64c7826e8b8c 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -67,7 +67,7 @@ MODULE_PARM_DESC(id, "ID string for " DRIVER_NAME); | |||
67 | module_param_array(enable, bool, NULL, 0444); | 67 | module_param_array(enable, bool, NULL, 0444); |
68 | MODULE_PARM_DESC(enable, "Enable " DRIVER_NAME); | 68 | MODULE_PARM_DESC(enable, "Enable " DRIVER_NAME); |
69 | 69 | ||
70 | static struct pci_device_id snd_cs5535audio_ids[] __devinitdata = { | 70 | static struct pci_device_id snd_cs5535audio_ids[] = { |
71 | { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_AUDIO) }, | 71 | { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_AUDIO) }, |
72 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_AUDIO) }, | 72 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_AUDIO) }, |
73 | {} | 73 | {} |
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index 549673ea14a9..289bcd99c19c 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -77,7 +77,7 @@ MODULE_PARM_DESC(subsystem, "Force card subsystem model."); | |||
77 | /* | 77 | /* |
78 | * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value Model:SB0400 | 78 | * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value Model:SB0400 |
79 | */ | 79 | */ |
80 | static struct pci_device_id snd_emu10k1_ids[] __devinitdata = { | 80 | static struct pci_device_id snd_emu10k1_ids[] = { |
81 | { 0x1102, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* EMU10K1 */ | 81 | { 0x1102, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* EMU10K1 */ |
82 | { 0x1102, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy */ | 82 | { 0x1102, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy */ |
83 | { 0x1102, 0x0008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy 2 Value SB0400 */ | 83 | { 0x1102, 0x0008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy 2 Value SB0400 */ |
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index d6f135fe2958..f9b5c3dc3b34 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -531,7 +531,7 @@ static void snd_emu10k1_ecard_setadcgain(struct snd_emu10k1 * emu, | |||
531 | snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); | 531 | snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); |
532 | } | 532 | } |
533 | 533 | ||
534 | static int __devinit snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) | 534 | static int snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) |
535 | { | 535 | { |
536 | unsigned int hc_value; | 536 | unsigned int hc_value; |
537 | 537 | ||
@@ -571,7 +571,7 @@ static int __devinit snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) | |||
571 | return 0; | 571 | return 0; |
572 | } | 572 | } |
573 | 573 | ||
574 | static int __devinit snd_emu10k1_cardbus_init(struct snd_emu10k1 * emu) | 574 | static int snd_emu10k1_cardbus_init(struct snd_emu10k1 * emu) |
575 | { | 575 | { |
576 | unsigned long special_port; | 576 | unsigned long special_port; |
577 | unsigned int value; | 577 | unsigned int value; |
@@ -633,7 +633,7 @@ static int snd_emu1212m_fpga_netlist_write(struct snd_emu10k1 * emu, int reg, in | |||
633 | return 0; | 633 | return 0; |
634 | } | 634 | } |
635 | 635 | ||
636 | static int __devinit snd_emu10k1_emu1212m_init(struct snd_emu10k1 * emu) | 636 | static int snd_emu10k1_emu1212m_init(struct snd_emu10k1 * emu) |
637 | { | 637 | { |
638 | unsigned int i; | 638 | unsigned int i; |
639 | int tmp; | 639 | int tmp; |
@@ -1430,6 +1430,10 @@ void snd_emu10k1_resume_init(struct snd_emu10k1 *emu) | |||
1430 | { | 1430 | { |
1431 | if (emu->card_capabilities->ecard) | 1431 | if (emu->card_capabilities->ecard) |
1432 | snd_emu10k1_ecard_init(emu); | 1432 | snd_emu10k1_ecard_init(emu); |
1433 | else if (emu->card_capabilities->ca_cardbus_chip) | ||
1434 | snd_emu10k1_cardbus_init(emu); | ||
1435 | else if (emu->card_capabilities->emu1212m) | ||
1436 | snd_emu10k1_emu1212m_init(emu); | ||
1433 | else | 1437 | else |
1434 | snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE); | 1438 | snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE); |
1435 | snd_emu10k1_init(emu, emu->enable_ir, 1); | 1439 | snd_emu10k1_init(emu, emu->enable_ir, 1); |
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 2167279429b8..bda8bdf59935 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1286,7 +1286,7 @@ static void snd_emu10k1x_midi_interrupt(struct emu10k1x *emu, unsigned int statu | |||
1286 | do_emu10k1x_midi_interrupt(emu, &emu->midi, status); | 1286 | do_emu10k1x_midi_interrupt(emu, &emu->midi, status); |
1287 | } | 1287 | } |
1288 | 1288 | ||
1289 | static void snd_emu10k1x_midi_cmd(struct emu10k1x * emu, | 1289 | static int snd_emu10k1x_midi_cmd(struct emu10k1x * emu, |
1290 | struct emu10k1x_midi *midi, unsigned char cmd, int ack) | 1290 | struct emu10k1x_midi *midi, unsigned char cmd, int ack) |
1291 | { | 1291 | { |
1292 | unsigned long flags; | 1292 | unsigned long flags; |
@@ -1312,11 +1312,14 @@ static void snd_emu10k1x_midi_cmd(struct emu10k1x * emu, | |||
1312 | ok = 1; | 1312 | ok = 1; |
1313 | } | 1313 | } |
1314 | spin_unlock_irqrestore(&midi->input_lock, flags); | 1314 | spin_unlock_irqrestore(&midi->input_lock, flags); |
1315 | if (!ok) | 1315 | if (!ok) { |
1316 | snd_printk(KERN_ERR "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", | 1316 | snd_printk(KERN_ERR "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", |
1317 | cmd, emu->port, | 1317 | cmd, emu->port, |
1318 | mpu401_read_stat(emu, midi), | 1318 | mpu401_read_stat(emu, midi), |
1319 | mpu401_read_data(emu, midi)); | 1319 | mpu401_read_data(emu, midi)); |
1320 | return 1; | ||
1321 | } | ||
1322 | return 0; | ||
1320 | } | 1323 | } |
1321 | 1324 | ||
1322 | static int snd_emu10k1x_midi_input_open(struct snd_rawmidi_substream *substream) | 1325 | static int snd_emu10k1x_midi_input_open(struct snd_rawmidi_substream *substream) |
@@ -1332,12 +1335,17 @@ static int snd_emu10k1x_midi_input_open(struct snd_rawmidi_substream *substream) | |||
1332 | midi->substream_input = substream; | 1335 | midi->substream_input = substream; |
1333 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_OUTPUT)) { | 1336 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_OUTPUT)) { |
1334 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1337 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1335 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1); | 1338 | if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1)) |
1336 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1); | 1339 | goto error_out; |
1340 | if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) | ||
1341 | goto error_out; | ||
1337 | } else { | 1342 | } else { |
1338 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1343 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1339 | } | 1344 | } |
1340 | return 0; | 1345 | return 0; |
1346 | |||
1347 | error_out: | ||
1348 | return -EIO; | ||
1341 | } | 1349 | } |
1342 | 1350 | ||
1343 | static int snd_emu10k1x_midi_output_open(struct snd_rawmidi_substream *substream) | 1351 | static int snd_emu10k1x_midi_output_open(struct snd_rawmidi_substream *substream) |
@@ -1353,12 +1361,17 @@ static int snd_emu10k1x_midi_output_open(struct snd_rawmidi_substream *substream | |||
1353 | midi->substream_output = substream; | 1361 | midi->substream_output = substream; |
1354 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { | 1362 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { |
1355 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1363 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1356 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1); | 1364 | if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 1)) |
1357 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1); | 1365 | goto error_out; |
1366 | if (snd_emu10k1x_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) | ||
1367 | goto error_out; | ||
1358 | } else { | 1368 | } else { |
1359 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1369 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1360 | } | 1370 | } |
1361 | return 0; | 1371 | return 0; |
1372 | |||
1373 | error_out: | ||
1374 | return -EIO; | ||
1362 | } | 1375 | } |
1363 | 1376 | ||
1364 | static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream) | 1377 | static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream) |
@@ -1366,6 +1379,7 @@ static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream | |||
1366 | struct emu10k1x *emu; | 1379 | struct emu10k1x *emu; |
1367 | struct emu10k1x_midi *midi = substream->rmidi->private_data; | 1380 | struct emu10k1x_midi *midi = substream->rmidi->private_data; |
1368 | unsigned long flags; | 1381 | unsigned long flags; |
1382 | int err = 0; | ||
1369 | 1383 | ||
1370 | emu = midi->emu; | 1384 | emu = midi->emu; |
1371 | snd_assert(emu, return -ENXIO); | 1385 | snd_assert(emu, return -ENXIO); |
@@ -1375,11 +1389,11 @@ static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream | |||
1375 | midi->substream_input = NULL; | 1389 | midi->substream_input = NULL; |
1376 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_OUTPUT)) { | 1390 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_OUTPUT)) { |
1377 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1391 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1378 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); | 1392 | err = snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); |
1379 | } else { | 1393 | } else { |
1380 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1394 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1381 | } | 1395 | } |
1382 | return 0; | 1396 | return err; |
1383 | } | 1397 | } |
1384 | 1398 | ||
1385 | static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substream) | 1399 | static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substream) |
@@ -1387,6 +1401,7 @@ static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substrea | |||
1387 | struct emu10k1x *emu; | 1401 | struct emu10k1x *emu; |
1388 | struct emu10k1x_midi *midi = substream->rmidi->private_data; | 1402 | struct emu10k1x_midi *midi = substream->rmidi->private_data; |
1389 | unsigned long flags; | 1403 | unsigned long flags; |
1404 | int err = 0; | ||
1390 | 1405 | ||
1391 | emu = midi->emu; | 1406 | emu = midi->emu; |
1392 | snd_assert(emu, return -ENXIO); | 1407 | snd_assert(emu, return -ENXIO); |
@@ -1396,11 +1411,11 @@ static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substrea | |||
1396 | midi->substream_output = NULL; | 1411 | midi->substream_output = NULL; |
1397 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { | 1412 | if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { |
1398 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1413 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1399 | snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); | 1414 | err = snd_emu10k1x_midi_cmd(emu, midi, MPU401_RESET, 0); |
1400 | } else { | 1415 | } else { |
1401 | spin_unlock_irqrestore(&midi->open_lock, flags); | 1416 | spin_unlock_irqrestore(&midi->open_lock, flags); |
1402 | } | 1417 | } |
1403 | return 0; | 1418 | return err; |
1404 | } | 1419 | } |
1405 | 1420 | ||
1406 | static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) | 1421 | static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) |
@@ -1594,7 +1609,7 @@ static void __devexit snd_emu10k1x_remove(struct pci_dev *pci) | |||
1594 | } | 1609 | } |
1595 | 1610 | ||
1596 | // PCI IDs | 1611 | // PCI IDs |
1597 | static struct pci_device_id snd_emu10k1x_ids[] __devinitdata = { | 1612 | static struct pci_device_id snd_emu10k1x_ids[] = { |
1598 | { 0x1102, 0x0006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Dell OEM version (EMU10K1) */ | 1613 | { 0x1102, 0x0006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Dell OEM version (EMU10K1) */ |
1599 | { 0, } | 1614 | { 0, } |
1600 | }; | 1615 | }; |
diff --git a/sound/pci/emu10k1/emumpu401.c b/sound/pci/emu10k1/emumpu401.c index d96eb455103f..950c6bcd6b7d 100644 --- a/sound/pci/emu10k1/emumpu401.c +++ b/sound/pci/emu10k1/emumpu401.c | |||
@@ -116,7 +116,7 @@ static void snd_emu10k1_midi_interrupt2(struct snd_emu10k1 *emu, unsigned int st | |||
116 | do_emu10k1_midi_interrupt(emu, &emu->midi2, status); | 116 | do_emu10k1_midi_interrupt(emu, &emu->midi2, status); |
117 | } | 117 | } |
118 | 118 | ||
119 | static void snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu, struct snd_emu10k1_midi *midi, unsigned char cmd, int ack) | 119 | static int snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu, struct snd_emu10k1_midi *midi, unsigned char cmd, int ack) |
120 | { | 120 | { |
121 | unsigned long flags; | 121 | unsigned long flags; |
122 | int timeout, ok; | 122 | int timeout, ok; |
@@ -141,11 +141,14 @@ static void snd_emu10k1_midi_cmd(struct snd_emu10k1 * emu, struct snd_emu10k1_mi | |||
141 | ok = 1; | 141 | ok = 1; |
142 | } | 142 | } |
143 | spin_unlock_irqrestore(&midi->input_lock, flags); | 143 | spin_unlock_irqrestore(&midi->input_lock, flags); |
144 | if (!ok) | 144 | if (!ok) { |
145 | snd_printk(KERN_ERR "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", | 145 | snd_printk(KERN_ERR "midi_cmd: 0x%x failed at 0x%lx (status = 0x%x, data = 0x%x)!!!\n", |
146 | cmd, emu->port, | 146 | cmd, emu->port, |
147 | mpu401_read_stat(emu, midi), | 147 | mpu401_read_stat(emu, midi), |
148 | mpu401_read_data(emu, midi)); | 148 | mpu401_read_data(emu, midi)); |
149 | return 1; | ||
150 | } | ||
151 | return 0; | ||
149 | } | 152 | } |
150 | 153 | ||
151 | static int snd_emu10k1_midi_input_open(struct snd_rawmidi_substream *substream) | 154 | static int snd_emu10k1_midi_input_open(struct snd_rawmidi_substream *substream) |
@@ -161,12 +164,17 @@ static int snd_emu10k1_midi_input_open(struct snd_rawmidi_substream *substream) | |||
161 | midi->substream_input = substream; | 164 | midi->substream_input = substream; |
162 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_OUTPUT)) { | 165 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_OUTPUT)) { |
163 | spin_unlock_irqrestore(&midi->open_lock, flags); | 166 | spin_unlock_irqrestore(&midi->open_lock, flags); |
164 | snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1); | 167 | if (snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1)) |
165 | snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1); | 168 | goto error_out; |
169 | if (snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) | ||
170 | goto error_out; | ||
166 | } else { | 171 | } else { |
167 | spin_unlock_irqrestore(&midi->open_lock, flags); | 172 | spin_unlock_irqrestore(&midi->open_lock, flags); |
168 | } | 173 | } |
169 | return 0; | 174 | return 0; |
175 | |||
176 | error_out: | ||
177 | return -EIO; | ||
170 | } | 178 | } |
171 | 179 | ||
172 | static int snd_emu10k1_midi_output_open(struct snd_rawmidi_substream *substream) | 180 | static int snd_emu10k1_midi_output_open(struct snd_rawmidi_substream *substream) |
@@ -182,12 +190,17 @@ static int snd_emu10k1_midi_output_open(struct snd_rawmidi_substream *substream) | |||
182 | midi->substream_output = substream; | 190 | midi->substream_output = substream; |
183 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { | 191 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { |
184 | spin_unlock_irqrestore(&midi->open_lock, flags); | 192 | spin_unlock_irqrestore(&midi->open_lock, flags); |
185 | snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1); | 193 | if (snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 1)) |
186 | snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1); | 194 | goto error_out; |
195 | if (snd_emu10k1_midi_cmd(emu, midi, MPU401_ENTER_UART, 1)) | ||
196 | goto error_out; | ||
187 | } else { | 197 | } else { |
188 | spin_unlock_irqrestore(&midi->open_lock, flags); | 198 | spin_unlock_irqrestore(&midi->open_lock, flags); |
189 | } | 199 | } |
190 | return 0; | 200 | return 0; |
201 | |||
202 | error_out: | ||
203 | return -EIO; | ||
191 | } | 204 | } |
192 | 205 | ||
193 | static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream) | 206 | static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream) |
@@ -195,6 +208,7 @@ static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream) | |||
195 | struct snd_emu10k1 *emu; | 208 | struct snd_emu10k1 *emu; |
196 | struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; | 209 | struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; |
197 | unsigned long flags; | 210 | unsigned long flags; |
211 | int err = 0; | ||
198 | 212 | ||
199 | emu = midi->emu; | 213 | emu = midi->emu; |
200 | snd_assert(emu, return -ENXIO); | 214 | snd_assert(emu, return -ENXIO); |
@@ -204,11 +218,11 @@ static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream) | |||
204 | midi->substream_input = NULL; | 218 | midi->substream_input = NULL; |
205 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_OUTPUT)) { | 219 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_OUTPUT)) { |
206 | spin_unlock_irqrestore(&midi->open_lock, flags); | 220 | spin_unlock_irqrestore(&midi->open_lock, flags); |
207 | snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); | 221 | err = snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); |
208 | } else { | 222 | } else { |
209 | spin_unlock_irqrestore(&midi->open_lock, flags); | 223 | spin_unlock_irqrestore(&midi->open_lock, flags); |
210 | } | 224 | } |
211 | return 0; | 225 | return err; |
212 | } | 226 | } |
213 | 227 | ||
214 | static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream) | 228 | static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream) |
@@ -216,6 +230,7 @@ static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream | |||
216 | struct snd_emu10k1 *emu; | 230 | struct snd_emu10k1 *emu; |
217 | struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; | 231 | struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data; |
218 | unsigned long flags; | 232 | unsigned long flags; |
233 | int err = 0; | ||
219 | 234 | ||
220 | emu = midi->emu; | 235 | emu = midi->emu; |
221 | snd_assert(emu, return -ENXIO); | 236 | snd_assert(emu, return -ENXIO); |
@@ -225,11 +240,11 @@ static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream | |||
225 | midi->substream_output = NULL; | 240 | midi->substream_output = NULL; |
226 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { | 241 | if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { |
227 | spin_unlock_irqrestore(&midi->open_lock, flags); | 242 | spin_unlock_irqrestore(&midi->open_lock, flags); |
228 | snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); | 243 | err = snd_emu10k1_midi_cmd(emu, midi, MPU401_RESET, 0); |
229 | } else { | 244 | } else { |
230 | spin_unlock_irqrestore(&midi->open_lock, flags); | 245 | spin_unlock_irqrestore(&midi->open_lock, flags); |
231 | } | 246 | } |
232 | return 0; | 247 | return err; |
233 | } | 248 | } |
234 | 249 | ||
235 | static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) | 250 | static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index 7a985c868007..a8a601fc781f 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -446,7 +446,7 @@ struct ensoniq { | |||
446 | 446 | ||
447 | static irqreturn_t snd_audiopci_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 447 | static irqreturn_t snd_audiopci_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
448 | 448 | ||
449 | static struct pci_device_id snd_audiopci_ids[] __devinitdata = { | 449 | static struct pci_device_id snd_audiopci_ids[] = { |
450 | #ifdef CHIP1370 | 450 | #ifdef CHIP1370 |
451 | { 0x1274, 0x5000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ES1370 */ | 451 | { 0x1274, 0x5000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ES1370 */ |
452 | #endif | 452 | #endif |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 1113b10259cf..cc0f34f68185 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -242,7 +242,7 @@ struct es1938 { | |||
242 | 242 | ||
243 | static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 243 | static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
244 | 244 | ||
245 | static struct pci_device_id snd_es1938_ids[] __devinitdata = { | 245 | static struct pci_device_id snd_es1938_ids[] = { |
246 | { 0x125d, 0x1969, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* Solo-1 */ | 246 | { 0x125d, 0x1969, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* Solo-1 */ |
247 | { 0, } | 247 | { 0, } |
248 | }; | 248 | }; |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index a491c8f8a6a8..3c5ab7c2e72d 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -592,7 +592,7 @@ struct es1968 { | |||
592 | 592 | ||
593 | static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 593 | static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
594 | 594 | ||
595 | static struct pci_device_id snd_es1968_ids[] __devinitdata = { | 595 | static struct pci_device_id snd_es1968_ids[] = { |
596 | /* Maestro 1 */ | 596 | /* Maestro 1 */ |
597 | { 0x1285, 0x0100, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO }, | 597 | { 0x1285, 0x0100, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO }, |
598 | /* Maestro 2 */ | 598 | /* Maestro 2 */ |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 3aed27eace2c..13868c985126 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include <asm/io.h> | 36 | #include <asm/io.h> |
37 | 37 | ||
38 | #if (defined(CONFIG_SND_FM801_TEA575X) || defined(CONFIG_SND_FM801_TEA575X_MODULE)) && (defined(CONFIG_VIDEO_DEV) || defined(CONFIG_VIDEO_DEV_MODULE)) | 38 | #ifdef CONFIG_SND_FM801_TEA575X_BOOL |
39 | #include <sound/tea575x-tuner.h> | 39 | #include <sound/tea575x-tuner.h> |
40 | #define TEA575X_RADIO 1 | 40 | #define TEA575X_RADIO 1 |
41 | #endif | 41 | #endif |
@@ -199,7 +199,7 @@ struct fm801 { | |||
199 | #endif | 199 | #endif |
200 | }; | 200 | }; |
201 | 201 | ||
202 | static struct pci_device_id snd_fm801_ids[] __devinitdata = { | 202 | static struct pci_device_id snd_fm801_ids[] = { |
203 | { 0x1319, 0x0801, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* FM801 */ | 203 | { 0x1319, 0x0801, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* FM801 */ |
204 | { 0x5213, 0x0510, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* Gallant Odyssey Sound 4 */ | 204 | { 0x5213, 0x0510, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* Gallant Odyssey Sound 4 */ |
205 | { 0, } | 205 | { 0, } |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 025af7c0c6e1..79d63c99f092 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1629,7 +1629,7 @@ static void __devexit azx_remove(struct pci_dev *pci) | |||
1629 | } | 1629 | } |
1630 | 1630 | ||
1631 | /* PCI IDs */ | 1631 | /* PCI IDs */ |
1632 | static struct pci_device_id azx_ids[] __devinitdata = { | 1632 | static struct pci_device_id azx_ids[] = { |
1633 | { 0x8086, 0x2668, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH6 */ | 1633 | { 0x8086, 0x2668, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH6 */ |
1634 | { 0x8086, 0x27d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH7 */ | 1634 | { 0x8086, 0x27d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH7 */ |
1635 | { 0x8086, 0x269a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ESB2 */ | 1635 | { 0x8086, 0x269a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ESB2 */ |
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 33b7d5806469..6823f2bc10b3 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -1545,6 +1545,9 @@ enum { | |||
1545 | /* reivision id to check workarounds */ | 1545 | /* reivision id to check workarounds */ |
1546 | #define AD1988A_REV2 0x100200 | 1546 | #define AD1988A_REV2 0x100200 |
1547 | 1547 | ||
1548 | #define is_rev2(codec) \ | ||
1549 | ((codec)->vendor_id == 0x11d41988 && \ | ||
1550 | (codec)->revision_id == AD1988A_REV2) | ||
1548 | 1551 | ||
1549 | /* | 1552 | /* |
1550 | * mixers | 1553 | * mixers |
@@ -1636,6 +1639,7 @@ static struct snd_kcontrol_new ad1988_6stack_mixers1[] = { | |||
1636 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x05, 1, 0x0, HDA_OUTPUT), | 1639 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x05, 1, 0x0, HDA_OUTPUT), |
1637 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x05, 2, 0x0, HDA_OUTPUT), | 1640 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x05, 2, 0x0, HDA_OUTPUT), |
1638 | HDA_CODEC_VOLUME("Side Playback Volume", 0x0a, 0x0, HDA_OUTPUT), | 1641 | HDA_CODEC_VOLUME("Side Playback Volume", 0x0a, 0x0, HDA_OUTPUT), |
1642 | { } /* end */ | ||
1639 | }; | 1643 | }; |
1640 | 1644 | ||
1641 | static struct snd_kcontrol_new ad1988_6stack_mixers1_rev2[] = { | 1645 | static struct snd_kcontrol_new ad1988_6stack_mixers1_rev2[] = { |
@@ -1644,6 +1648,7 @@ static struct snd_kcontrol_new ad1988_6stack_mixers1_rev2[] = { | |||
1644 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x0a, 1, 0x0, HDA_OUTPUT), | 1648 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x0a, 1, 0x0, HDA_OUTPUT), |
1645 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x0a, 2, 0x0, HDA_OUTPUT), | 1649 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x0a, 2, 0x0, HDA_OUTPUT), |
1646 | HDA_CODEC_VOLUME("Side Playback Volume", 0x06, 0x0, HDA_OUTPUT), | 1650 | HDA_CODEC_VOLUME("Side Playback Volume", 0x06, 0x0, HDA_OUTPUT), |
1651 | { } /* end */ | ||
1647 | }; | 1652 | }; |
1648 | 1653 | ||
1649 | static struct snd_kcontrol_new ad1988_6stack_mixers2[] = { | 1654 | static struct snd_kcontrol_new ad1988_6stack_mixers2[] = { |
@@ -1682,6 +1687,7 @@ static struct snd_kcontrol_new ad1988_3stack_mixers1[] = { | |||
1682 | HDA_CODEC_VOLUME("Surround Playback Volume", 0x0a, 0x0, HDA_OUTPUT), | 1687 | HDA_CODEC_VOLUME("Surround Playback Volume", 0x0a, 0x0, HDA_OUTPUT), |
1683 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x05, 1, 0x0, HDA_OUTPUT), | 1688 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x05, 1, 0x0, HDA_OUTPUT), |
1684 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x05, 2, 0x0, HDA_OUTPUT), | 1689 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x05, 2, 0x0, HDA_OUTPUT), |
1690 | { } /* end */ | ||
1685 | }; | 1691 | }; |
1686 | 1692 | ||
1687 | static struct snd_kcontrol_new ad1988_3stack_mixers1_rev2[] = { | 1693 | static struct snd_kcontrol_new ad1988_3stack_mixers1_rev2[] = { |
@@ -1689,6 +1695,7 @@ static struct snd_kcontrol_new ad1988_3stack_mixers1_rev2[] = { | |||
1689 | HDA_CODEC_VOLUME("Surround Playback Volume", 0x0a, 0x0, HDA_OUTPUT), | 1695 | HDA_CODEC_VOLUME("Surround Playback Volume", 0x0a, 0x0, HDA_OUTPUT), |
1690 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x06, 1, 0x0, HDA_OUTPUT), | 1696 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x06, 1, 0x0, HDA_OUTPUT), |
1691 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x06, 2, 0x0, HDA_OUTPUT), | 1697 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x06, 2, 0x0, HDA_OUTPUT), |
1698 | { } /* end */ | ||
1692 | }; | 1699 | }; |
1693 | 1700 | ||
1694 | static struct snd_kcontrol_new ad1988_3stack_mixers2[] = { | 1701 | static struct snd_kcontrol_new ad1988_3stack_mixers2[] = { |
@@ -2195,7 +2202,7 @@ static inline hda_nid_t ad1988_idx_to_dac(struct hda_codec *codec, int idx) | |||
2195 | /* A B C D E F G H */ | 2202 | /* A B C D E F G H */ |
2196 | 0x04, 0x05, 0x0a, 0x04, 0x06, 0x05, 0x0a, 0x06 | 2203 | 0x04, 0x05, 0x0a, 0x04, 0x06, 0x05, 0x0a, 0x06 |
2197 | }; | 2204 | }; |
2198 | if (codec->revision_id == AD1988A_REV2) | 2205 | if (is_rev2(codec)) |
2199 | return idx_to_dac_rev2[idx]; | 2206 | return idx_to_dac_rev2[idx]; |
2200 | else | 2207 | else |
2201 | return idx_to_dac[idx]; | 2208 | return idx_to_dac[idx]; |
@@ -2564,7 +2571,7 @@ static int patch_ad1988(struct hda_codec *codec) | |||
2564 | mutex_init(&spec->amp_mutex); | 2571 | mutex_init(&spec->amp_mutex); |
2565 | codec->spec = spec; | 2572 | codec->spec = spec; |
2566 | 2573 | ||
2567 | if (codec->revision_id == AD1988A_REV2) | 2574 | if (is_rev2(codec)) |
2568 | snd_printk(KERN_INFO "patch_analog: AD1988A rev.2 is detected, enable workarounds\n"); | 2575 | snd_printk(KERN_INFO "patch_analog: AD1988A rev.2 is detected, enable workarounds\n"); |
2569 | 2576 | ||
2570 | board_config = snd_hda_check_board_config(codec, ad1988_cfg_tbl); | 2577 | board_config = snd_hda_check_board_config(codec, ad1988_cfg_tbl); |
@@ -2590,13 +2597,13 @@ static int patch_ad1988(struct hda_codec *codec) | |||
2590 | case AD1988_6STACK_DIG: | 2597 | case AD1988_6STACK_DIG: |
2591 | spec->multiout.max_channels = 8; | 2598 | spec->multiout.max_channels = 8; |
2592 | spec->multiout.num_dacs = 4; | 2599 | spec->multiout.num_dacs = 4; |
2593 | if (codec->revision_id == AD1988A_REV2) | 2600 | if (is_rev2(codec)) |
2594 | spec->multiout.dac_nids = ad1988_6stack_dac_nids_rev2; | 2601 | spec->multiout.dac_nids = ad1988_6stack_dac_nids_rev2; |
2595 | else | 2602 | else |
2596 | spec->multiout.dac_nids = ad1988_6stack_dac_nids; | 2603 | spec->multiout.dac_nids = ad1988_6stack_dac_nids; |
2597 | spec->input_mux = &ad1988_6stack_capture_source; | 2604 | spec->input_mux = &ad1988_6stack_capture_source; |
2598 | spec->num_mixers = 2; | 2605 | spec->num_mixers = 2; |
2599 | if (codec->revision_id == AD1988A_REV2) | 2606 | if (is_rev2(codec)) |
2600 | spec->mixers[0] = ad1988_6stack_mixers1_rev2; | 2607 | spec->mixers[0] = ad1988_6stack_mixers1_rev2; |
2601 | else | 2608 | else |
2602 | spec->mixers[0] = ad1988_6stack_mixers1; | 2609 | spec->mixers[0] = ad1988_6stack_mixers1; |
@@ -2612,7 +2619,7 @@ static int patch_ad1988(struct hda_codec *codec) | |||
2612 | case AD1988_3STACK_DIG: | 2619 | case AD1988_3STACK_DIG: |
2613 | spec->multiout.max_channels = 6; | 2620 | spec->multiout.max_channels = 6; |
2614 | spec->multiout.num_dacs = 3; | 2621 | spec->multiout.num_dacs = 3; |
2615 | if (codec->revision_id == AD1988A_REV2) | 2622 | if (is_rev2(codec)) |
2616 | spec->multiout.dac_nids = ad1988_3stack_dac_nids_rev2; | 2623 | spec->multiout.dac_nids = ad1988_3stack_dac_nids_rev2; |
2617 | else | 2624 | else |
2618 | spec->multiout.dac_nids = ad1988_3stack_dac_nids; | 2625 | spec->multiout.dac_nids = ad1988_3stack_dac_nids; |
@@ -2620,7 +2627,7 @@ static int patch_ad1988(struct hda_codec *codec) | |||
2620 | spec->channel_mode = ad1988_3stack_modes; | 2627 | spec->channel_mode = ad1988_3stack_modes; |
2621 | spec->num_channel_mode = ARRAY_SIZE(ad1988_3stack_modes); | 2628 | spec->num_channel_mode = ARRAY_SIZE(ad1988_3stack_modes); |
2622 | spec->num_mixers = 2; | 2629 | spec->num_mixers = 2; |
2623 | if (codec->revision_id == AD1988A_REV2) | 2630 | if (is_rev2(codec)) |
2624 | spec->mixers[0] = ad1988_3stack_mixers1_rev2; | 2631 | spec->mixers[0] = ad1988_3stack_mixers1_rev2; |
2625 | else | 2632 | else |
2626 | spec->mixers[0] = ad1988_3stack_mixers1; | 2633 | spec->mixers[0] = ad1988_3stack_mixers1; |
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c index ca74f5b85f42..9492f3d2455b 100644 --- a/sound/pci/ice1712/aureon.c +++ b/sound/pci/ice1712/aureon.c | |||
@@ -2131,7 +2131,7 @@ struct snd_ice1712_card_info snd_vt1724_aureon_cards[] __devinitdata = { | |||
2131 | .build_controls = aureon_add_controls, | 2131 | .build_controls = aureon_add_controls, |
2132 | .eeprom_size = sizeof(aureon71_eeprom), | 2132 | .eeprom_size = sizeof(aureon71_eeprom), |
2133 | .eeprom_data = aureon71_eeprom, | 2133 | .eeprom_data = aureon71_eeprom, |
2134 | .driver = "Aureon71Universe", | 2134 | .driver = "Aureon71Univ", /* keep in 15 letters */ |
2135 | }, | 2135 | }, |
2136 | { | 2136 | { |
2137 | .subvendor = VT1724_SUBDEVICE_PRODIGY71, | 2137 | .subvendor = VT1724_SUBDEVICE_PRODIGY71, |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 89a06dec4365..bf20858d9f19 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -106,7 +106,7 @@ module_param_array(dxr_enable, int, NULL, 0444); | |||
106 | MODULE_PARM_DESC(dxr_enable, "Enable DXR support for Terratec DMX6FIRE."); | 106 | MODULE_PARM_DESC(dxr_enable, "Enable DXR support for Terratec DMX6FIRE."); |
107 | 107 | ||
108 | 108 | ||
109 | static struct pci_device_id snd_ice1712_ids[] __devinitdata = { | 109 | static struct pci_device_id snd_ice1712_ids[] = { |
110 | { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_ICE_1712, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* ICE1712 */ | 110 | { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_ICE_1712, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* ICE1712 */ |
111 | { 0, } | 111 | { 0, } |
112 | }; | 112 | }; |
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index ad69ed7c1b81..71d6aedc0749 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -86,7 +86,7 @@ MODULE_PARM_DESC(model, "Use the given board model."); | |||
86 | 86 | ||
87 | 87 | ||
88 | /* Both VT1720 and VT1724 have the same PCI IDs */ | 88 | /* Both VT1720 and VT1724 have the same PCI IDs */ |
89 | static struct pci_device_id snd_vt1724_ids[] __devinitdata = { | 89 | static struct pci_device_id snd_vt1724_ids[] = { |
90 | { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_VT1724, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 90 | { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_VT1724, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
91 | { 0, } | 91 | { 0, } |
92 | }; | 92 | }; |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 5634bc349257..6874263f1681 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -413,7 +413,7 @@ struct intel8x0 { | |||
413 | u32 int_sta_mask; /* interrupt status mask */ | 413 | u32 int_sta_mask; /* interrupt status mask */ |
414 | }; | 414 | }; |
415 | 415 | ||
416 | static struct pci_device_id snd_intel8x0_ids[] __devinitdata = { | 416 | static struct pci_device_id snd_intel8x0_ids[] = { |
417 | { 0x8086, 0x2415, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ | 417 | { 0x8086, 0x2415, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ |
418 | { 0x8086, 0x2425, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ | 418 | { 0x8086, 0x2425, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ |
419 | { 0x8086, 0x2445, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */ | 419 | { 0x8086, 0x2445, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */ |
@@ -1956,6 +1956,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = { | |||
1956 | .type = AC97_TUNE_HP_ONLY | 1956 | .type = AC97_TUNE_HP_ONLY |
1957 | }, | 1957 | }, |
1958 | { | 1958 | { |
1959 | .subvendor = 0x10f1, | ||
1960 | .subdevice = 0x2895, | ||
1961 | .name = "Tyan Thunder K8WE", | ||
1962 | .type = AC97_TUNE_HP_ONLY | ||
1963 | }, | ||
1964 | { | ||
1959 | .subvendor = 0x110a, | 1965 | .subvendor = 0x110a, |
1960 | .subdevice = 0x0056, | 1966 | .subdevice = 0x0056, |
1961 | .name = "Fujitsu-Siemens Scenic", /* AD1981? */ | 1967 | .name = "Fujitsu-Siemens Scenic", /* AD1981? */ |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index f28e273ae276..91850281f89b 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -224,7 +224,7 @@ struct intel8x0m { | |||
224 | unsigned int pcm_pos_shift; | 224 | unsigned int pcm_pos_shift; |
225 | }; | 225 | }; |
226 | 226 | ||
227 | static struct pci_device_id snd_intel8x0m_ids[] __devinitdata = { | 227 | static struct pci_device_id snd_intel8x0m_ids[] = { |
228 | { 0x8086, 0x2416, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ | 228 | { 0x8086, 0x2416, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ |
229 | { 0x8086, 0x2426, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ | 229 | { 0x8086, 0x2426, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ |
230 | { 0x8086, 0x2446, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */ | 230 | { 0x8086, 0x2446, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */ |
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index 2b4ce002794a..cfea51f44784 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -424,7 +424,7 @@ module_param_array(enable, bool, NULL, 0444); | |||
424 | MODULE_PARM_DESC(enable, "Enable Korg 1212 soundcard."); | 424 | MODULE_PARM_DESC(enable, "Enable Korg 1212 soundcard."); |
425 | MODULE_AUTHOR("Haroldo Gamal <gamal@alternex.com.br>"); | 425 | MODULE_AUTHOR("Haroldo Gamal <gamal@alternex.com.br>"); |
426 | 426 | ||
427 | static struct pci_device_id snd_korg1212_ids[] __devinitdata = { | 427 | static struct pci_device_id snd_korg1212_ids[] = { |
428 | { | 428 | { |
429 | .vendor = 0x10b5, | 429 | .vendor = 0x10b5, |
430 | .device = 0x906d, | 430 | .device = 0x906d, |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 828eab59253a..45214b3b81be 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -869,7 +869,7 @@ struct snd_m3 { | |||
869 | /* | 869 | /* |
870 | * pci ids | 870 | * pci ids |
871 | */ | 871 | */ |
872 | static struct pci_device_id snd_m3_ids[] __devinitdata = { | 872 | static struct pci_device_id snd_m3_ids[] = { |
873 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID, | 873 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID, |
874 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, | 874 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, |
875 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO, PCI_ANY_ID, PCI_ANY_ID, | 875 | {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO, PCI_ANY_ID, PCI_ANY_ID, |
@@ -2137,7 +2137,7 @@ static int __devinit snd_m3_mixer(struct snd_m3 *chip) | |||
2137 | * DSP Code images | 2137 | * DSP Code images |
2138 | */ | 2138 | */ |
2139 | 2139 | ||
2140 | static const u16 assp_kernel_image[] __devinitdata = { | 2140 | static const u16 assp_kernel_image[] = { |
2141 | 0x7980, 0x0030, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x00FB, 0x7980, 0x00DD, 0x7980, 0x03B4, | 2141 | 0x7980, 0x0030, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x00FB, 0x7980, 0x00DD, 0x7980, 0x03B4, |
2142 | 0x7980, 0x0332, 0x7980, 0x0287, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, | 2142 | 0x7980, 0x0332, 0x7980, 0x0287, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, |
2143 | 0x7980, 0x031A, 0x7980, 0x03B4, 0x7980, 0x022F, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, | 2143 | 0x7980, 0x031A, 0x7980, 0x03B4, 0x7980, 0x022F, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, |
@@ -2224,7 +2224,7 @@ static const u16 assp_kernel_image[] __devinitdata = { | |||
2224 | * Mini sample rate converter code image | 2224 | * Mini sample rate converter code image |
2225 | * that is to be loaded at 0x400 on the DSP. | 2225 | * that is to be loaded at 0x400 on the DSP. |
2226 | */ | 2226 | */ |
2227 | static const u16 assp_minisrc_image[] __devinitdata = { | 2227 | static const u16 assp_minisrc_image[] = { |
2228 | 2228 | ||
2229 | 0xBF80, 0x101E, 0x906E, 0x006E, 0x8B88, 0x6980, 0xEF88, 0x906F, 0x0D6F, 0x6900, 0xEB08, 0x0412, | 2229 | 0xBF80, 0x101E, 0x906E, 0x006E, 0x8B88, 0x6980, 0xEF88, 0x906F, 0x0D6F, 0x6900, 0xEB08, 0x0412, |
2230 | 0xBC20, 0x696E, 0xB801, 0x906E, 0x7980, 0x0403, 0xB90E, 0x8807, 0xBE43, 0xBF01, 0xBE47, 0xBE41, | 2230 | 0xBC20, 0x696E, 0xB801, 0x906E, 0x7980, 0x0403, 0xB90E, 0x8807, 0xBE43, 0xBF01, 0xBE47, 0xBE41, |
@@ -2267,12 +2267,12 @@ static const u16 assp_minisrc_image[] __devinitdata = { | |||
2267 | */ | 2267 | */ |
2268 | 2268 | ||
2269 | #define MINISRC_LPF_LEN 10 | 2269 | #define MINISRC_LPF_LEN 10 |
2270 | static const u16 minisrc_lpf[MINISRC_LPF_LEN] __devinitdata = { | 2270 | static const u16 minisrc_lpf[MINISRC_LPF_LEN] = { |
2271 | 0X0743, 0X1104, 0X0A4C, 0XF88D, 0X242C, | 2271 | 0X0743, 0X1104, 0X0A4C, 0XF88D, 0X242C, |
2272 | 0X1023, 0X1AA9, 0X0B60, 0XEFDD, 0X186F | 2272 | 0X1023, 0X1AA9, 0X0B60, 0XEFDD, 0X186F |
2273 | }; | 2273 | }; |
2274 | 2274 | ||
2275 | static void __devinit snd_m3_assp_init(struct snd_m3 *chip) | 2275 | static void snd_m3_assp_init(struct snd_m3 *chip) |
2276 | { | 2276 | { |
2277 | unsigned int i; | 2277 | unsigned int i; |
2278 | 2278 | ||
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index a4aaa7b9a231..cc43ecd67906 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -61,7 +61,7 @@ MODULE_PARM_DESC(enable, "Enable Digigram " CARD_NAME " soundcard."); | |||
61 | /* | 61 | /* |
62 | */ | 62 | */ |
63 | 63 | ||
64 | static struct pci_device_id snd_mixart_ids[] __devinitdata = { | 64 | static struct pci_device_id snd_mixart_ids[] = { |
65 | { 0x1057, 0x0003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* MC8240 */ | 65 | { 0x1057, 0x0003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* MC8240 */ |
66 | { 0, } | 66 | { 0, } |
67 | }; | 67 | }; |
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 56d7282e6651..101eee0aa018 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -263,7 +263,7 @@ struct nm256 { | |||
263 | /* | 263 | /* |
264 | * PCI ids | 264 | * PCI ids |
265 | */ | 265 | */ |
266 | static struct pci_device_id snd_nm256_ids[] __devinitdata = { | 266 | static struct pci_device_id snd_nm256_ids[] = { |
267 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256AV_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 267 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256AV_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
268 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256ZX_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 268 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256ZX_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
269 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256XL_PLUS_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 269 | {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256XL_PLUS_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index ae980e11827f..533c672ae8f3 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -73,7 +73,7 @@ enum { | |||
73 | PCI_ID_LAST | 73 | PCI_ID_LAST |
74 | }; | 74 | }; |
75 | 75 | ||
76 | static struct pci_device_id pcxhr_ids[] __devinitdata = { | 76 | static struct pci_device_id pcxhr_ids[] = { |
77 | { 0x10b5, 0x9656, 0x1369, 0xb001, 0, 0, PCI_ID_VX882HR, }, /* VX882HR */ | 77 | { 0x10b5, 0x9656, 0x1369, 0xb001, 0, 0, PCI_ID_VX882HR, }, /* VX882HR */ |
78 | { 0x10b5, 0x9656, 0x1369, 0xb101, 0, 0, PCI_ID_PCX882HR, }, /* PCX882HR */ | 78 | { 0x10b5, 0x9656, 0x1369, 0xb101, 0, 0, PCI_ID_PCX882HR, }, /* PCX882HR */ |
79 | { 0x10b5, 0x9656, 0x1369, 0xb201, 0, 0, PCI_ID_VX881HR, }, /* VX881HR */ | 79 | { 0x10b5, 0x9656, 0x1369, 0xb201, 0, 0, PCI_ID_VX881HR, }, /* VX881HR */ |
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index 5501a08ca23a..f435fcd6dca9 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c | |||
@@ -506,7 +506,7 @@ static int riptide_reset(struct cmdif *cif, struct snd_riptide *chip); | |||
506 | /* | 506 | /* |
507 | */ | 507 | */ |
508 | 508 | ||
509 | static struct pci_device_id snd_riptide_ids[] __devinitdata = { | 509 | static struct pci_device_id snd_riptide_ids[] = { |
510 | { | 510 | { |
511 | .vendor = 0x127a,.device = 0x4310, | 511 | .vendor = 0x127a,.device = 0x4310, |
512 | .subvendor = PCI_ANY_ID,.subdevice = PCI_ANY_ID, | 512 | .subvendor = PCI_ANY_ID,.subdevice = PCI_ANY_ID, |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index 2e24b68d07aa..2a71499242fa 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -227,7 +227,7 @@ struct rme32 { | |||
227 | struct snd_kcontrol *spdif_ctl; | 227 | struct snd_kcontrol *spdif_ctl; |
228 | }; | 228 | }; |
229 | 229 | ||
230 | static struct pci_device_id snd_rme32_ids[] __devinitdata = { | 230 | static struct pci_device_id snd_rme32_ids[] = { |
231 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32, | 231 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32, |
232 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, | 232 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, |
233 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8, | 233 | {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8, |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index fde0f3e20530..f8de7c997017 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -232,7 +232,7 @@ struct rme96 { | |||
232 | struct snd_kcontrol *spdif_ctl; | 232 | struct snd_kcontrol *spdif_ctl; |
233 | }; | 233 | }; |
234 | 234 | ||
235 | static struct pci_device_id snd_rme96_ids[] __devinitdata = { | 235 | static struct pci_device_id snd_rme96_ids[] = { |
236 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96, | 236 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96, |
237 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 237 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
238 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8, | 238 | { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8, |
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 99cf86244acb..e5a52da77b85 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -568,7 +568,7 @@ static void snd_hammerfall_free_buffer(struct snd_dma_buffer *dmab, struct pci_d | |||
568 | } | 568 | } |
569 | 569 | ||
570 | 570 | ||
571 | static struct pci_device_id snd_hdsp_ids[] __devinitdata = { | 571 | static struct pci_device_id snd_hdsp_ids[] = { |
572 | { | 572 | { |
573 | .vendor = PCI_VENDOR_ID_XILINX, | 573 | .vendor = PCI_VENDOR_ID_XILINX, |
574 | .device = PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP, | 574 | .device = PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP, |
@@ -1356,7 +1356,7 @@ static struct snd_rawmidi_ops snd_hdsp_midi_input = | |||
1356 | .trigger = snd_hdsp_midi_input_trigger, | 1356 | .trigger = snd_hdsp_midi_input_trigger, |
1357 | }; | 1357 | }; |
1358 | 1358 | ||
1359 | static int __devinit snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) | 1359 | static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) |
1360 | { | 1360 | { |
1361 | char buf[32]; | 1361 | char buf[32]; |
1362 | 1362 | ||
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index 9534e1834138..fc15f61ad5d1 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -315,7 +315,7 @@ static void snd_hammerfall_free_buffer(struct snd_dma_buffer *dmab, struct pci_d | |||
315 | } | 315 | } |
316 | 316 | ||
317 | 317 | ||
318 | static struct pci_device_id snd_rme9652_ids[] __devinitdata = { | 318 | static struct pci_device_id snd_rme9652_ids[] = { |
319 | { | 319 | { |
320 | .vendor = 0x10ee, | 320 | .vendor = 0x10ee, |
321 | .device = 0x3fc4, | 321 | .device = 0x3fc4, |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index c4303418668b..e5d4def1aa6f 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -243,7 +243,7 @@ struct sonicvibes { | |||
243 | #endif | 243 | #endif |
244 | }; | 244 | }; |
245 | 245 | ||
246 | static struct pci_device_id snd_sonic_ids[] __devinitdata = { | 246 | static struct pci_device_id snd_sonic_ids[] = { |
247 | { 0x5333, 0xca00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, | 247 | { 0x5333, 0xca00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, |
248 | { 0, } | 248 | { 0, } |
249 | }; | 249 | }; |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index 5629b7eba96d..9145f7c57fb0 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -63,7 +63,7 @@ MODULE_PARM_DESC(pcm_channels, "Number of hardware channels assigned for PCM."); | |||
63 | module_param_array(wavetable_size, int, NULL, 0444); | 63 | module_param_array(wavetable_size, int, NULL, 0444); |
64 | MODULE_PARM_DESC(wavetable_size, "Maximum memory size in kB for wavetable synth."); | 64 | MODULE_PARM_DESC(wavetable_size, "Maximum memory size in kB for wavetable synth."); |
65 | 65 | ||
66 | static struct pci_device_id snd_trident_ids[] __devinitdata = { | 66 | static struct pci_device_id snd_trident_ids[] = { |
67 | {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_DX), | 67 | {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_DX), |
68 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, | 68 | PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, |
69 | {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_NX), | 69 | {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_NX), |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 37bd5eb7a380..08da9234efb3 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -396,7 +396,7 @@ struct via82xx { | |||
396 | #endif | 396 | #endif |
397 | }; | 397 | }; |
398 | 398 | ||
399 | static struct pci_device_id snd_via82xx_ids[] __devinitdata = { | 399 | static struct pci_device_id snd_via82xx_ids[] = { |
400 | /* 0x1106, 0x3058 */ | 400 | /* 0x1106, 0x3058 */ |
401 | { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA686, }, /* 686A */ | 401 | { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA686, }, /* 686A */ |
402 | /* 0x1106, 0x3059 */ | 402 | /* 0x1106, 0x3059 */ |
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index c1ede6c2a6d4..016f9dac253f 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -261,7 +261,7 @@ struct via82xx_modem { | |||
261 | struct snd_info_entry *proc_entry; | 261 | struct snd_info_entry *proc_entry; |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static struct pci_device_id snd_via82xx_modem_ids[] __devinitdata = { | 264 | static struct pci_device_id snd_via82xx_modem_ids[] = { |
265 | { 0x1106, 0x3068, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA82XX_MODEM, }, | 265 | { 0x1106, 0x3068, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA82XX_MODEM, }, |
266 | { 0, } | 266 | { 0, } |
267 | }; | 267 | }; |
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index 7deda25f7adc..9c03c6b4e490 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -60,7 +60,7 @@ enum { | |||
60 | VX_PCI_VX222_NEW | 60 | VX_PCI_VX222_NEW |
61 | }; | 61 | }; |
62 | 62 | ||
63 | static struct pci_device_id snd_vx222_ids[] __devinitdata = { | 63 | static struct pci_device_id snd_vx222_ids[] = { |
64 | { 0x10b5, 0x9050, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_OLD, }, /* PLX */ | 64 | { 0x10b5, 0x9050, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_OLD, }, /* PLX */ |
65 | { 0x10b5, 0x9030, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_NEW, }, /* PLX */ | 65 | { 0x10b5, 0x9030, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_NEW, }, /* PLX */ |
66 | { 0, } | 66 | { 0, } |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 26aa775b7b69..186453f7abe7 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -70,7 +70,7 @@ MODULE_PARM_DESC(rear_switch, "Enable shared rear/line-in switch"); | |||
70 | module_param_array(rear_swap, bool, NULL, 0444); | 70 | module_param_array(rear_swap, bool, NULL, 0444); |
71 | MODULE_PARM_DESC(rear_swap, "Swap rear channels (must be enabled for correct IEC958 (S/PDIF)) output"); | 71 | MODULE_PARM_DESC(rear_swap, "Swap rear channels (must be enabled for correct IEC958 (S/PDIF)) output"); |
72 | 72 | ||
73 | static struct pci_device_id snd_ymfpci_ids[] __devinitdata = { | 73 | static struct pci_device_id snd_ymfpci_ids[] = { |
74 | { 0x1073, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724 */ | 74 | { 0x1073, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724 */ |
75 | { 0x1073, 0x000d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724F */ | 75 | { 0x1073, 0x000d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724F */ |
76 | { 0x1073, 0x000a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF740 */ | 76 | { 0x1073, 0x000a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF740 */ |
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c index adfdce7499d1..1c09e5f49da8 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c | |||
@@ -241,12 +241,13 @@ static int pdacf_config(struct pcmcia_device *link) | |||
241 | CS_CHECK(ParseTuple, pcmcia_parse_tuple(link, &tuple, parse)); | 241 | CS_CHECK(ParseTuple, pcmcia_parse_tuple(link, &tuple, parse)); |
242 | link->conf.ConfigBase = parse->config.base; | 242 | link->conf.ConfigBase = parse->config.base; |
243 | link->conf.ConfigIndex = 0x5; | 243 | link->conf.ConfigIndex = 0x5; |
244 | kfree(parse); | ||
245 | 244 | ||
246 | CS_CHECK(RequestIO, pcmcia_request_io(link, &link->io)); | 245 | CS_CHECK(RequestIO, pcmcia_request_io(link, &link->io)); |
247 | CS_CHECK(RequestIRQ, pcmcia_request_irq(link, &link->irq)); | 246 | CS_CHECK(RequestIRQ, pcmcia_request_irq(link, &link->irq)); |
248 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link, &link->conf)); | 247 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link, &link->conf)); |
249 | 248 | ||
249 | kfree(parse); | ||
250 | |||
250 | if (snd_pdacf_assign_resources(pdacf, link->io.BasePort1, link->irq.AssignedIRQ) < 0) | 251 | if (snd_pdacf_assign_resources(pdacf, link->io.BasePort1, link->irq.AssignedIRQ) < 0) |
251 | goto failed; | 252 | goto failed; |
252 | 253 | ||
@@ -254,6 +255,7 @@ static int pdacf_config(struct pcmcia_device *link) | |||
254 | return 0; | 255 | return 0; |
255 | 256 | ||
256 | cs_failed: | 257 | cs_failed: |
258 | kfree(parse); | ||
257 | cs_error(link, last_fn, last_ret); | 259 | cs_error(link, last_fn, last_ret); |
258 | failed: | 260 | failed: |
259 | pcmcia_disable_device(link); | 261 | pcmcia_disable_device(link); |