diff options
Diffstat (limited to 'sound/pci/ice1712/maya44.c')
| -rw-r--r-- | sound/pci/ice1712/maya44.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/sound/pci/ice1712/maya44.c b/sound/pci/ice1712/maya44.c index 726fd4b92e19..63aa39f06f02 100644 --- a/sound/pci/ice1712/maya44.c +++ b/sound/pci/ice1712/maya44.c | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
| 26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
| 27 | #include <linux/io.h> | ||
| 28 | #include <sound/core.h> | 27 | #include <sound/core.h> |
| 29 | #include <sound/control.h> | 28 | #include <sound/control.h> |
| 30 | #include <sound/pcm.h> | 29 | #include <sound/pcm.h> |
| @@ -358,7 +357,7 @@ static void wm8776_select_input(struct snd_maya44 *chip, int idx, int line) | |||
| 358 | static int maya_rec_src_info(struct snd_kcontrol *kcontrol, | 357 | static int maya_rec_src_info(struct snd_kcontrol *kcontrol, |
| 359 | struct snd_ctl_elem_info *uinfo) | 358 | struct snd_ctl_elem_info *uinfo) |
| 360 | { | 359 | { |
| 361 | static char *texts[] = { "Line", "Mic" }; | 360 | static const char * const texts[] = { "Line", "Mic" }; |
| 362 | 361 | ||
| 363 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | 362 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; |
| 364 | uinfo->count = 1; | 363 | uinfo->count = 1; |
| @@ -407,7 +406,7 @@ static int maya_rec_src_put(struct snd_kcontrol *kcontrol, | |||
| 407 | static int maya_pb_route_info(struct snd_kcontrol *kcontrol, | 406 | static int maya_pb_route_info(struct snd_kcontrol *kcontrol, |
| 408 | struct snd_ctl_elem_info *uinfo) | 407 | struct snd_ctl_elem_info *uinfo) |
| 409 | { | 408 | { |
| 410 | static char *texts[] = { | 409 | static const char * const texts[] = { |
| 411 | "PCM Out", /* 0 */ | 410 | "PCM Out", /* 0 */ |
| 412 | "Input 1", "Input 2", "Input 3", "Input 4" | 411 | "Input 1", "Input 2", "Input 3", "Input 4" |
| 413 | }; | 412 | }; |
| @@ -455,7 +454,7 @@ static int maya_pb_route_put(struct snd_kcontrol *kcontrol, | |||
| 455 | * controls to be added | 454 | * controls to be added |
| 456 | */ | 455 | */ |
| 457 | 456 | ||
| 458 | static struct snd_kcontrol_new maya_controls[] __devinitdata = { | 457 | static struct snd_kcontrol_new maya_controls[] = { |
| 459 | { | 458 | { |
| 460 | .name = "Crossmix Playback Volume", | 459 | .name = "Crossmix Playback Volume", |
| 461 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 460 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
| @@ -545,7 +544,7 @@ static struct snd_kcontrol_new maya_controls[] __devinitdata = { | |||
| 545 | }, | 544 | }, |
| 546 | }; | 545 | }; |
| 547 | 546 | ||
| 548 | static int __devinit maya44_add_controls(struct snd_ice1712 *ice) | 547 | static int maya44_add_controls(struct snd_ice1712 *ice) |
| 549 | { | 548 | { |
| 550 | int err, i; | 549 | int err, i; |
| 551 | 550 | ||
| @@ -562,8 +561,8 @@ static int __devinit maya44_add_controls(struct snd_ice1712 *ice) | |||
| 562 | /* | 561 | /* |
| 563 | * initialize a wm8776 chip | 562 | * initialize a wm8776 chip |
| 564 | */ | 563 | */ |
| 565 | static void __devinit wm8776_init(struct snd_ice1712 *ice, | 564 | static void wm8776_init(struct snd_ice1712 *ice, |
| 566 | struct snd_wm8776 *wm, unsigned int addr) | 565 | struct snd_wm8776 *wm, unsigned int addr) |
| 567 | { | 566 | { |
| 568 | static const unsigned short inits_wm8776[] = { | 567 | static const unsigned short inits_wm8776[] = { |
| 569 | 0x02, 0x100, /* R2: headphone L+R muted + update */ | 568 | 0x02, 0x100, /* R2: headphone L+R muted + update */ |
| @@ -693,14 +692,14 @@ static struct snd_pcm_hw_constraint_list dac_rates = { | |||
| 693 | /* | 692 | /* |
| 694 | * chip addresses on I2C bus | 693 | * chip addresses on I2C bus |
| 695 | */ | 694 | */ |
| 696 | static unsigned char wm8776_addr[2] __devinitdata = { | 695 | static unsigned char wm8776_addr[2] = { |
| 697 | 0x34, 0x36, /* codec 0 & 1 */ | 696 | 0x34, 0x36, /* codec 0 & 1 */ |
| 698 | }; | 697 | }; |
| 699 | 698 | ||
| 700 | /* | 699 | /* |
| 701 | * initialize the chip | 700 | * initialize the chip |
| 702 | */ | 701 | */ |
| 703 | static int __devinit maya44_init(struct snd_ice1712 *ice) | 702 | static int maya44_init(struct snd_ice1712 *ice) |
| 704 | { | 703 | { |
| 705 | int i; | 704 | int i; |
| 706 | struct snd_maya44 *chip; | 705 | struct snd_maya44 *chip; |
| @@ -743,7 +742,7 @@ static int __devinit maya44_init(struct snd_ice1712 *ice) | |||
| 743 | * hence the driver needs to sets up it properly. | 742 | * hence the driver needs to sets up it properly. |
| 744 | */ | 743 | */ |
| 745 | 744 | ||
| 746 | static unsigned char maya44_eeprom[] __devinitdata = { | 745 | static unsigned char maya44_eeprom[] = { |
| 747 | [ICE_EEP2_SYSCONF] = 0x45, | 746 | [ICE_EEP2_SYSCONF] = 0x45, |
| 748 | /* clock xin1=49.152MHz, mpu401, 2 stereo ADCs+DACs */ | 747 | /* clock xin1=49.152MHz, mpu401, 2 stereo ADCs+DACs */ |
| 749 | [ICE_EEP2_ACLINK] = 0x80, | 748 | [ICE_EEP2_ACLINK] = 0x80, |
| @@ -765,7 +764,7 @@ static unsigned char maya44_eeprom[] __devinitdata = { | |||
| 765 | }; | 764 | }; |
| 766 | 765 | ||
| 767 | /* entry point */ | 766 | /* entry point */ |
| 768 | struct snd_ice1712_card_info snd_vt1724_maya44_cards[] __devinitdata = { | 767 | struct snd_ice1712_card_info snd_vt1724_maya44_cards[] = { |
| 769 | { | 768 | { |
| 770 | .subvendor = VT1724_SUBDEVICE_MAYA44, | 769 | .subvendor = VT1724_SUBDEVICE_MAYA44, |
| 771 | .name = "ESI Maya44", | 770 | .name = "ESI Maya44", |
