mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
[ALSA] Fix section mismatch errors in ALSA PCI drivers
Fixed 'section mismatch' errors in ALSA PCI drivers: - removed invalid __devinitdata from pci id tables - fix/remove __devinit of functions called in suspend/resume Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
562b590d4e
commit
f40b68903c
@@ -1172,7 +1172,7 @@
|
||||
}
|
||||
|
||||
/* PCI IDs */
|
||||
static struct pci_device_id snd_mychip_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_mychip_ids[] = {
|
||||
{ PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
|
||||
....
|
||||
@@ -1565,7 +1565,7 @@
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
static struct pci_device_id snd_mychip_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_mychip_ids[] = {
|
||||
{ PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
|
||||
....
|
||||
|
||||
@@ -1704,6 +1704,7 @@ struct snd_cs46xx {
|
||||
int acpi_port;
|
||||
struct snd_kcontrol *eapd_switch; /* for amplifier hack */
|
||||
int accept_valid; /* accept mmap valid (for OSS) */
|
||||
int in_suspend;
|
||||
|
||||
struct gameport *gameport;
|
||||
|
||||
|
||||
@@ -241,14 +241,14 @@ ad1889_channel_reset(struct snd_ad1889 *chip, unsigned int channel)
|
||||
}
|
||||
}
|
||||
|
||||
static inline u16
|
||||
static u16
|
||||
snd_ad1889_ac97_read(struct snd_ac97 *ac97, unsigned short reg)
|
||||
{
|
||||
struct snd_ad1889 *chip = ac97->private_data;
|
||||
return ad1889_readw(chip, AD_AC97_BASE + reg);
|
||||
}
|
||||
|
||||
static inline void
|
||||
static void
|
||||
snd_ad1889_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val)
|
||||
{
|
||||
struct snd_ad1889 *chip = ac97->private_data;
|
||||
@@ -873,7 +873,7 @@ skip_hw:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
static int
|
||||
snd_ad1889_dev_free(struct snd_device *device)
|
||||
{
|
||||
struct snd_ad1889 *chip = device->device_data;
|
||||
@@ -1051,7 +1051,7 @@ snd_ad1889_remove(struct pci_dev *pci)
|
||||
pci_set_drvdata(pci, NULL);
|
||||
}
|
||||
|
||||
static struct pci_device_id snd_ad1889_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_ad1889_ids[] = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) },
|
||||
{ 0, },
|
||||
};
|
||||
|
||||
@@ -279,7 +279,7 @@ struct snd_ali {
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_ali_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_ali_ids[] = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0},
|
||||
{0, }
|
||||
};
|
||||
|
||||
@@ -146,7 +146,7 @@ struct snd_als300_substream_data {
|
||||
int block_counter_register;
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_als300_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_als300_ids[] = {
|
||||
{ 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 },
|
||||
{ 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS },
|
||||
{ 0, }
|
||||
|
||||
@@ -116,7 +116,7 @@ struct snd_card_als4000 {
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_als4000_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_als4000_ids[] = {
|
||||
{ 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ALS4000 */
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
@@ -284,7 +284,7 @@ struct atiixp {
|
||||
|
||||
/*
|
||||
*/
|
||||
static struct pci_device_id snd_atiixp_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_atiixp_ids[] = {
|
||||
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
|
||||
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
|
||||
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
|
||||
|
||||
@@ -262,7 +262,7 @@ struct atiixp_modem {
|
||||
|
||||
/*
|
||||
*/
|
||||
static struct pci_device_id snd_atiixp_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_atiixp_ids[] = {
|
||||
{ 0x1002, 0x434d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
|
||||
{ 0x1002, 0x4378, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
|
||||
{ 0, }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "au8810.h"
|
||||
#include "au88x0.h"
|
||||
static struct pci_device_id snd_vortex_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_vortex_ids[] = {
|
||||
{PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,},
|
||||
{0,}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "au8820.h"
|
||||
#include "au88x0.h"
|
||||
static struct pci_device_id snd_vortex_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_vortex_ids[] = {
|
||||
{PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,},
|
||||
{0,}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "au8830.h"
|
||||
#include "au88x0.h"
|
||||
static struct pci_device_id snd_vortex_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_vortex_ids[] = {
|
||||
{PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,},
|
||||
{0,}
|
||||
|
||||
@@ -270,7 +270,8 @@ static void vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix,
|
||||
|
||||
/* A3D functions. */
|
||||
#ifndef CHIP_AU8820
|
||||
static void vortex_Vort3D(vortex_t * v, int en);
|
||||
static void vortex_Vort3D_enable(vortex_t * v);
|
||||
static void vortex_Vort3D_disable(vortex_t * v);
|
||||
static void vortex_Vort3D_connect(vortex_t * vortex, int en);
|
||||
static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en);
|
||||
#endif
|
||||
|
||||
@@ -593,24 +593,23 @@ static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode)
|
||||
static int vortex_a3d_register_controls(vortex_t * vortex);
|
||||
static void vortex_a3d_unregister_controls(vortex_t * vortex);
|
||||
/* A3D base support init/shudown */
|
||||
static void vortex_Vort3D(vortex_t * v, int en)
|
||||
static void __devinit vortex_Vort3D_enable(vortex_t * v)
|
||||
{
|
||||
int i;
|
||||
if (en) {
|
||||
Vort3DRend_Initialize(v, XT_HEADPHONE);
|
||||
for (i = 0; i < NR_A3D; i++) {
|
||||
vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2);
|
||||
a3dsrc_ZeroStateA3D(&(v->a3d[0]));
|
||||
}
|
||||
} else {
|
||||
vortex_XtalkHw_Disable(v);
|
||||
|
||||
Vort3DRend_Initialize(v, XT_HEADPHONE);
|
||||
for (i = 0; i < NR_A3D; i++) {
|
||||
vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2);
|
||||
a3dsrc_ZeroStateA3D(&(v->a3d[0]));
|
||||
}
|
||||
/* Register ALSA controls */
|
||||
if (en) {
|
||||
vortex_a3d_register_controls(v);
|
||||
} else {
|
||||
vortex_a3d_unregister_controls(v);
|
||||
}
|
||||
vortex_a3d_register_controls(v);
|
||||
}
|
||||
|
||||
static void vortex_Vort3D_disable(vortex_t * v)
|
||||
{
|
||||
vortex_XtalkHw_Disable(v);
|
||||
vortex_a3d_unregister_controls(v);
|
||||
}
|
||||
|
||||
/* Make A3D subsystem connections. */
|
||||
@@ -855,7 +854,7 @@ static struct snd_kcontrol_new vortex_a3d_kcontrol __devinitdata = {
|
||||
};
|
||||
|
||||
/* Control (un)registration. */
|
||||
static int vortex_a3d_register_controls(vortex_t * vortex)
|
||||
static int __devinit vortex_a3d_register_controls(vortex_t * vortex)
|
||||
{
|
||||
struct snd_kcontrol *kcontrol;
|
||||
int err, i;
|
||||
|
||||
@@ -2690,7 +2690,7 @@ static int __devinit vortex_core_init(vortex_t * vortex)
|
||||
#ifndef CHIP_AU8820
|
||||
vortex_eq_init(vortex);
|
||||
vortex_spdif_init(vortex, 48000, 1);
|
||||
vortex_Vort3D(vortex, 1);
|
||||
vortex_Vort3D_enable(vortex);
|
||||
#endif
|
||||
#ifndef CHIP_AU8810
|
||||
vortex_wt_init(vortex);
|
||||
@@ -2718,7 +2718,7 @@ static int vortex_core_shutdown(vortex_t * vortex)
|
||||
printk(KERN_INFO "Vortex: shutdown...");
|
||||
#ifndef CHIP_AU8820
|
||||
vortex_eq_free(vortex);
|
||||
vortex_Vort3D(vortex, 0);
|
||||
vortex_Vort3D_disable(vortex);
|
||||
#endif
|
||||
//vortex_disable_timer_int(vortex);
|
||||
vortex_disable_int(vortex);
|
||||
|
||||
@@ -238,7 +238,7 @@ struct snd_azf3328 {
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct pci_device_id snd_azf3328_ids[] __devinitdata = {
|
||||
static const struct pci_device_id snd_azf3328_ids[] = {
|
||||
{ 0x122D, 0x50DC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* PCI168/3328 */
|
||||
{ 0x122D, 0x80DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* 3328 */
|
||||
{ 0, }
|
||||
|
||||
@@ -774,7 +774,7 @@ static int __devinit snd_bt87x_create(struct snd_card *card,
|
||||
.driver_data = rate }
|
||||
|
||||
/* driver_data is the default digital_rate value for that device */
|
||||
static struct pci_device_id snd_bt87x_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_bt87x_ids[] = {
|
||||
/* Hauppauge WinTV series */
|
||||
BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, 32000),
|
||||
/* Hauppauge WinTV series */
|
||||
|
||||
@@ -1602,7 +1602,7 @@ static void __devexit snd_ca0106_remove(struct pci_dev *pci)
|
||||
}
|
||||
|
||||
// PCI IDs
|
||||
static struct pci_device_id snd_ca0106_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_ca0106_ids[] = {
|
||||
{ 0x1102, 0x0007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Audigy LS or Live 24bit */
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
@@ -2609,7 +2609,7 @@ static inline void snd_cmipci_proc_init(struct cmipci *cm) {}
|
||||
#endif
|
||||
|
||||
|
||||
static struct pci_device_id snd_cmipci_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_cmipci_ids[] = {
|
||||
{PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
|
||||
@@ -494,7 +494,7 @@ struct cs4281 {
|
||||
|
||||
static irqreturn_t snd_cs4281_interrupt(int irq, void *dev_id, struct pt_regs *regs);
|
||||
|
||||
static struct pci_device_id snd_cs4281_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_cs4281_ids[] = {
|
||||
{ 0x1013, 0x6005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4281 */
|
||||
{ 0, }
|
||||
};
|
||||
|
||||
@@ -65,7 +65,7 @@ MODULE_PARM_DESC(thinkpad, "Force to enable Thinkpad's CLKRUN control.");
|
||||
module_param_array(mmap_valid, bool, NULL, 0444);
|
||||
MODULE_PARM_DESC(mmap_valid, "Support OSS mmap.");
|
||||
|
||||
static struct pci_device_id snd_cs46xx_ids[] __devinitdata = {
|
||||
static struct pci_device_id snd_cs46xx_ids[] = {
|
||||
{ 0x1013, 0x6001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4280 */
|
||||
{ 0x1013, 0x6003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4612 */
|
||||
{ 0x1013, 0x6004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4615 */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user