aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/fm801.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/fm801.c')
-rw-r--r--sound/pci/fm801.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c
index c5806f89be1e..4f07fda5adf2 100644
--- a/sound/pci/fm801.c
+++ b/sound/pci/fm801.c
@@ -689,7 +689,7 @@ static struct snd_pcm_ops snd_fm801_capture_ops = {
689 .pointer = snd_fm801_capture_pointer, 689 .pointer = snd_fm801_capture_pointer,
690}; 690};
691 691
692static int __devinit snd_fm801_pcm(struct fm801 *chip, int device, struct snd_pcm ** rpcm) 692static int snd_fm801_pcm(struct fm801 *chip, int device, struct snd_pcm **rpcm)
693{ 693{
694 struct snd_pcm *pcm; 694 struct snd_pcm *pcm;
695 int err; 695 int err;
@@ -984,7 +984,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_dsp, -3450, 150, 0);
984 984
985#define FM801_CONTROLS ARRAY_SIZE(snd_fm801_controls) 985#define FM801_CONTROLS ARRAY_SIZE(snd_fm801_controls)
986 986
987static struct snd_kcontrol_new snd_fm801_controls[] __devinitdata = { 987static struct snd_kcontrol_new snd_fm801_controls[] = {
988FM801_DOUBLE_TLV("Wave Playback Volume", FM801_PCM_VOL, 0, 8, 31, 1, 988FM801_DOUBLE_TLV("Wave Playback Volume", FM801_PCM_VOL, 0, 8, 31, 1,
989 db_scale_dsp), 989 db_scale_dsp),
990FM801_SINGLE("Wave Playback Switch", FM801_PCM_VOL, 15, 1, 1), 990FM801_SINGLE("Wave Playback Switch", FM801_PCM_VOL, 15, 1, 1),
@@ -1005,7 +1005,7 @@ FM801_SINGLE("FM Playback Switch", FM801_FM_VOL, 15, 1, 1),
1005 1005
1006#define FM801_CONTROLS_MULTI ARRAY_SIZE(snd_fm801_controls_multi) 1006#define FM801_CONTROLS_MULTI ARRAY_SIZE(snd_fm801_controls_multi)
1007 1007
1008static struct snd_kcontrol_new snd_fm801_controls_multi[] __devinitdata = { 1008static struct snd_kcontrol_new snd_fm801_controls_multi[] = {
1009FM801_SINGLE("AC97 2ch->4ch Copy Switch", FM801_CODEC_CTRL, 7, 1, 0), 1009FM801_SINGLE("AC97 2ch->4ch Copy Switch", FM801_CODEC_CTRL, 7, 1, 0),
1010FM801_SINGLE("AC97 18-bit Switch", FM801_CODEC_CTRL, 10, 1, 0), 1010FM801_SINGLE("AC97 18-bit Switch", FM801_CODEC_CTRL, 10, 1, 0),
1011FM801_SINGLE(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), FM801_I2S_MODE, 8, 1, 0), 1011FM801_SINGLE(SNDRV_CTL_NAME_IEC958("",CAPTURE,SWITCH), FM801_I2S_MODE, 8, 1, 0),
@@ -1030,7 +1030,7 @@ static void snd_fm801_mixer_free_ac97(struct snd_ac97 *ac97)
1030 } 1030 }
1031} 1031}
1032 1032
1033static int __devinit snd_fm801_mixer(struct fm801 *chip) 1033static int snd_fm801_mixer(struct fm801 *chip)
1034{ 1034{
1035 struct snd_ac97_template ac97; 1035 struct snd_ac97_template ac97;
1036 unsigned int i; 1036 unsigned int i;
@@ -1191,11 +1191,11 @@ static int snd_fm801_dev_free(struct snd_device *device)
1191 return snd_fm801_free(chip); 1191 return snd_fm801_free(chip);
1192} 1192}
1193 1193
1194static int __devinit snd_fm801_create(struct snd_card *card, 1194static int snd_fm801_create(struct snd_card *card,
1195 struct pci_dev * pci, 1195 struct pci_dev *pci,
1196 int tea575x_tuner, 1196 int tea575x_tuner,
1197 int radio_nr, 1197 int radio_nr,
1198 struct fm801 ** rchip) 1198 struct fm801 **rchip)
1199{ 1199{
1200 struct fm801 *chip; 1200 struct fm801 *chip;
1201 int err; 1201 int err;
@@ -1296,8 +1296,8 @@ static int __devinit snd_fm801_create(struct snd_card *card,
1296 return 0; 1296 return 0;
1297} 1297}
1298 1298
1299static int __devinit snd_card_fm801_probe(struct pci_dev *pci, 1299static int snd_card_fm801_probe(struct pci_dev *pci,
1300 const struct pci_device_id *pci_id) 1300 const struct pci_device_id *pci_id)
1301{ 1301{
1302 static int dev; 1302 static int dev;
1303 struct snd_card *card; 1303 struct snd_card *card;
@@ -1367,7 +1367,7 @@ static int __devinit snd_card_fm801_probe(struct pci_dev *pci,
1367 return 0; 1367 return 0;
1368} 1368}
1369 1369
1370static void __devexit snd_card_fm801_remove(struct pci_dev *pci) 1370static void snd_card_fm801_remove(struct pci_dev *pci)
1371{ 1371{
1372 snd_card_free(pci_get_drvdata(pci)); 1372 snd_card_free(pci_get_drvdata(pci));
1373 pci_set_drvdata(pci, NULL); 1373 pci_set_drvdata(pci, NULL);
@@ -1439,7 +1439,7 @@ static struct pci_driver fm801_driver = {
1439 .name = KBUILD_MODNAME, 1439 .name = KBUILD_MODNAME,
1440 .id_table = snd_fm801_ids, 1440 .id_table = snd_fm801_ids,
1441 .probe = snd_card_fm801_probe, 1441 .probe = snd_card_fm801_probe,
1442 .remove = __devexit_p(snd_card_fm801_remove), 1442 .remove = snd_card_fm801_remove,
1443 .driver = { 1443 .driver = {
1444 .pm = SND_FM801_PM_OPS, 1444 .pm = SND_FM801_PM_OPS,
1445 }, 1445 },