diff options
| -rw-r--r-- | sound/pci/hda/hda_codec.c | 10 | ||||
| -rw-r--r-- | sound/pci/hda/hda_generic.c | 7 | ||||
| -rw-r--r-- | sound/pci/hda/hda_local.h | 6 | ||||
| -rw-r--r-- | sound/pci/hda/hda_proc.c | 2 | ||||
| -rw-r--r-- | sound/pci/hda/patch_analog.c | 30 | ||||
| -rw-r--r-- | sound/pci/hda/patch_cirrus.c | 4 | ||||
| -rw-r--r-- | sound/pci/hda/patch_cmedia.c | 2 | ||||
| -rw-r--r-- | sound/pci/hda/patch_conexant.c | 14 | ||||
| -rw-r--r-- | sound/pci/hda/patch_realtek.c | 34 | ||||
| -rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 36 | ||||
| -rw-r--r-- | sound/pci/hda/patch_via.c | 28 |
11 files changed, 95 insertions, 78 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 05e5ec88c2d9..ae5c5d5e4b7c 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
| @@ -2134,10 +2134,10 @@ int snd_hda_codec_reset(struct hda_codec *codec) | |||
| 2134 | * This function returns zero if successful or a negative error code. | 2134 | * This function returns zero if successful or a negative error code. |
| 2135 | */ | 2135 | */ |
| 2136 | int snd_hda_add_vmaster(struct hda_codec *codec, char *name, | 2136 | int snd_hda_add_vmaster(struct hda_codec *codec, char *name, |
| 2137 | unsigned int *tlv, const char **slaves) | 2137 | unsigned int *tlv, const char * const *slaves) |
| 2138 | { | 2138 | { |
| 2139 | struct snd_kcontrol *kctl; | 2139 | struct snd_kcontrol *kctl; |
| 2140 | const char **s; | 2140 | const char * const *s; |
| 2141 | int err; | 2141 | int err; |
| 2142 | 2142 | ||
| 2143 | for (s = slaves; *s && !snd_hda_find_mixer_ctl(codec, *s); s++) | 2143 | for (s = slaves; *s && !snd_hda_find_mixer_ctl(codec, *s); s++) |
| @@ -3689,7 +3689,7 @@ EXPORT_SYMBOL_HDA(snd_hda_build_pcms); | |||
| 3689 | * If no entries are matching, the function returns a negative value. | 3689 | * If no entries are matching, the function returns a negative value. |
| 3690 | */ | 3690 | */ |
| 3691 | int snd_hda_check_board_config(struct hda_codec *codec, | 3691 | int snd_hda_check_board_config(struct hda_codec *codec, |
| 3692 | int num_configs, const char **models, | 3692 | int num_configs, const char * const *models, |
| 3693 | const struct snd_pci_quirk *tbl) | 3693 | const struct snd_pci_quirk *tbl) |
| 3694 | { | 3694 | { |
| 3695 | if (codec->modelname && models) { | 3695 | if (codec->modelname && models) { |
| @@ -3753,7 +3753,7 @@ EXPORT_SYMBOL_HDA(snd_hda_check_board_config); | |||
| 3753 | * If no entries are matching, the function returns a negative value. | 3753 | * If no entries are matching, the function returns a negative value. |
| 3754 | */ | 3754 | */ |
| 3755 | int snd_hda_check_board_codec_sid_config(struct hda_codec *codec, | 3755 | int snd_hda_check_board_codec_sid_config(struct hda_codec *codec, |
| 3756 | int num_configs, const char **models, | 3756 | int num_configs, const char * const *models, |
| 3757 | const struct snd_pci_quirk *tbl) | 3757 | const struct snd_pci_quirk *tbl) |
| 3758 | { | 3758 | { |
| 3759 | const struct snd_pci_quirk *q; | 3759 | const struct snd_pci_quirk *q; |
| @@ -4690,7 +4690,7 @@ const char *hda_get_input_pin_label(struct hda_codec *codec, hda_nid_t pin, | |||
| 4690 | int check_location) | 4690 | int check_location) |
| 4691 | { | 4691 | { |
| 4692 | unsigned int def_conf; | 4692 | unsigned int def_conf; |
| 4693 | static const char *mic_names[] = { | 4693 | static const char * const mic_names[] = { |
| 4694 | "Internal Mic", "Dock Mic", "Mic", "Front Mic", "Rear Mic", | 4694 | "Internal Mic", "Dock Mic", "Mic", "Front Mic", "Rear Mic", |
| 4695 | }; | 4695 | }; |
| 4696 | int attr; | 4696 | int attr; |
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index fb0582f8d725..a63c54d9d767 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c | |||
| @@ -762,7 +762,8 @@ static int check_existing_control(struct hda_codec *codec, const char *type, con | |||
| 762 | /* | 762 | /* |
| 763 | * build output mixer controls | 763 | * build output mixer controls |
| 764 | */ | 764 | */ |
| 765 | static int create_output_mixers(struct hda_codec *codec, const char **names) | 765 | static int create_output_mixers(struct hda_codec *codec, |
| 766 | const char * const *names) | ||
| 766 | { | 767 | { |
| 767 | struct hda_gspec *spec = codec->spec; | 768 | struct hda_gspec *spec = codec->spec; |
| 768 | int i, err; | 769 | int i, err; |
| @@ -780,8 +781,8 @@ static int create_output_mixers(struct hda_codec *codec, const char **names) | |||
| 780 | static int build_output_controls(struct hda_codec *codec) | 781 | static int build_output_controls(struct hda_codec *codec) |
| 781 | { | 782 | { |
| 782 | struct hda_gspec *spec = codec->spec; | 783 | struct hda_gspec *spec = codec->spec; |
| 783 | static const char *types_speaker[] = { "Speaker", "Headphone" }; | 784 | static const char * const types_speaker[] = { "Speaker", "Headphone" }; |
| 784 | static const char *types_line[] = { "Front", "Headphone" }; | 785 | static const char * const types_line[] = { "Front", "Headphone" }; |
| 785 | 786 | ||
| 786 | switch (spec->pcm_vol_nodes) { | 787 | switch (spec->pcm_vol_nodes) { |
| 787 | case 1: | 788 | case 1: |
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 46bbefe2e4a9..3ab5e7a303db 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
| @@ -140,7 +140,7 @@ void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, | |||
| 140 | struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, | 140 | struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec, |
| 141 | const char *name); | 141 | const char *name); |
| 142 | int snd_hda_add_vmaster(struct hda_codec *codec, char *name, | 142 | int snd_hda_add_vmaster(struct hda_codec *codec, char *name, |
| 143 | unsigned int *tlv, const char **slaves); | 143 | unsigned int *tlv, const char * const *slaves); |
| 144 | int snd_hda_codec_reset(struct hda_codec *codec); | 144 | int snd_hda_codec_reset(struct hda_codec *codec); |
| 145 | 145 | ||
| 146 | /* amp value bits */ | 146 | /* amp value bits */ |
| @@ -341,10 +341,10 @@ void snd_print_pcm_bits(int pcm, char *buf, int buflen); | |||
| 341 | * Misc | 341 | * Misc |
| 342 | */ | 342 | */ |
| 343 | int snd_hda_check_board_config(struct hda_codec *codec, int num_configs, | 343 | int snd_hda_check_board_config(struct hda_codec *codec, int num_configs, |
| 344 | const char **modelnames, | 344 | const char * const *modelnames, |
| 345 | const struct snd_pci_quirk *pci_list); | 345 | const struct snd_pci_quirk *pci_list); |
| 346 | int snd_hda_check_board_codec_sid_config(struct hda_codec *codec, | 346 | int snd_hda_check_board_codec_sid_config(struct hda_codec *codec, |
| 347 | int num_configs, const char **models, | 347 | int num_configs, const char * const *models, |
| 348 | const struct snd_pci_quirk *tbl); | 348 | const struct snd_pci_quirk *tbl); |
| 349 | int snd_hda_add_new_ctls(struct hda_codec *codec, | 349 | int snd_hda_add_new_ctls(struct hda_codec *codec, |
| 350 | struct snd_kcontrol_new *knew); | 350 | struct snd_kcontrol_new *knew); |
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index f025200f2a62..bfe74c2fb079 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
| @@ -418,7 +418,7 @@ static void print_digital_conv(struct snd_info_buffer *buffer, | |||
| 418 | 418 | ||
| 419 | static const char *get_pwr_state(u32 state) | 419 | static const char *get_pwr_state(u32 state) |
| 420 | { | 420 | { |
| 421 | static const char *buf[4] = { | 421 | static const char * const buf[4] = { |
| 422 | "D0", "D1", "D2", "D3" | 422 | "D0", "D1", "D2", "D3" |
| 423 | }; | 423 | }; |
| 424 | if (state < 4) | 424 | if (state < 4) |
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 34ee1169f2e0..8dabab798689 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
| @@ -84,8 +84,8 @@ struct ad198x_spec { | |||
| 84 | #endif | 84 | #endif |
| 85 | /* for virtual master */ | 85 | /* for virtual master */ |
| 86 | hda_nid_t vmaster_nid; | 86 | hda_nid_t vmaster_nid; |
| 87 | const char **slave_vols; | 87 | const char * const *slave_vols; |
| 88 | const char **slave_sws; | 88 | const char * const *slave_sws; |
| 89 | }; | 89 | }; |
| 90 | 90 | ||
| 91 | /* | 91 | /* |
| @@ -133,7 +133,7 @@ static int ad198x_init(struct hda_codec *codec) | |||
| 133 | return 0; | 133 | return 0; |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | static const char *ad_slave_vols[] = { | 136 | static const char * const ad_slave_vols[] = { |
| 137 | "Front Playback Volume", | 137 | "Front Playback Volume", |
| 138 | "Surround Playback Volume", | 138 | "Surround Playback Volume", |
| 139 | "Center Playback Volume", | 139 | "Center Playback Volume", |
| @@ -146,7 +146,7 @@ static const char *ad_slave_vols[] = { | |||
| 146 | NULL | 146 | NULL |
| 147 | }; | 147 | }; |
| 148 | 148 | ||
| 149 | static const char *ad_slave_sws[] = { | 149 | static const char * const ad_slave_sws[] = { |
| 150 | "Front Playback Switch", | 150 | "Front Playback Switch", |
| 151 | "Surround Playback Switch", | 151 | "Surround Playback Switch", |
| 152 | "Center Playback Switch", | 152 | "Center Playback Switch", |
| @@ -159,7 +159,7 @@ static const char *ad_slave_sws[] = { | |||
| 159 | NULL | 159 | NULL |
| 160 | }; | 160 | }; |
| 161 | 161 | ||
| 162 | static const char *ad1988_6stack_fp_slave_vols[] = { | 162 | static const char * const ad1988_6stack_fp_slave_vols[] = { |
| 163 | "Front Playback Volume", | 163 | "Front Playback Volume", |
| 164 | "Surround Playback Volume", | 164 | "Surround Playback Volume", |
| 165 | "Center Playback Volume", | 165 | "Center Playback Volume", |
| @@ -169,7 +169,7 @@ static const char *ad1988_6stack_fp_slave_vols[] = { | |||
| 169 | NULL | 169 | NULL |
| 170 | }; | 170 | }; |
| 171 | 171 | ||
| 172 | static const char *ad1988_6stack_fp_slave_sws[] = { | 172 | static const char * const ad1988_6stack_fp_slave_sws[] = { |
| 173 | "Front Playback Switch", | 173 | "Front Playback Switch", |
| 174 | "Surround Playback Switch", | 174 | "Surround Playback Switch", |
| 175 | "Center Playback Switch", | 175 | "Center Playback Switch", |
| @@ -1134,7 +1134,7 @@ enum { | |||
| 1134 | AD1986A_MODELS | 1134 | AD1986A_MODELS |
| 1135 | }; | 1135 | }; |
| 1136 | 1136 | ||
| 1137 | static const char *ad1986a_models[AD1986A_MODELS] = { | 1137 | static const char * const ad1986a_models[AD1986A_MODELS] = { |
| 1138 | [AD1986A_6STACK] = "6stack", | 1138 | [AD1986A_6STACK] = "6stack", |
| 1139 | [AD1986A_3STACK] = "3stack", | 1139 | [AD1986A_3STACK] = "3stack", |
| 1140 | [AD1986A_LAPTOP] = "laptop", | 1140 | [AD1986A_LAPTOP] = "laptop", |
| @@ -1878,7 +1878,7 @@ enum { | |||
| 1878 | AD1981_MODELS | 1878 | AD1981_MODELS |
| 1879 | }; | 1879 | }; |
| 1880 | 1880 | ||
| 1881 | static const char *ad1981_models[AD1981_MODELS] = { | 1881 | static const char * const ad1981_models[AD1981_MODELS] = { |
| 1882 | [AD1981_HP] = "hp", | 1882 | [AD1981_HP] = "hp", |
| 1883 | [AD1981_THINKPAD] = "thinkpad", | 1883 | [AD1981_THINKPAD] = "thinkpad", |
| 1884 | [AD1981_BASIC] = "basic", | 1884 | [AD1981_BASIC] = "basic", |
| @@ -2953,7 +2953,9 @@ static int ad1988_auto_create_multi_out_ctls(struct ad198x_spec *spec, | |||
| 2953 | const struct auto_pin_cfg *cfg) | 2953 | const struct auto_pin_cfg *cfg) |
| 2954 | { | 2954 | { |
| 2955 | char name[32]; | 2955 | char name[32]; |
| 2956 | static const char *chname[4] = { "Front", "Surround", NULL /*CLFE*/, "Side" }; | 2956 | static const char * const chname[4] = { |
| 2957 | "Front", "Surround", NULL /*CLFE*/, "Side" | ||
| 2958 | }; | ||
| 2957 | hda_nid_t nid; | 2959 | hda_nid_t nid; |
| 2958 | int i, err; | 2960 | int i, err; |
| 2959 | 2961 | ||
| @@ -3238,7 +3240,7 @@ static int ad1988_auto_init(struct hda_codec *codec) | |||
| 3238 | /* | 3240 | /* |
| 3239 | */ | 3241 | */ |
| 3240 | 3242 | ||
| 3241 | static const char *ad1988_models[AD1988_MODEL_LAST] = { | 3243 | static const char * const ad1988_models[AD1988_MODEL_LAST] = { |
| 3242 | [AD1988_6STACK] = "6stack", | 3244 | [AD1988_6STACK] = "6stack", |
| 3243 | [AD1988_6STACK_DIG] = "6stack-dig", | 3245 | [AD1988_6STACK_DIG] = "6stack-dig", |
| 3244 | [AD1988_6STACK_DIG_FP] = "6stack-dig-fp", | 3246 | [AD1988_6STACK_DIG_FP] = "6stack-dig-fp", |
| @@ -3573,7 +3575,7 @@ static struct hda_amp_list ad1884_loopbacks[] = { | |||
| 3573 | }; | 3575 | }; |
| 3574 | #endif | 3576 | #endif |
| 3575 | 3577 | ||
| 3576 | static const char *ad1884_slave_vols[] = { | 3578 | static const char * const ad1884_slave_vols[] = { |
| 3577 | "PCM Playback Volume", | 3579 | "PCM Playback Volume", |
| 3578 | "Mic Playback Volume", | 3580 | "Mic Playback Volume", |
| 3579 | "Mono Playback Volume", | 3581 | "Mono Playback Volume", |
| @@ -3811,7 +3813,7 @@ enum { | |||
| 3811 | AD1984_MODELS | 3813 | AD1984_MODELS |
| 3812 | }; | 3814 | }; |
| 3813 | 3815 | ||
| 3814 | static const char *ad1984_models[AD1984_MODELS] = { | 3816 | static const char * const ad1984_models[AD1984_MODELS] = { |
| 3815 | [AD1984_BASIC] = "basic", | 3817 | [AD1984_BASIC] = "basic", |
| 3816 | [AD1984_THINKPAD] = "thinkpad", | 3818 | [AD1984_THINKPAD] = "thinkpad", |
| 3817 | [AD1984_DELL_DESKTOP] = "dell_desktop", | 3819 | [AD1984_DELL_DESKTOP] = "dell_desktop", |
| @@ -4482,7 +4484,7 @@ enum { | |||
| 4482 | AD1884A_MODELS | 4484 | AD1884A_MODELS |
| 4483 | }; | 4485 | }; |
| 4484 | 4486 | ||
| 4485 | static const char *ad1884a_models[AD1884A_MODELS] = { | 4487 | static const char * const ad1884a_models[AD1884A_MODELS] = { |
| 4486 | [AD1884A_DESKTOP] = "desktop", | 4488 | [AD1884A_DESKTOP] = "desktop", |
| 4487 | [AD1884A_LAPTOP] = "laptop", | 4489 | [AD1884A_LAPTOP] = "laptop", |
| 4488 | [AD1884A_MOBILE] = "mobile", | 4490 | [AD1884A_MOBILE] = "mobile", |
| @@ -4870,7 +4872,7 @@ enum { | |||
| 4870 | AD1882_MODELS | 4872 | AD1882_MODELS |
| 4871 | }; | 4873 | }; |
| 4872 | 4874 | ||
| 4873 | static const char *ad1882_models[AD1986A_MODELS] = { | 4875 | static const char * const ad1882_models[AD1986A_MODELS] = { |
| 4874 | [AD1882_3STACK] = "3stack", | 4876 | [AD1882_3STACK] = "3stack", |
| 4875 | [AD1882_6STACK] = "6stack", | 4877 | [AD1882_6STACK] = "6stack", |
| 4876 | }; | 4878 | }; |
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 18af38ebf757..a07b031090d8 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
| @@ -490,7 +490,7 @@ static int parse_digital_input(struct hda_codec *codec) | |||
| 490 | * create mixer controls | 490 | * create mixer controls |
| 491 | */ | 491 | */ |
| 492 | 492 | ||
| 493 | static const char *dir_sfx[2] = { "Playback", "Capture" }; | 493 | static const char * const dir_sfx[2] = { "Playback", "Capture" }; |
| 494 | 494 | ||
| 495 | static int add_mute(struct hda_codec *codec, const char *name, int index, | 495 | static int add_mute(struct hda_codec *codec, const char *name, int index, |
| 496 | unsigned int pval, int dir, struct snd_kcontrol **kctlp) | 496 | unsigned int pval, int dir, struct snd_kcontrol **kctlp) |
| @@ -1156,7 +1156,7 @@ static int cs_parse_auto_config(struct hda_codec *codec) | |||
| 1156 | return 0; | 1156 | return 0; |
| 1157 | } | 1157 | } |
| 1158 | 1158 | ||
| 1159 | static const char *cs420x_models[CS420X_MODELS] = { | 1159 | static const char * const cs420x_models[CS420X_MODELS] = { |
| 1160 | [CS420X_MBP53] = "mbp53", | 1160 | [CS420X_MBP53] = "mbp53", |
| 1161 | [CS420X_MBP55] = "mbp55", | 1161 | [CS420X_MBP55] = "mbp55", |
| 1162 | [CS420X_IMAC27] = "imac27", | 1162 | [CS420X_IMAC27] = "imac27", |
diff --git a/sound/pci/hda/patch_cmedia.c b/sound/pci/hda/patch_cmedia.c index ff60908f4554..1f8bbcd0f802 100644 --- a/sound/pci/hda/patch_cmedia.c +++ b/sound/pci/hda/patch_cmedia.c | |||
| @@ -608,7 +608,7 @@ static void cmi9880_free(struct hda_codec *codec) | |||
| 608 | /* | 608 | /* |
| 609 | */ | 609 | */ |
| 610 | 610 | ||
| 611 | static const char *cmi9880_models[CMI_MODELS] = { | 611 | static const char * const cmi9880_models[CMI_MODELS] = { |
| 612 | [CMI_MINIMAL] = "minimal", | 612 | [CMI_MINIMAL] = "minimal", |
| 613 | [CMI_MIN_FP] = "min_fp", | 613 | [CMI_MIN_FP] = "min_fp", |
| 614 | [CMI_FULL] = "full", | 614 | [CMI_FULL] = "full", |
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index e96581fcdbdb..9bb030a469cd 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
| @@ -537,13 +537,13 @@ static struct snd_kcontrol_new cxt_beep_mixer[] = { | |||
| 537 | }; | 537 | }; |
| 538 | #endif | 538 | #endif |
| 539 | 539 | ||
| 540 | static const char *slave_vols[] = { | 540 | static const char * const slave_vols[] = { |
| 541 | "Headphone Playback Volume", | 541 | "Headphone Playback Volume", |
| 542 | "Speaker Playback Volume", | 542 | "Speaker Playback Volume", |
| 543 | NULL | 543 | NULL |
| 544 | }; | 544 | }; |
| 545 | 545 | ||
| 546 | static const char *slave_sws[] = { | 546 | static const char * const slave_sws[] = { |
| 547 | "Headphone Playback Switch", | 547 | "Headphone Playback Switch", |
| 548 | "Speaker Playback Switch", | 548 | "Speaker Playback Switch", |
| 549 | NULL | 549 | NULL |
| @@ -1134,7 +1134,7 @@ enum { | |||
| 1134 | CXT5045_MODELS | 1134 | CXT5045_MODELS |
| 1135 | }; | 1135 | }; |
| 1136 | 1136 | ||
| 1137 | static const char *cxt5045_models[CXT5045_MODELS] = { | 1137 | static const char * const cxt5045_models[CXT5045_MODELS] = { |
| 1138 | [CXT5045_LAPTOP_HPSENSE] = "laptop-hpsense", | 1138 | [CXT5045_LAPTOP_HPSENSE] = "laptop-hpsense", |
| 1139 | [CXT5045_LAPTOP_MICSENSE] = "laptop-micsense", | 1139 | [CXT5045_LAPTOP_MICSENSE] = "laptop-micsense", |
| 1140 | [CXT5045_LAPTOP_HPMICSENSE] = "laptop-hpmicsense", | 1140 | [CXT5045_LAPTOP_HPMICSENSE] = "laptop-hpmicsense", |
| @@ -1579,7 +1579,7 @@ enum { | |||
| 1579 | CXT5047_MODELS | 1579 | CXT5047_MODELS |
| 1580 | }; | 1580 | }; |
| 1581 | 1581 | ||
| 1582 | static const char *cxt5047_models[CXT5047_MODELS] = { | 1582 | static const char * const cxt5047_models[CXT5047_MODELS] = { |
| 1583 | [CXT5047_LAPTOP] = "laptop", | 1583 | [CXT5047_LAPTOP] = "laptop", |
| 1584 | [CXT5047_LAPTOP_HP] = "laptop-hp", | 1584 | [CXT5047_LAPTOP_HP] = "laptop-hp", |
| 1585 | [CXT5047_LAPTOP_EAPD] = "laptop-eapd", | 1585 | [CXT5047_LAPTOP_EAPD] = "laptop-eapd", |
| @@ -1995,7 +1995,7 @@ enum { | |||
| 1995 | CXT5051_MODELS | 1995 | CXT5051_MODELS |
| 1996 | }; | 1996 | }; |
| 1997 | 1997 | ||
| 1998 | static const char *cxt5051_models[CXT5051_MODELS] = { | 1998 | static const char *const cxt5051_models[CXT5051_MODELS] = { |
| 1999 | [CXT5051_LAPTOP] = "laptop", | 1999 | [CXT5051_LAPTOP] = "laptop", |
| 2000 | [CXT5051_HP] = "hp", | 2000 | [CXT5051_HP] = "hp", |
| 2001 | [CXT5051_HP_DV6736] = "hp-dv6736", | 2001 | [CXT5051_HP_DV6736] = "hp-dv6736", |
| @@ -3084,7 +3084,7 @@ enum { | |||
| 3084 | CXT5066_MODELS | 3084 | CXT5066_MODELS |
| 3085 | }; | 3085 | }; |
| 3086 | 3086 | ||
| 3087 | static const char *cxt5066_models[CXT5066_MODELS] = { | 3087 | static const char * const cxt5066_models[CXT5066_MODELS] = { |
| 3088 | [CXT5066_LAPTOP] = "laptop", | 3088 | [CXT5066_LAPTOP] = "laptop", |
| 3089 | [CXT5066_DELL_LAPTOP] = "dell-laptop", | 3089 | [CXT5066_DELL_LAPTOP] = "dell-laptop", |
| 3090 | [CXT5066_OLPC_XO_1_5] = "olpc-xo-1_5", | 3090 | [CXT5066_OLPC_XO_1_5] = "olpc-xo-1_5", |
| @@ -3746,7 +3746,7 @@ static int cx_auto_build_output_controls(struct hda_codec *codec) | |||
| 3746 | struct conexant_spec *spec = codec->spec; | 3746 | struct conexant_spec *spec = codec->spec; |
| 3747 | int i, err; | 3747 | int i, err; |
| 3748 | int num_line = 0, num_hp = 0, num_spk = 0; | 3748 | int num_line = 0, num_hp = 0, num_spk = 0; |
| 3749 | static const char *texts[3] = { "Front", "Surround", "CLFE" }; | 3749 | static const char * const texts[3] = { "Front", "Surround", "CLFE" }; |
| 3750 | 3750 | ||
| 3751 | if (spec->dac_info_filled == 1) | 3751 | if (spec->dac_info_filled == 1) |
| 3752 | return cx_auto_add_pb_volume(codec, spec->dac_info[0].dac, | 3752 | return cx_auto_add_pb_volume(codec, spec->dac_info[0].dac, |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 69554061c16e..4f006eedd7ef 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
| @@ -2916,7 +2916,7 @@ static struct snd_kcontrol_new alc880_uniwill_p53_mixer[] = { | |||
| 2916 | /* | 2916 | /* |
| 2917 | * slave controls for virtual master | 2917 | * slave controls for virtual master |
| 2918 | */ | 2918 | */ |
| 2919 | static const char *alc_slave_vols[] = { | 2919 | static const char * const alc_slave_vols[] = { |
| 2920 | "Front Playback Volume", | 2920 | "Front Playback Volume", |
| 2921 | "Surround Playback Volume", | 2921 | "Surround Playback Volume", |
| 2922 | "Center Playback Volume", | 2922 | "Center Playback Volume", |
| @@ -2930,7 +2930,7 @@ static const char *alc_slave_vols[] = { | |||
| 2930 | NULL, | 2930 | NULL, |
| 2931 | }; | 2931 | }; |
| 2932 | 2932 | ||
| 2933 | static const char *alc_slave_sws[] = { | 2933 | static const char * const alc_slave_sws[] = { |
| 2934 | "Front Playback Switch", | 2934 | "Front Playback Switch", |
| 2935 | "Surround Playback Switch", | 2935 | "Surround Playback Switch", |
| 2936 | "Center Playback Switch", | 2936 | "Center Playback Switch", |
| @@ -4611,7 +4611,7 @@ static struct hda_verb alc880_test_init_verbs[] = { | |||
| 4611 | /* | 4611 | /* |
| 4612 | */ | 4612 | */ |
| 4613 | 4613 | ||
| 4614 | static const char *alc880_models[ALC880_MODEL_LAST] = { | 4614 | static const char * const alc880_models[ALC880_MODEL_LAST] = { |
| 4615 | [ALC880_3ST] = "3stack", | 4615 | [ALC880_3ST] = "3stack", |
| 4616 | [ALC880_TCL_S700] = "tcl", | 4616 | [ALC880_TCL_S700] = "tcl", |
| 4617 | [ALC880_3ST_DIG] = "3stack-digout", | 4617 | [ALC880_3ST_DIG] = "3stack-digout", |
| @@ -5144,7 +5144,7 @@ static const char *alc_get_line_out_pfx(const struct auto_pin_cfg *cfg, | |||
| 5144 | static int alc880_auto_create_multi_out_ctls(struct alc_spec *spec, | 5144 | static int alc880_auto_create_multi_out_ctls(struct alc_spec *spec, |
| 5145 | const struct auto_pin_cfg *cfg) | 5145 | const struct auto_pin_cfg *cfg) |
| 5146 | { | 5146 | { |
| 5147 | static const char *chname[4] = { | 5147 | static const char * const chname[4] = { |
| 5148 | "Front", "Surround", NULL /*CLFE*/, "Side" | 5148 | "Front", "Surround", NULL /*CLFE*/, "Side" |
| 5149 | }; | 5149 | }; |
| 5150 | const char *pfx = alc_get_line_out_pfx(cfg, false); | 5150 | const char *pfx = alc_get_line_out_pfx(cfg, false); |
| @@ -7158,7 +7158,7 @@ static struct snd_pci_quirk alc260_fixup_tbl[] = { | |||
| 7158 | /* | 7158 | /* |
| 7159 | * ALC260 configurations | 7159 | * ALC260 configurations |
| 7160 | */ | 7160 | */ |
| 7161 | static const char *alc260_models[ALC260_MODEL_LAST] = { | 7161 | static const char * const alc260_models[ALC260_MODEL_LAST] = { |
| 7162 | [ALC260_BASIC] = "basic", | 7162 | [ALC260_BASIC] = "basic", |
| 7163 | [ALC260_HP] = "hp", | 7163 | [ALC260_HP] = "hp", |
| 7164 | [ALC260_HP_3013] = "hp-3013", | 7164 | [ALC260_HP_3013] = "hp-3013", |
| @@ -9781,7 +9781,7 @@ static hda_nid_t alc1200_slave_dig_outs[] = { | |||
| 9781 | /* | 9781 | /* |
| 9782 | * configuration and preset | 9782 | * configuration and preset |
| 9783 | */ | 9783 | */ |
| 9784 | static const char *alc882_models[ALC882_MODEL_LAST] = { | 9784 | static const char * const alc882_models[ALC882_MODEL_LAST] = { |
| 9785 | [ALC882_3ST_DIG] = "3stack-dig", | 9785 | [ALC882_3ST_DIG] = "3stack-dig", |
| 9786 | [ALC882_6ST_DIG] = "6stack-dig", | 9786 | [ALC882_6ST_DIG] = "6stack-dig", |
| 9787 | [ALC882_ARIMA] = "arima", | 9787 | [ALC882_ARIMA] = "arima", |
| @@ -12601,7 +12601,7 @@ static void alc262_auto_init(struct hda_codec *codec) | |||
| 12601 | /* | 12601 | /* |
| 12602 | * configuration and preset | 12602 | * configuration and preset |
| 12603 | */ | 12603 | */ |
| 12604 | static const char *alc262_models[ALC262_MODEL_LAST] = { | 12604 | static const char * const alc262_models[ALC262_MODEL_LAST] = { |
| 12605 | [ALC262_BASIC] = "basic", | 12605 | [ALC262_BASIC] = "basic", |
| 12606 | [ALC262_HIPPO] = "hippo", | 12606 | [ALC262_HIPPO] = "hippo", |
| 12607 | [ALC262_HIPPO_1] = "hippo_1", | 12607 | [ALC262_HIPPO_1] = "hippo_1", |
| @@ -13789,7 +13789,7 @@ static void alc268_auto_init(struct hda_codec *codec) | |||
| 13789 | /* | 13789 | /* |
| 13790 | * configuration and preset | 13790 | * configuration and preset |
| 13791 | */ | 13791 | */ |
| 13792 | static const char *alc268_models[ALC268_MODEL_LAST] = { | 13792 | static const char * const alc268_models[ALC268_MODEL_LAST] = { |
| 13793 | [ALC267_QUANTA_IL1] = "quanta-il1", | 13793 | [ALC267_QUANTA_IL1] = "quanta-il1", |
| 13794 | [ALC268_3ST] = "3stack", | 13794 | [ALC268_3ST] = "3stack", |
| 13795 | [ALC268_TOSHIBA] = "toshiba", | 13795 | [ALC268_TOSHIBA] = "toshiba", |
| @@ -14961,7 +14961,7 @@ static struct snd_pci_quirk alc269_fixup_tbl[] = { | |||
| 14961 | /* | 14961 | /* |
| 14962 | * configuration and preset | 14962 | * configuration and preset |
| 14963 | */ | 14963 | */ |
| 14964 | static const char *alc269_models[ALC269_MODEL_LAST] = { | 14964 | static const char * const alc269_models[ALC269_MODEL_LAST] = { |
| 14965 | [ALC269_BASIC] = "basic", | 14965 | [ALC269_BASIC] = "basic", |
| 14966 | [ALC269_QUANTA_FL1] = "quanta", | 14966 | [ALC269_QUANTA_FL1] = "quanta", |
| 14967 | [ALC269_AMIC] = "laptop-amic", | 14967 | [ALC269_AMIC] = "laptop-amic", |
| @@ -16004,7 +16004,7 @@ static int alc861_auto_create_multi_out_ctls(struct hda_codec *codec, | |||
| 16004 | const struct auto_pin_cfg *cfg) | 16004 | const struct auto_pin_cfg *cfg) |
| 16005 | { | 16005 | { |
| 16006 | struct alc_spec *spec = codec->spec; | 16006 | struct alc_spec *spec = codec->spec; |
| 16007 | static const char *chname[4] = { | 16007 | static const char * const chname[4] = { |
| 16008 | "Front", "Surround", NULL /*CLFE*/, "Side" | 16008 | "Front", "Surround", NULL /*CLFE*/, "Side" |
| 16009 | }; | 16009 | }; |
| 16010 | const char *pfx = alc_get_line_out_pfx(cfg, true); | 16010 | const char *pfx = alc_get_line_out_pfx(cfg, true); |
| @@ -16210,7 +16210,7 @@ static struct hda_amp_list alc861_loopbacks[] = { | |||
| 16210 | /* | 16210 | /* |
| 16211 | * configuration and preset | 16211 | * configuration and preset |
| 16212 | */ | 16212 | */ |
| 16213 | static const char *alc861_models[ALC861_MODEL_LAST] = { | 16213 | static const char * const alc861_models[ALC861_MODEL_LAST] = { |
| 16214 | [ALC861_3ST] = "3stack", | 16214 | [ALC861_3ST] = "3stack", |
| 16215 | [ALC660_3ST] = "3stack-660", | 16215 | [ALC660_3ST] = "3stack-660", |
| 16216 | [ALC861_3ST_DIG] = "3stack-dig", | 16216 | [ALC861_3ST_DIG] = "3stack-dig", |
| @@ -16913,7 +16913,7 @@ static void alc861vd_dallas_setup(struct hda_codec *codec) | |||
| 16913 | /* | 16913 | /* |
| 16914 | * configuration and preset | 16914 | * configuration and preset |
| 16915 | */ | 16915 | */ |
| 16916 | static const char *alc861vd_models[ALC861VD_MODEL_LAST] = { | 16916 | static const char * const alc861vd_models[ALC861VD_MODEL_LAST] = { |
| 16917 | [ALC660VD_3ST] = "3stack-660", | 16917 | [ALC660VD_3ST] = "3stack-660", |
| 16918 | [ALC660VD_3ST_DIG] = "3stack-660-digout", | 16918 | [ALC660VD_3ST_DIG] = "3stack-660-digout", |
| 16919 | [ALC660VD_ASUS_V1S] = "asus-v1s", | 16919 | [ALC660VD_ASUS_V1S] = "asus-v1s", |
| @@ -17133,7 +17133,9 @@ static void alc861vd_auto_init_analog_input(struct hda_codec *codec) | |||
| 17133 | static int alc861vd_auto_create_multi_out_ctls(struct alc_spec *spec, | 17133 | static int alc861vd_auto_create_multi_out_ctls(struct alc_spec *spec, |
| 17134 | const struct auto_pin_cfg *cfg) | 17134 | const struct auto_pin_cfg *cfg) |
| 17135 | { | 17135 | { |
| 17136 | static const char *chname[4] = {"Front", "Surround", "CLFE", "Side"}; | 17136 | static const char * const chname[4] = { |
| 17137 | "Front", "Surround", "CLFE", "Side" | ||
| 17138 | }; | ||
| 17137 | const char *pfx = alc_get_line_out_pfx(cfg, true); | 17139 | const char *pfx = alc_get_line_out_pfx(cfg, true); |
| 17138 | hda_nid_t nid_v, nid_s; | 17140 | hda_nid_t nid_v, nid_s; |
| 17139 | int i, err; | 17141 | int i, err; |
| @@ -18688,7 +18690,7 @@ static struct snd_kcontrol_new alc272_nc10_mixer[] = { | |||
| 18688 | /* | 18690 | /* |
| 18689 | * configuration and preset | 18691 | * configuration and preset |
| 18690 | */ | 18692 | */ |
| 18691 | static const char *alc662_models[ALC662_MODEL_LAST] = { | 18693 | static const char * const alc662_models[ALC662_MODEL_LAST] = { |
| 18692 | [ALC662_3ST_2ch_DIG] = "3stack-dig", | 18694 | [ALC662_3ST_2ch_DIG] = "3stack-dig", |
| 18693 | [ALC662_3ST_6ch_DIG] = "3stack-6ch-dig", | 18695 | [ALC662_3ST_6ch_DIG] = "3stack-6ch-dig", |
| 18694 | [ALC662_3ST_6ch] = "3stack-6ch", | 18696 | [ALC662_3ST_6ch] = "3stack-6ch", |
| @@ -19203,7 +19205,7 @@ static int alc662_auto_create_multi_out_ctls(struct hda_codec *codec, | |||
| 19203 | const struct auto_pin_cfg *cfg) | 19205 | const struct auto_pin_cfg *cfg) |
| 19204 | { | 19206 | { |
| 19205 | struct alc_spec *spec = codec->spec; | 19207 | struct alc_spec *spec = codec->spec; |
| 19206 | static const char *chname[4] = { | 19208 | static const char * const chname[4] = { |
| 19207 | "Front", "Surround", NULL /*CLFE*/, "Side" | 19209 | "Front", "Surround", NULL /*CLFE*/, "Side" |
| 19208 | }; | 19210 | }; |
| 19209 | const char *pfx = alc_get_line_out_pfx(cfg, true); | 19211 | const char *pfx = alc_get_line_out_pfx(cfg, true); |
| @@ -19978,7 +19980,7 @@ static void alc680_auto_init(struct hda_codec *codec) | |||
| 19978 | /* | 19980 | /* |
| 19979 | * configuration and preset | 19981 | * configuration and preset |
| 19980 | */ | 19982 | */ |
| 19981 | static const char *alc680_models[ALC680_MODEL_LAST] = { | 19983 | static const char * const alc680_models[ALC680_MODEL_LAST] = { |
| 19982 | [ALC680_BASE] = "base", | 19984 | [ALC680_BASE] = "base", |
| 19983 | [ALC680_AUTO] = "auto", | 19985 | [ALC680_AUTO] = "auto", |
| 19984 | }; | 19986 | }; |
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 4ab019d0924e..056f52df68cd 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
| @@ -266,7 +266,7 @@ struct sigmatel_spec { | |||
| 266 | struct sigmatel_mic_route int_mic; | 266 | struct sigmatel_mic_route int_mic; |
| 267 | struct sigmatel_mic_route dock_mic; | 267 | struct sigmatel_mic_route dock_mic; |
| 268 | 268 | ||
| 269 | const char **spdif_labels; | 269 | const char * const *spdif_labels; |
| 270 | 270 | ||
| 271 | hda_nid_t dig_in_nid; | 271 | hda_nid_t dig_in_nid; |
| 272 | hda_nid_t mono_nid; | 272 | hda_nid_t mono_nid; |
| @@ -524,7 +524,7 @@ static unsigned long stac927x_capsws[] = { | |||
| 524 | HDA_COMPOSE_AMP_VAL(0x1d, 3, 0, HDA_OUTPUT), | 524 | HDA_COMPOSE_AMP_VAL(0x1d, 3, 0, HDA_OUTPUT), |
| 525 | }; | 525 | }; |
| 526 | 526 | ||
| 527 | static const char *stac927x_spdif_labels[5] = { | 527 | static const char * const stac927x_spdif_labels[5] = { |
| 528 | "Digital Playback", "ADAT", "Analog Mux 1", | 528 | "Digital Playback", "ADAT", "Analog Mux 1", |
| 529 | "Analog Mux 2", "Analog Mux 3" | 529 | "Analog Mux 2", "Analog Mux 3" |
| 530 | }; | 530 | }; |
| @@ -1062,7 +1062,7 @@ static struct snd_kcontrol_new stac_smux_mixer = { | |||
| 1062 | .put = stac92xx_smux_enum_put, | 1062 | .put = stac92xx_smux_enum_put, |
| 1063 | }; | 1063 | }; |
| 1064 | 1064 | ||
| 1065 | static const char *slave_vols[] = { | 1065 | static const char * const slave_vols[] = { |
| 1066 | "Front Playback Volume", | 1066 | "Front Playback Volume", |
| 1067 | "Surround Playback Volume", | 1067 | "Surround Playback Volume", |
| 1068 | "Center Playback Volume", | 1068 | "Center Playback Volume", |
| @@ -1073,7 +1073,7 @@ static const char *slave_vols[] = { | |||
| 1073 | NULL | 1073 | NULL |
| 1074 | }; | 1074 | }; |
| 1075 | 1075 | ||
| 1076 | static const char *slave_sws[] = { | 1076 | static const char * const slave_sws[] = { |
| 1077 | "Front Playback Switch", | 1077 | "Front Playback Switch", |
| 1078 | "Surround Playback Switch", | 1078 | "Surround Playback Switch", |
| 1079 | "Center Playback Switch", | 1079 | "Center Playback Switch", |
| @@ -1354,7 +1354,7 @@ static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = { | |||
| 1354 | [STAC_9200_PANASONIC] = ref9200_pin_configs, | 1354 | [STAC_9200_PANASONIC] = ref9200_pin_configs, |
| 1355 | }; | 1355 | }; |
| 1356 | 1356 | ||
| 1357 | static const char *stac9200_models[STAC_9200_MODELS] = { | 1357 | static const char * const stac9200_models[STAC_9200_MODELS] = { |
| 1358 | [STAC_AUTO] = "auto", | 1358 | [STAC_AUTO] = "auto", |
| 1359 | [STAC_REF] = "ref", | 1359 | [STAC_REF] = "ref", |
| 1360 | [STAC_9200_OQO] = "oqo", | 1360 | [STAC_9200_OQO] = "oqo", |
| @@ -1500,7 +1500,7 @@ static unsigned int *stac925x_brd_tbl[STAC_925x_MODELS] = { | |||
| 1500 | [STAC_M6] = stac925xM6_pin_configs, | 1500 | [STAC_M6] = stac925xM6_pin_configs, |
| 1501 | }; | 1501 | }; |
| 1502 | 1502 | ||
| 1503 | static const char *stac925x_models[STAC_925x_MODELS] = { | 1503 | static const char * const stac925x_models[STAC_925x_MODELS] = { |
| 1504 | [STAC_925x_AUTO] = "auto", | 1504 | [STAC_925x_AUTO] = "auto", |
| 1505 | [STAC_REF] = "ref", | 1505 | [STAC_REF] = "ref", |
| 1506 | [STAC_M1] = "m1", | 1506 | [STAC_M1] = "m1", |
| @@ -1574,7 +1574,7 @@ static unsigned int *stac92hd73xx_brd_tbl[STAC_92HD73XX_MODELS] = { | |||
| 1574 | [STAC_92HD73XX_INTEL] = intel_dg45id_pin_configs, | 1574 | [STAC_92HD73XX_INTEL] = intel_dg45id_pin_configs, |
| 1575 | }; | 1575 | }; |
| 1576 | 1576 | ||
| 1577 | static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS] = { | 1577 | static const char * const stac92hd73xx_models[STAC_92HD73XX_MODELS] = { |
| 1578 | [STAC_92HD73XX_AUTO] = "auto", | 1578 | [STAC_92HD73XX_AUTO] = "auto", |
| 1579 | [STAC_92HD73XX_NO_JD] = "no-jd", | 1579 | [STAC_92HD73XX_NO_JD] = "no-jd", |
| 1580 | [STAC_92HD73XX_REF] = "ref", | 1580 | [STAC_92HD73XX_REF] = "ref", |
| @@ -1660,7 +1660,7 @@ static unsigned int *stac92hd83xxx_brd_tbl[STAC_92HD83XXX_MODELS] = { | |||
| 1660 | [STAC_HP_DV7_4000] = hp_dv7_4000_pin_configs, | 1660 | [STAC_HP_DV7_4000] = hp_dv7_4000_pin_configs, |
| 1661 | }; | 1661 | }; |
| 1662 | 1662 | ||
| 1663 | static const char *stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { | 1663 | static const char * const stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { |
| 1664 | [STAC_92HD83XXX_AUTO] = "auto", | 1664 | [STAC_92HD83XXX_AUTO] = "auto", |
| 1665 | [STAC_92HD83XXX_REF] = "ref", | 1665 | [STAC_92HD83XXX_REF] = "ref", |
| 1666 | [STAC_92HD83XXX_PWR_REF] = "mic-ref", | 1666 | [STAC_92HD83XXX_PWR_REF] = "mic-ref", |
| @@ -1722,7 +1722,7 @@ static unsigned int *stac92hd71bxx_brd_tbl[STAC_92HD71BXX_MODELS] = { | |||
| 1722 | [STAC_HP_DV4_1222NR] = NULL, | 1722 | [STAC_HP_DV4_1222NR] = NULL, |
| 1723 | }; | 1723 | }; |
| 1724 | 1724 | ||
| 1725 | static const char *stac92hd71bxx_models[STAC_92HD71BXX_MODELS] = { | 1725 | static const char * const stac92hd71bxx_models[STAC_92HD71BXX_MODELS] = { |
| 1726 | [STAC_92HD71BXX_AUTO] = "auto", | 1726 | [STAC_92HD71BXX_AUTO] = "auto", |
| 1727 | [STAC_92HD71BXX_REF] = "ref", | 1727 | [STAC_92HD71BXX_REF] = "ref", |
| 1728 | [STAC_DELL_M4_1] = "dell-m4-1", | 1728 | [STAC_DELL_M4_1] = "dell-m4-1", |
| @@ -1915,7 +1915,7 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = { | |||
| 1915 | [STAC_922X_DELL_M82] = dell_922x_m82_pin_configs, | 1915 | [STAC_922X_DELL_M82] = dell_922x_m82_pin_configs, |
| 1916 | }; | 1916 | }; |
| 1917 | 1917 | ||
| 1918 | static const char *stac922x_models[STAC_922X_MODELS] = { | 1918 | static const char * const stac922x_models[STAC_922X_MODELS] = { |
| 1919 | [STAC_922X_AUTO] = "auto", | 1919 | [STAC_922X_AUTO] = "auto", |
| 1920 | [STAC_D945_REF] = "ref", | 1920 | [STAC_D945_REF] = "ref", |
| 1921 | [STAC_D945GTP5] = "5stack", | 1921 | [STAC_D945GTP5] = "5stack", |
| @@ -2077,7 +2077,7 @@ static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = { | |||
| 2077 | [STAC_927X_VOLKNOB] = NULL, | 2077 | [STAC_927X_VOLKNOB] = NULL, |
| 2078 | }; | 2078 | }; |
| 2079 | 2079 | ||
| 2080 | static const char *stac927x_models[STAC_927X_MODELS] = { | 2080 | static const char * const stac927x_models[STAC_927X_MODELS] = { |
| 2081 | [STAC_927X_AUTO] = "auto", | 2081 | [STAC_927X_AUTO] = "auto", |
| 2082 | [STAC_D965_REF_NO_JD] = "ref-no-jd", | 2082 | [STAC_D965_REF_NO_JD] = "ref-no-jd", |
| 2083 | [STAC_D965_REF] = "ref", | 2083 | [STAC_D965_REF] = "ref", |
| @@ -2180,7 +2180,7 @@ static unsigned int *stac9205_brd_tbl[STAC_9205_MODELS] = { | |||
| 2180 | [STAC_9205_EAPD] = NULL, | 2180 | [STAC_9205_EAPD] = NULL, |
| 2181 | }; | 2181 | }; |
| 2182 | 2182 | ||
| 2183 | static const char *stac9205_models[STAC_9205_MODELS] = { | 2183 | static const char * const stac9205_models[STAC_9205_MODELS] = { |
| 2184 | [STAC_9205_AUTO] = "auto", | 2184 | [STAC_9205_AUTO] = "auto", |
| 2185 | [STAC_9205_REF] = "ref", | 2185 | [STAC_9205_REF] = "ref", |
| 2186 | [STAC_9205_DELL_M42] = "dell-m42", | 2186 | [STAC_9205_DELL_M42] = "dell-m42", |
| @@ -3123,7 +3123,7 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs, | |||
| 3123 | int type) | 3123 | int type) |
| 3124 | { | 3124 | { |
| 3125 | struct sigmatel_spec *spec = codec->spec; | 3125 | struct sigmatel_spec *spec = codec->spec; |
| 3126 | static const char *chname[4] = { | 3126 | static const char * const chname[4] = { |
| 3127 | "Front", "Surround", NULL /*CLFE*/, "Side" | 3127 | "Front", "Surround", NULL /*CLFE*/, "Side" |
| 3128 | }; | 3128 | }; |
| 3129 | hda_nid_t nid; | 3129 | hda_nid_t nid; |
| @@ -3256,7 +3256,7 @@ static int stac92xx_auto_create_hp_ctls(struct hda_codec *codec, | |||
| 3256 | } | 3256 | } |
| 3257 | 3257 | ||
| 3258 | /* labels for mono mux outputs */ | 3258 | /* labels for mono mux outputs */ |
| 3259 | static const char *stac92xx_mono_labels[4] = { | 3259 | static const char * const stac92xx_mono_labels[4] = { |
| 3260 | "DAC0", "DAC1", "Mixer", "DAC2" | 3260 | "DAC0", "DAC1", "Mixer", "DAC2" |
| 3261 | }; | 3261 | }; |
| 3262 | 3262 | ||
| @@ -3380,7 +3380,7 @@ static int stac92xx_auto_create_mux_input_ctls(struct hda_codec *codec) | |||
| 3380 | return 0; | 3380 | return 0; |
| 3381 | }; | 3381 | }; |
| 3382 | 3382 | ||
| 3383 | static const char *stac92xx_spdif_labels[3] = { | 3383 | static const char * const stac92xx_spdif_labels[3] = { |
| 3384 | "Digital Playback", "Analog Mux 1", "Analog Mux 2", | 3384 | "Digital Playback", "Analog Mux 1", "Analog Mux 2", |
| 3385 | }; | 3385 | }; |
| 3386 | 3386 | ||
| @@ -3388,7 +3388,7 @@ static int stac92xx_auto_create_spdif_mux_ctls(struct hda_codec *codec) | |||
| 3388 | { | 3388 | { |
| 3389 | struct sigmatel_spec *spec = codec->spec; | 3389 | struct sigmatel_spec *spec = codec->spec; |
| 3390 | struct hda_input_mux *spdif_mux = &spec->private_smux; | 3390 | struct hda_input_mux *spdif_mux = &spec->private_smux; |
| 3391 | const char **labels = spec->spdif_labels; | 3391 | const char * const *labels = spec->spdif_labels; |
| 3392 | int i, num_cons; | 3392 | int i, num_cons; |
| 3393 | hda_nid_t con_lst[HDA_MAX_NUM_INPUTS]; | 3393 | hda_nid_t con_lst[HDA_MAX_NUM_INPUTS]; |
| 3394 | 3394 | ||
| @@ -3409,7 +3409,7 @@ static int stac92xx_auto_create_spdif_mux_ctls(struct hda_codec *codec) | |||
| 3409 | } | 3409 | } |
| 3410 | 3410 | ||
| 3411 | /* labels for dmic mux inputs */ | 3411 | /* labels for dmic mux inputs */ |
| 3412 | static const char *stac92xx_dmic_labels[5] = { | 3412 | static const char * const stac92xx_dmic_labels[5] = { |
| 3413 | "Analog Inputs", "Digital Mic 1", "Digital Mic 2", | 3413 | "Analog Inputs", "Digital Mic 1", "Digital Mic 2", |
| 3414 | "Digital Mic 3", "Digital Mic 4" | 3414 | "Digital Mic 3", "Digital Mic 4" |
| 3415 | }; | 3415 | }; |
| @@ -6270,7 +6270,7 @@ static unsigned int stac9872_vaio_pin_configs[9] = { | |||
| 6270 | 0x90a7013e | 6270 | 0x90a7013e |
| 6271 | }; | 6271 | }; |
| 6272 | 6272 | ||
| 6273 | static const char *stac9872_models[STAC_9872_MODELS] = { | 6273 | static const char * const stac9872_models[STAC_9872_MODELS] = { |
| 6274 | [STAC_9872_AUTO] = "auto", | 6274 | [STAC_9872_AUTO] = "auto", |
| 6275 | [STAC_9872_VAIO] = "vaio", | 6275 | [STAC_9872_VAIO] = "vaio", |
| 6276 | }; | 6276 | }; |
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index d1c3f8defc48..71f78456d682 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
| @@ -2282,7 +2282,9 @@ static int vt1708_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 2282 | const struct auto_pin_cfg *cfg) | 2282 | const struct auto_pin_cfg *cfg) |
| 2283 | { | 2283 | { |
| 2284 | char name[32]; | 2284 | char name[32]; |
| 2285 | static const char *chname[4] = { "Front", "Surround", "C/LFE", "Side" }; | 2285 | static const char * const chname[4] = { |
| 2286 | "Front", "Surround", "C/LFE", "Side" | ||
| 2287 | }; | ||
| 2286 | hda_nid_t nid, nid_vol, nid_vols[] = {0x17, 0x19, 0x1a, 0x1b}; | 2288 | hda_nid_t nid, nid_vol, nid_vols[] = {0x17, 0x19, 0x1a, 0x1b}; |
| 2287 | int i, err; | 2289 | int i, err; |
| 2288 | 2290 | ||
| @@ -2371,7 +2373,7 @@ static void create_hp_imux(struct via_spec *spec) | |||
| 2371 | { | 2373 | { |
| 2372 | int i; | 2374 | int i; |
| 2373 | struct hda_input_mux *imux = &spec->private_imux[1]; | 2375 | struct hda_input_mux *imux = &spec->private_imux[1]; |
| 2374 | static const char *texts[] = { "OFF", "ON", NULL}; | 2376 | static const char * const texts[] = { "OFF", "ON", NULL}; |
| 2375 | 2377 | ||
| 2376 | /* for hp mode select */ | 2378 | /* for hp mode select */ |
| 2377 | for (i = 0; texts[i]; i++) | 2379 | for (i = 0; texts[i]; i++) |
| @@ -2891,7 +2893,9 @@ static int vt1709_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 2891 | const struct auto_pin_cfg *cfg) | 2893 | const struct auto_pin_cfg *cfg) |
| 2892 | { | 2894 | { |
| 2893 | char name[32]; | 2895 | char name[32]; |
| 2894 | static const char *chname[4] = { "Front", "Surround", "C/LFE", "Side" }; | 2896 | static const char * const chname[4] = { |
| 2897 | "Front", "Surround", "C/LFE", "Side" | ||
| 2898 | }; | ||
| 2895 | hda_nid_t nid, nid_vol, nid_vols[] = {0x18, 0x1a, 0x1b, 0x29}; | 2899 | hda_nid_t nid, nid_vol, nid_vols[] = {0x18, 0x1a, 0x1b, 0x29}; |
| 2896 | int i, err; | 2900 | int i, err; |
| 2897 | 2901 | ||
| @@ -3434,7 +3438,9 @@ static int vt1708B_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 3434 | const struct auto_pin_cfg *cfg) | 3438 | const struct auto_pin_cfg *cfg) |
| 3435 | { | 3439 | { |
| 3436 | char name[32]; | 3440 | char name[32]; |
| 3437 | static const char *chname[4] = { "Front", "Surround", "C/LFE", "Side" }; | 3441 | static const char * const chname[4] = { |
| 3442 | "Front", "Surround", "C/LFE", "Side" | ||
| 3443 | }; | ||
| 3438 | hda_nid_t nid_vols[] = {0x16, 0x18, 0x26, 0x27}; | 3444 | hda_nid_t nid_vols[] = {0x16, 0x18, 0x26, 0x27}; |
| 3439 | hda_nid_t nid, nid_vol = 0; | 3445 | hda_nid_t nid, nid_vol = 0; |
| 3440 | int i, err; | 3446 | int i, err; |
| @@ -3862,7 +3868,9 @@ static int vt1708S_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 3862 | const struct auto_pin_cfg *cfg) | 3868 | const struct auto_pin_cfg *cfg) |
| 3863 | { | 3869 | { |
| 3864 | char name[32]; | 3870 | char name[32]; |
| 3865 | static const char *chname[4] = { "Front", "Surround", "C/LFE", "Side" }; | 3871 | static const char * const chname[4] = { |
| 3872 | "Front", "Surround", "C/LFE", "Side" | ||
| 3873 | }; | ||
| 3866 | hda_nid_t nid_vols[] = {0x10, 0x11, 0x24, 0x25}; | 3874 | hda_nid_t nid_vols[] = {0x10, 0x11, 0x24, 0x25}; |
| 3867 | hda_nid_t nid_mutes[] = {0x1C, 0x18, 0x26, 0x27}; | 3875 | hda_nid_t nid_mutes[] = {0x1C, 0x18, 0x26, 0x27}; |
| 3868 | hda_nid_t nid, nid_vol, nid_mute; | 3876 | hda_nid_t nid, nid_vol, nid_mute; |
| @@ -4305,7 +4313,7 @@ static int vt1702_auto_create_hp_ctls(struct via_spec *spec, hda_nid_t pin) | |||
| 4305 | { | 4313 | { |
| 4306 | int err, i; | 4314 | int err, i; |
| 4307 | struct hda_input_mux *imux; | 4315 | struct hda_input_mux *imux; |
| 4308 | static const char *texts[] = { "ON", "OFF", NULL}; | 4316 | static const char * const texts[] = { "ON", "OFF", NULL}; |
| 4309 | if (!pin) | 4317 | if (!pin) |
| 4310 | return 0; | 4318 | return 0; |
| 4311 | spec->multiout.hp_nid = 0x1D; | 4319 | spec->multiout.hp_nid = 0x1D; |
| @@ -4616,7 +4624,9 @@ static int vt1718S_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 4616 | const struct auto_pin_cfg *cfg) | 4624 | const struct auto_pin_cfg *cfg) |
| 4617 | { | 4625 | { |
| 4618 | char name[32]; | 4626 | char name[32]; |
| 4619 | static const char *chname[4] = { "Front", "Surround", "C/LFE", "Side" }; | 4627 | static const char * const chname[4] = { |
| 4628 | "Front", "Surround", "C/LFE", "Side" | ||
| 4629 | }; | ||
| 4620 | hda_nid_t nid_vols[] = {0x8, 0x9, 0xa, 0xb}; | 4630 | hda_nid_t nid_vols[] = {0x8, 0x9, 0xa, 0xb}; |
| 4621 | hda_nid_t nid_mutes[] = {0x24, 0x25, 0x26, 0x27}; | 4631 | hda_nid_t nid_mutes[] = {0x24, 0x25, 0x26, 0x27}; |
| 4622 | hda_nid_t nid, nid_vol, nid_mute = 0; | 4632 | hda_nid_t nid, nid_vol, nid_mute = 0; |
| @@ -5065,7 +5075,9 @@ static int vt1716S_auto_create_multi_out_ctls(struct via_spec *spec, | |||
| 5065 | const struct auto_pin_cfg *cfg) | 5075 | const struct auto_pin_cfg *cfg) |
| 5066 | { | 5076 | { |
| 5067 | char name[32]; | 5077 | char name[32]; |
| 5068 | static const char *chname[3] = { "Front", "Surround", "C/LFE" }; | 5078 | static const char * const chname[3] = { |
| 5079 | "Front", "Surround", "C/LFE" | ||
| 5080 | }; | ||
| 5069 | hda_nid_t nid_vols[] = {0x10, 0x11, 0x25}; | 5081 | hda_nid_t nid_vols[] = {0x10, 0x11, 0x25}; |
| 5070 | hda_nid_t nid_mutes[] = {0x1C, 0x18, 0x27}; | 5082 | hda_nid_t nid_mutes[] = {0x1C, 0x18, 0x27}; |
| 5071 | hda_nid_t nid, nid_vol, nid_mute; | 5083 | hda_nid_t nid, nid_vol, nid_mute; |
