aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712/juli.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ice1712/juli.c')
-rw-r--r--sound/pci/ice1712/juli.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c
index 14fd536b6452..8855933e710d 100644
--- a/sound/pci/ice1712/juli.c
+++ b/sound/pci/ice1712/juli.c
@@ -23,7 +23,6 @@
23 * 23 *
24 */ 24 */
25 25
26#include <asm/io.h>
27#include <linux/delay.h> 26#include <linux/delay.h>
28#include <linux/interrupt.h> 27#include <linux/interrupt.h>
29#include <linux/init.h> 28#include <linux/init.h>
@@ -283,7 +282,7 @@ static const struct snd_akm4xxx_dac_channel juli_dac[] = {
283}; 282};
284 283
285 284
286static struct snd_akm4xxx akm_juli_dac __devinitdata = { 285static struct snd_akm4xxx akm_juli_dac = {
287 .type = SND_AK4358, 286 .type = SND_AK4358,
288 .num_dacs = 8, /* DAC1 - analog out 287 .num_dacs = 8, /* DAC1 - analog out
289 DAC2 - analog in monitor 288 DAC2 - analog in monitor
@@ -358,7 +357,7 @@ static int juli_mute_put(struct snd_kcontrol *kcontrol,
358 return 0; 357 return 0;
359} 358}
360 359
361static struct snd_kcontrol_new juli_mute_controls[] __devinitdata = { 360static struct snd_kcontrol_new juli_mute_controls[] = {
362 { 361 {
363 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 362 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
364 .name = "Master Playback Switch", 363 .name = "Master Playback Switch",
@@ -412,7 +411,7 @@ static struct snd_kcontrol_new juli_mute_controls[] __devinitdata = {
412 }, 411 },
413}; 412};
414 413
415static char *slave_vols[] __devinitdata = { 414static char *slave_vols[] = {
416 PCM_VOLUME, 415 PCM_VOLUME,
417 MONITOR_AN_IN_VOLUME, 416 MONITOR_AN_IN_VOLUME,
418 MONITOR_DIG_IN_VOLUME, 417 MONITOR_DIG_IN_VOLUME,
@@ -420,11 +419,11 @@ static char *slave_vols[] __devinitdata = {
420 NULL 419 NULL
421}; 420};
422 421
423static __devinitdata 422static
424DECLARE_TLV_DB_SCALE(juli_master_db_scale, -6350, 50, 1); 423DECLARE_TLV_DB_SCALE(juli_master_db_scale, -6350, 50, 1);
425 424
426static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, 425static struct snd_kcontrol *ctl_find(struct snd_card *card,
427 const char *name) 426 const char *name)
428{ 427{
429 struct snd_ctl_elem_id sid; 428 struct snd_ctl_elem_id sid;
430 memset(&sid, 0, sizeof(sid)); 429 memset(&sid, 0, sizeof(sid));
@@ -434,8 +433,9 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
434 return snd_ctl_find_id(card, &sid); 433 return snd_ctl_find_id(card, &sid);
435} 434}
436 435
437static void __devinit add_slaves(struct snd_card *card, 436static void add_slaves(struct snd_card *card,
438 struct snd_kcontrol *master, char **list) 437 struct snd_kcontrol *master,
438 char * const *list)
439{ 439{
440 for (; *list; list++) { 440 for (; *list; list++) {
441 struct snd_kcontrol *slave = ctl_find(card, *list); 441 struct snd_kcontrol *slave = ctl_find(card, *list);
@@ -447,7 +447,7 @@ static void __devinit add_slaves(struct snd_card *card,
447 } 447 }
448} 448}
449 449
450static int __devinit juli_add_controls(struct snd_ice1712 *ice) 450static int juli_add_controls(struct snd_ice1712 *ice)
451{ 451{
452 struct juli_spec *spec = ice->spec; 452 struct juli_spec *spec = ice->spec;
453 int err; 453 int err;
@@ -579,7 +579,7 @@ static void juli_ak4114_change(struct ak4114 *ak4114, unsigned char c0,
579 } 579 }
580} 580}
581 581
582static int __devinit juli_init(struct snd_ice1712 *ice) 582static int juli_init(struct snd_ice1712 *ice)
583{ 583{
584 static const unsigned char ak4114_init_vals[] = { 584 static const unsigned char ak4114_init_vals[] = {
585 /* AK4117_REG_PWRDN */ AK4114_RST | AK4114_PWN | 585 /* AK4117_REG_PWRDN */ AK4114_RST | AK4114_PWN |
@@ -667,7 +667,7 @@ static int __devinit juli_init(struct snd_ice1712 *ice)
667 * hence the driver needs to sets up it properly. 667 * hence the driver needs to sets up it properly.
668 */ 668 */
669 669
670static unsigned char juli_eeprom[] __devinitdata = { 670static unsigned char juli_eeprom[] = {
671 [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, 1xADC, 1xDACs, 671 [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, 1xADC, 1xDACs,
672 SPDIF in */ 672 SPDIF in */
673 [ICE_EEP2_ACLINK] = 0x80, /* I2S */ 673 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
@@ -686,7 +686,7 @@ static unsigned char juli_eeprom[] __devinitdata = {
686}; 686};
687 687
688/* entry point */ 688/* entry point */
689struct snd_ice1712_card_info snd_vt1724_juli_cards[] __devinitdata = { 689struct snd_ice1712_card_info snd_vt1724_juli_cards[] = {
690 { 690 {
691 .subvendor = VT1724_SUBDEVICE_JULI, 691 .subvendor = VT1724_SUBDEVICE_JULI,
692 .name = "ESI Juli@", 692 .name = "ESI Juli@",