diff options
Diffstat (limited to 'sound/pci/ice1712/aureon.c')
-rw-r--r-- | sound/pci/ice1712/aureon.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c index 20bcddea2eab..55902ec40344 100644 --- a/sound/pci/ice1712/aureon.c +++ b/sound/pci/ice1712/aureon.c | |||
@@ -46,7 +46,6 @@ | |||
46 | * on mixer switch and other coll stuff. | 46 | * on mixer switch and other coll stuff. |
47 | */ | 47 | */ |
48 | 48 | ||
49 | #include <linux/io.h> | ||
50 | #include <linux/delay.h> | 49 | #include <linux/delay.h> |
51 | #include <linux/interrupt.h> | 50 | #include <linux/interrupt.h> |
52 | #include <linux/init.h> | 51 | #include <linux/init.h> |
@@ -203,7 +202,8 @@ static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg, | |||
203 | static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, | 202 | static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, |
204 | struct snd_ctl_elem_info *uinfo) | 203 | struct snd_ctl_elem_info *uinfo) |
205 | { | 204 | { |
206 | char *texts[3] = {"Internal Aux", "Wavetable", "Rear Line-In"}; | 205 | static const char * const texts[3] = |
206 | {"Internal Aux", "Wavetable", "Rear Line-In"}; | ||
207 | 207 | ||
208 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 208 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
209 | uinfo->count = 1; | 209 | uinfo->count = 1; |
@@ -1433,7 +1433,7 @@ static int aureon_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl | |||
1433 | * mixers | 1433 | * mixers |
1434 | */ | 1434 | */ |
1435 | 1435 | ||
1436 | static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = { | 1436 | static struct snd_kcontrol_new aureon_dac_controls[] = { |
1437 | { | 1437 | { |
1438 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1438 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1439 | .name = "Master Playback Switch", | 1439 | .name = "Master Playback Switch", |
@@ -1548,7 +1548,7 @@ static struct snd_kcontrol_new aureon_dac_controls[] __devinitdata = { | |||
1548 | } | 1548 | } |
1549 | }; | 1549 | }; |
1550 | 1550 | ||
1551 | static struct snd_kcontrol_new wm_controls[] __devinitdata = { | 1551 | static struct snd_kcontrol_new wm_controls[] = { |
1552 | { | 1552 | { |
1553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1554 | .name = "PCM Playback Switch", | 1554 | .name = "PCM Playback Switch", |
@@ -1614,7 +1614,7 @@ static struct snd_kcontrol_new wm_controls[] __devinitdata = { | |||
1614 | } | 1614 | } |
1615 | }; | 1615 | }; |
1616 | 1616 | ||
1617 | static struct snd_kcontrol_new ac97_controls[] __devinitdata = { | 1617 | static struct snd_kcontrol_new ac97_controls[] = { |
1618 | { | 1618 | { |
1619 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1619 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1620 | .name = "AC97 Playback Switch", | 1620 | .name = "AC97 Playback Switch", |
@@ -1719,7 +1719,7 @@ static struct snd_kcontrol_new ac97_controls[] __devinitdata = { | |||
1719 | } | 1719 | } |
1720 | }; | 1720 | }; |
1721 | 1721 | ||
1722 | static struct snd_kcontrol_new universe_ac97_controls[] __devinitdata = { | 1722 | static struct snd_kcontrol_new universe_ac97_controls[] = { |
1723 | { | 1723 | { |
1724 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1724 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1725 | .name = "AC97 Playback Switch", | 1725 | .name = "AC97 Playback Switch", |
@@ -1851,7 +1851,7 @@ static struct snd_kcontrol_new universe_ac97_controls[] __devinitdata = { | |||
1851 | 1851 | ||
1852 | }; | 1852 | }; |
1853 | 1853 | ||
1854 | static struct snd_kcontrol_new cs8415_controls[] __devinitdata = { | 1854 | static struct snd_kcontrol_new cs8415_controls[] = { |
1855 | { | 1855 | { |
1856 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1856 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1857 | .name = SNDRV_CTL_NAME_IEC958("", CAPTURE, SWITCH), | 1857 | .name = SNDRV_CTL_NAME_IEC958("", CAPTURE, SWITCH), |
@@ -1896,7 +1896,7 @@ static struct snd_kcontrol_new cs8415_controls[] __devinitdata = { | |||
1896 | } | 1896 | } |
1897 | }; | 1897 | }; |
1898 | 1898 | ||
1899 | static int __devinit aureon_add_controls(struct snd_ice1712 *ice) | 1899 | static int aureon_add_controls(struct snd_ice1712 *ice) |
1900 | { | 1900 | { |
1901 | unsigned int i, counts; | 1901 | unsigned int i, counts; |
1902 | int err; | 1902 | int err; |
@@ -2124,7 +2124,7 @@ static int aureon_resume(struct snd_ice1712 *ice) | |||
2124 | /* | 2124 | /* |
2125 | * initialize the chip | 2125 | * initialize the chip |
2126 | */ | 2126 | */ |
2127 | static int __devinit aureon_init(struct snd_ice1712 *ice) | 2127 | static int aureon_init(struct snd_ice1712 *ice) |
2128 | { | 2128 | { |
2129 | struct aureon_spec *spec; | 2129 | struct aureon_spec *spec; |
2130 | int i, err; | 2130 | int i, err; |
@@ -2174,7 +2174,7 @@ static int __devinit aureon_init(struct snd_ice1712 *ice) | |||
2174 | * hence the driver needs to sets up it properly. | 2174 | * hence the driver needs to sets up it properly. |
2175 | */ | 2175 | */ |
2176 | 2176 | ||
2177 | static unsigned char aureon51_eeprom[] __devinitdata = { | 2177 | static unsigned char aureon51_eeprom[] = { |
2178 | [ICE_EEP2_SYSCONF] = 0x0a, /* clock 512, spdif-in/ADC, 3DACs */ | 2178 | [ICE_EEP2_SYSCONF] = 0x0a, /* clock 512, spdif-in/ADC, 3DACs */ |
2179 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2179 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2180 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2180 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2190,7 +2190,7 @@ static unsigned char aureon51_eeprom[] __devinitdata = { | |||
2190 | [ICE_EEP2_GPIO_STATE2] = 0x00, | 2190 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
2191 | }; | 2191 | }; |
2192 | 2192 | ||
2193 | static unsigned char aureon71_eeprom[] __devinitdata = { | 2193 | static unsigned char aureon71_eeprom[] = { |
2194 | [ICE_EEP2_SYSCONF] = 0x0b, /* clock 512, spdif-in/ADC, 4DACs */ | 2194 | [ICE_EEP2_SYSCONF] = 0x0b, /* clock 512, spdif-in/ADC, 4DACs */ |
2195 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2195 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2196 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2196 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2207,7 +2207,7 @@ static unsigned char aureon71_eeprom[] __devinitdata = { | |||
2207 | }; | 2207 | }; |
2208 | #define prodigy71_eeprom aureon71_eeprom | 2208 | #define prodigy71_eeprom aureon71_eeprom |
2209 | 2209 | ||
2210 | static unsigned char aureon71_universe_eeprom[] __devinitdata = { | 2210 | static unsigned char aureon71_universe_eeprom[] = { |
2211 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, spdif-in/ADC, | 2211 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, spdif-in/ADC, |
2212 | * 4DACs | 2212 | * 4DACs |
2213 | */ | 2213 | */ |
@@ -2225,7 +2225,7 @@ static unsigned char aureon71_universe_eeprom[] __devinitdata = { | |||
2225 | [ICE_EEP2_GPIO_STATE2] = 0x00, | 2225 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
2226 | }; | 2226 | }; |
2227 | 2227 | ||
2228 | static unsigned char prodigy71lt_eeprom[] __devinitdata = { | 2228 | static unsigned char prodigy71lt_eeprom[] = { |
2229 | [ICE_EEP2_SYSCONF] = 0x4b, /* clock 384, spdif-in/ADC, 4DACs */ | 2229 | [ICE_EEP2_SYSCONF] = 0x4b, /* clock 384, spdif-in/ADC, 4DACs */ |
2230 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ | 2230 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
2231 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ | 2231 | [ICE_EEP2_I2S] = 0xfc, /* vol, 96k, 24bit, 192k */ |
@@ -2243,7 +2243,7 @@ static unsigned char prodigy71lt_eeprom[] __devinitdata = { | |||
2243 | #define prodigy71xt_eeprom prodigy71lt_eeprom | 2243 | #define prodigy71xt_eeprom prodigy71lt_eeprom |
2244 | 2244 | ||
2245 | /* entry point */ | 2245 | /* entry point */ |
2246 | struct snd_ice1712_card_info snd_vt1724_aureon_cards[] __devinitdata = { | 2246 | struct snd_ice1712_card_info snd_vt1724_aureon_cards[] = { |
2247 | { | 2247 | { |
2248 | .subvendor = VT1724_SUBDEVICE_AUREON51_SKY, | 2248 | .subvendor = VT1724_SUBDEVICE_AUREON51_SKY, |
2249 | .name = "Terratec Aureon 5.1-Sky", | 2249 | .name = "Terratec Aureon 5.1-Sky", |