diff options
Diffstat (limited to 'sound/pci/ice1712/prodigy192.c')
-rw-r--r-- | sound/pci/ice1712/prodigy192.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sound/pci/ice1712/prodigy192.c b/sound/pci/ice1712/prodigy192.c index e36ddb94c382..e610339f7601 100644 --- a/sound/pci/ice1712/prodigy192.c +++ b/sound/pci/ice1712/prodigy192.c | |||
@@ -54,7 +54,6 @@ | |||
54 | * | 54 | * |
55 | */ | 55 | */ |
56 | 56 | ||
57 | #include <asm/io.h> | ||
58 | #include <linux/delay.h> | 57 | #include <linux/delay.h> |
59 | #include <linux/interrupt.h> | 58 | #include <linux/interrupt.h> |
60 | #include <linux/init.h> | 59 | #include <linux/init.h> |
@@ -283,7 +282,7 @@ static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el | |||
283 | static int stac9460_mic_sw_info(struct snd_kcontrol *kcontrol, | 282 | static int stac9460_mic_sw_info(struct snd_kcontrol *kcontrol, |
284 | struct snd_ctl_elem_info *uinfo) | 283 | struct snd_ctl_elem_info *uinfo) |
285 | { | 284 | { |
286 | static char *texts[2] = { "Line In", "Mic" }; | 285 | static const char * const texts[2] = { "Line In", "Mic" }; |
287 | 286 | ||
288 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 287 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
289 | uinfo->count = 1; | 288 | uinfo->count = 1; |
@@ -369,7 +368,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_adc, 0, 150, 0); | |||
369 | * mixers | 368 | * mixers |
370 | */ | 369 | */ |
371 | 370 | ||
372 | static struct snd_kcontrol_new stac_controls[] __devinitdata = { | 371 | static struct snd_kcontrol_new stac_controls[] = { |
373 | { | 372 | { |
374 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 373 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
375 | .name = "Master Playback Switch", | 374 | .name = "Master Playback Switch", |
@@ -562,7 +561,7 @@ static unsigned char prodigy192_ak4114_read(void *private_data, | |||
562 | static int ak4114_input_sw_info(struct snd_kcontrol *kcontrol, | 561 | static int ak4114_input_sw_info(struct snd_kcontrol *kcontrol, |
563 | struct snd_ctl_elem_info *uinfo) | 562 | struct snd_ctl_elem_info *uinfo) |
564 | { | 563 | { |
565 | static char *texts[2] = { "Toslink", "Coax" }; | 564 | static const char * const texts[2] = { "Toslink", "Coax" }; |
566 | 565 | ||
567 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 566 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
568 | uinfo->count = 1; | 567 | uinfo->count = 1; |
@@ -607,7 +606,7 @@ static int ak4114_input_sw_put(struct snd_kcontrol *kcontrol, | |||
607 | } | 606 | } |
608 | 607 | ||
609 | 608 | ||
610 | static struct snd_kcontrol_new ak4114_controls[] __devinitdata = { | 609 | static struct snd_kcontrol_new ak4114_controls[] = { |
611 | { | 610 | { |
612 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 611 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
613 | .name = "MIODIO IEC958 Capture Input", | 612 | .name = "MIODIO IEC958 Capture Input", |
@@ -672,7 +671,7 @@ static void stac9460_proc_init(struct snd_ice1712 *ice) | |||
672 | } | 671 | } |
673 | 672 | ||
674 | 673 | ||
675 | static int __devinit prodigy192_add_controls(struct snd_ice1712 *ice) | 674 | static int prodigy192_add_controls(struct snd_ice1712 *ice) |
676 | { | 675 | { |
677 | struct prodigy192_spec *spec = ice->spec; | 676 | struct prodigy192_spec *spec = ice->spec; |
678 | unsigned int i; | 677 | unsigned int i; |
@@ -728,7 +727,7 @@ static int prodigy192_miodio_exists(struct snd_ice1712 *ice) | |||
728 | /* | 727 | /* |
729 | * initialize the chip | 728 | * initialize the chip |
730 | */ | 729 | */ |
731 | static int __devinit prodigy192_init(struct snd_ice1712 *ice) | 730 | static int prodigy192_init(struct snd_ice1712 *ice) |
732 | { | 731 | { |
733 | static const unsigned short stac_inits_prodigy[] = { | 732 | static const unsigned short stac_inits_prodigy[] = { |
734 | STAC946X_RESET, 0, | 733 | STAC946X_RESET, 0, |
@@ -784,7 +783,7 @@ static int __devinit prodigy192_init(struct snd_ice1712 *ice) | |||
784 | * hence the driver needs to sets up it properly. | 783 | * hence the driver needs to sets up it properly. |
785 | */ | 784 | */ |
786 | 785 | ||
787 | static unsigned char prodigy71_eeprom[] __devinitdata = { | 786 | static unsigned char prodigy71_eeprom[] = { |
788 | [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401, | 787 | [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401, |
789 | * spdif-in+ 1 stereo ADC, | 788 | * spdif-in+ 1 stereo ADC, |
790 | * 3 stereo DACs | 789 | * 3 stereo DACs |
@@ -808,7 +807,7 @@ static unsigned char prodigy71_eeprom[] __devinitdata = { | |||
808 | 807 | ||
809 | 808 | ||
810 | /* entry point */ | 809 | /* entry point */ |
811 | struct snd_ice1712_card_info snd_vt1724_prodigy192_cards[] __devinitdata = { | 810 | struct snd_ice1712_card_info snd_vt1724_prodigy192_cards[] = { |
812 | { | 811 | { |
813 | .subvendor = VT1724_SUBDEVICE_PRODIGY192VE, | 812 | .subvendor = VT1724_SUBDEVICE_PRODIGY192VE, |
814 | .name = "Audiotrak Prodigy 192", | 813 | .name = "Audiotrak Prodigy 192", |