aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r--sound/pci/hda/patch_analog.c30
1 files changed, 16 insertions, 14 deletions
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
136static const char *ad_slave_vols[] = { 136static 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
149static const char *ad_slave_sws[] = { 149static 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
162static const char *ad1988_6stack_fp_slave_vols[] = { 162static 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
172static const char *ad1988_6stack_fp_slave_sws[] = { 172static 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
1137static const char *ad1986a_models[AD1986A_MODELS] = { 1137static 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
1881static const char *ad1981_models[AD1981_MODELS] = { 1881static 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
3241static const char *ad1988_models[AD1988_MODEL_LAST] = { 3243static 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
3576static const char *ad1884_slave_vols[] = { 3578static 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
3814static const char *ad1984_models[AD1984_MODELS] = { 3816static 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
4485static const char *ad1884a_models[AD1884A_MODELS] = { 4487static 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
4873static const char *ad1882_models[AD1986A_MODELS] = { 4875static 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};