aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-10-17 03:21:48 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-17 03:23:51 -0400
commita2af050f8df6eeec29818639859f14eb237d6957 (patch)
tree01dcad35cafbeefc951a68dd0c0f51ecf396ad3a /sound/pci/ice1712
parent77b0b254af72add59c8125cd8799f390bc508f2b (diff)
ALSA: ice17xx: Constify strings and string arrays
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712')
-rw-r--r--sound/pci/ice1712/aureon.c3
-rw-r--r--sound/pci/ice1712/ews.c4
-rw-r--r--sound/pci/ice1712/ice1712.h8
-rw-r--r--sound/pci/ice1712/ice1724.c6
-rw-r--r--sound/pci/ice1712/juli.c3
-rw-r--r--sound/pci/ice1712/maya44.c4
-rw-r--r--sound/pci/ice1712/phase.c2
-rw-r--r--sound/pci/ice1712/prodigy192.c4
-rw-r--r--sound/pci/ice1712/psc724.c44
-rw-r--r--sound/pci/ice1712/quartet.c9
-rw-r--r--sound/pci/ice1712/se.c10
-rw-r--r--sound/pci/ice1712/wm8766.h2
-rw-r--r--sound/pci/ice1712/wm8776.c3
-rw-r--r--sound/pci/ice1712/wm8776.h2
14 files changed, 54 insertions, 50 deletions
diff --git a/sound/pci/ice1712/aureon.c b/sound/pci/ice1712/aureon.c
index 20bcddea2eab..2d6bf80cb060 100644
--- a/sound/pci/ice1712/aureon.c
+++ b/sound/pci/ice1712/aureon.c
@@ -203,7 +203,8 @@ static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
203static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, 203static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol,
204 struct snd_ctl_elem_info *uinfo) 204 struct snd_ctl_elem_info *uinfo)
205{ 205{
206 char *texts[3] = {"Internal Aux", "Wavetable", "Rear Line-In"}; 206 static const char * const texts[3] =
207 {"Internal Aux", "Wavetable", "Rear Line-In"};
207 208
208 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 209 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
209 uinfo->count = 1; 210 uinfo->count = 1;
diff --git a/sound/pci/ice1712/ews.c b/sound/pci/ice1712/ews.c
index 6fe35b812040..0b470841ed02 100644
--- a/sound/pci/ice1712/ews.c
+++ b/sound/pci/ice1712/ews.c
@@ -576,7 +576,7 @@ static int __devinit snd_ice1712_ews_init(struct snd_ice1712 *ice)
576/* i/o sensitivity - this callback is shared among other devices, too */ 576/* i/o sensitivity - this callback is shared among other devices, too */
577static int snd_ice1712_ewx_io_sense_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo){ 577static int snd_ice1712_ewx_io_sense_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo){
578 578
579 static char *texts[2] = { 579 static const char * const texts[2] = {
580 "+4dBu", "-10dBV", 580 "+4dBu", "-10dBV",
581 }; 581 };
582 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 582 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
@@ -899,7 +899,7 @@ static int snd_ice1712_6fire_control_put(struct snd_kcontrol *kcontrol, struct s
899 899
900static int snd_ice1712_6fire_select_input_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) 900static int snd_ice1712_6fire_select_input_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
901{ 901{
902 static char *texts[4] = { 902 static const char * const texts[4] = {
903 "Internal", "Front Input", "Rear Input", "Wave Table" 903 "Internal", "Front Input", "Rear Input", "Wave Table"
904 }; 904 };
905 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 905 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h
index 5149568b8fc1..e8b7c5ecfe00 100644
--- a/sound/pci/ice1712/ice1712.h
+++ b/sound/pci/ice1712/ice1712.h
@@ -383,7 +383,7 @@ struct snd_ice1712 {
383 unsigned char (*set_mclk)(struct snd_ice1712 *ice, unsigned int rate); 383 unsigned char (*set_mclk)(struct snd_ice1712 *ice, unsigned int rate);
384 int (*set_spdif_clock)(struct snd_ice1712 *ice, int type); 384 int (*set_spdif_clock)(struct snd_ice1712 *ice, int type);
385 int (*get_spdif_master_type)(struct snd_ice1712 *ice); 385 int (*get_spdif_master_type)(struct snd_ice1712 *ice);
386 char **ext_clock_names; 386 const char * const *ext_clock_names;
387 int ext_clock_count; 387 int ext_clock_count;
388 void (*pro_open)(struct snd_ice1712 *, struct snd_pcm_substream *); 388 void (*pro_open)(struct snd_ice1712 *, struct snd_pcm_substream *);
389#ifdef CONFIG_PM_SLEEP 389#ifdef CONFIG_PM_SLEEP
@@ -515,9 +515,9 @@ static inline u8 snd_ice1712_read(struct snd_ice1712 *ice, u8 addr)
515 515
516struct snd_ice1712_card_info { 516struct snd_ice1712_card_info {
517 unsigned int subvendor; 517 unsigned int subvendor;
518 char *name; 518 const char *name;
519 char *model; 519 const char *model;
520 char *driver; 520 const char *driver;
521 int (*chip_init)(struct snd_ice1712 *); 521 int (*chip_init)(struct snd_ice1712 *);
522 void (*chip_exit)(struct snd_ice1712 *); 522 void (*chip_exit)(struct snd_ice1712 *);
523 int (*build_controls)(struct snd_ice1712 *); 523 int (*build_controls)(struct snd_ice1712 *);
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c
index 161c8f6924dc..e7369f4cca76 100644
--- a/sound/pci/ice1712/ice1724.c
+++ b/sound/pci/ice1712/ice1724.c
@@ -107,7 +107,7 @@ static int PRO_RATE_LOCKED;
107static int PRO_RATE_RESET = 1; 107static int PRO_RATE_RESET = 1;
108static unsigned int PRO_RATE_DEFAULT = 44100; 108static unsigned int PRO_RATE_DEFAULT = 44100;
109 109
110static char *ext_clock_names[1] = { "IEC958 In" }; 110static const char * const ext_clock_names[1] = { "IEC958 In" };
111 111
112/* 112/*
113 * Basic I/O 113 * Basic I/O
@@ -2043,7 +2043,7 @@ static struct snd_kcontrol_new snd_vt1724_pro_rate_reset __devinitdata = {
2043static int snd_vt1724_pro_route_info(struct snd_kcontrol *kcontrol, 2043static int snd_vt1724_pro_route_info(struct snd_kcontrol *kcontrol,
2044 struct snd_ctl_elem_info *uinfo) 2044 struct snd_ctl_elem_info *uinfo)
2045{ 2045{
2046 static char *texts[] = { 2046 static const char * const texts[] = {
2047 "PCM Out", /* 0 */ 2047 "PCM Out", /* 0 */
2048 "H/W In 0", "H/W In 1", /* 1-2 */ 2048 "H/W In 0", "H/W In 1", /* 1-2 */
2049 "IEC958 In L", "IEC958 In R", /* 3-4 */ 2049 "IEC958 In L", "IEC958 In R", /* 3-4 */
@@ -2233,7 +2233,7 @@ static unsigned char ooaoo_sq210_eeprom[] __devinitdata = {
2233}; 2233};
2234 2234
2235 2235
2236struct snd_ice1712_card_info snd_vt1724_ooaoo_cards[] __devinitdata = { 2236static struct snd_ice1712_card_info snd_vt1724_ooaoo_cards[] __devinitdata = {
2237 { 2237 {
2238 .name = "ooAoo SQ210a", 2238 .name = "ooAoo SQ210a",
2239 .model = "sq210a", 2239 .model = "sq210a",
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c
index 14fd536b6452..e6047491ff16 100644
--- a/sound/pci/ice1712/juli.c
+++ b/sound/pci/ice1712/juli.c
@@ -435,7 +435,8 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
435} 435}
436 436
437static void __devinit add_slaves(struct snd_card *card, 437static void __devinit add_slaves(struct snd_card *card,
438 struct snd_kcontrol *master, char **list) 438 struct snd_kcontrol *master,
439 char * const *list)
439{ 440{
440 for (; *list; list++) { 441 for (; *list; list++) {
441 struct snd_kcontrol *slave = ctl_find(card, *list); 442 struct snd_kcontrol *slave = ctl_find(card, *list);
diff --git a/sound/pci/ice1712/maya44.c b/sound/pci/ice1712/maya44.c
index 726fd4b92e19..9729c322115c 100644
--- a/sound/pci/ice1712/maya44.c
+++ b/sound/pci/ice1712/maya44.c
@@ -358,7 +358,7 @@ static void wm8776_select_input(struct snd_maya44 *chip, int idx, int line)
358static int maya_rec_src_info(struct snd_kcontrol *kcontrol, 358static int maya_rec_src_info(struct snd_kcontrol *kcontrol,
359 struct snd_ctl_elem_info *uinfo) 359 struct snd_ctl_elem_info *uinfo)
360{ 360{
361 static char *texts[] = { "Line", "Mic" }; 361 static const char * const texts[] = { "Line", "Mic" };
362 362
363 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 363 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
364 uinfo->count = 1; 364 uinfo->count = 1;
@@ -407,7 +407,7 @@ static int maya_rec_src_put(struct snd_kcontrol *kcontrol,
407static int maya_pb_route_info(struct snd_kcontrol *kcontrol, 407static int maya_pb_route_info(struct snd_kcontrol *kcontrol,
408 struct snd_ctl_elem_info *uinfo) 408 struct snd_ctl_elem_info *uinfo)
409{ 409{
410 static char *texts[] = { 410 static const char * const texts[] = {
411 "PCM Out", /* 0 */ 411 "PCM Out", /* 0 */
412 "Input 1", "Input 2", "Input 3", "Input 4" 412 "Input 1", "Input 2", "Input 3", "Input 4"
413 }; 413 };
diff --git a/sound/pci/ice1712/phase.c b/sound/pci/ice1712/phase.c
index de29be8c9657..79204e20266e 100644
--- a/sound/pci/ice1712/phase.c
+++ b/sound/pci/ice1712/phase.c
@@ -722,7 +722,7 @@ static int phase28_deemp_put(struct snd_kcontrol *kcontrol,
722static int phase28_oversampling_info(struct snd_kcontrol *k, 722static int phase28_oversampling_info(struct snd_kcontrol *k,
723 struct snd_ctl_elem_info *uinfo) 723 struct snd_ctl_elem_info *uinfo)
724{ 724{
725 static char *texts[2] = { "128x", "64x" }; 725 static const char * const texts[2] = { "128x", "64x" };
726 726
727 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 727 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
728 uinfo->count = 1; 728 uinfo->count = 1;
diff --git a/sound/pci/ice1712/prodigy192.c b/sound/pci/ice1712/prodigy192.c
index e36ddb94c382..fd739c4c9cf1 100644
--- a/sound/pci/ice1712/prodigy192.c
+++ b/sound/pci/ice1712/prodigy192.c
@@ -283,7 +283,7 @@ static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
283static int stac9460_mic_sw_info(struct snd_kcontrol *kcontrol, 283static int stac9460_mic_sw_info(struct snd_kcontrol *kcontrol,
284 struct snd_ctl_elem_info *uinfo) 284 struct snd_ctl_elem_info *uinfo)
285{ 285{
286 static char *texts[2] = { "Line In", "Mic" }; 286 static const char * const texts[2] = { "Line In", "Mic" };
287 287
288 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 288 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
289 uinfo->count = 1; 289 uinfo->count = 1;
@@ -562,7 +562,7 @@ static unsigned char prodigy192_ak4114_read(void *private_data,
562static int ak4114_input_sw_info(struct snd_kcontrol *kcontrol, 562static int ak4114_input_sw_info(struct snd_kcontrol *kcontrol,
563 struct snd_ctl_elem_info *uinfo) 563 struct snd_ctl_elem_info *uinfo)
564{ 564{
565 static char *texts[2] = { "Toslink", "Coax" }; 565 static const char * const texts[2] = { "Toslink", "Coax" };
566 566
567 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 567 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
568 uinfo->count = 1; 568 uinfo->count = 1;
diff --git a/sound/pci/ice1712/psc724.c b/sound/pci/ice1712/psc724.c
index 5a4abe77995f..457cbaab0c6e 100644
--- a/sound/pci/ice1712/psc724.c
+++ b/sound/pci/ice1712/psc724.c
@@ -254,7 +254,7 @@ static bool psc724_get_jack_detection(struct snd_ice1712 *ice)
254/* mixer controls */ 254/* mixer controls */
255 255
256struct psc724_control { 256struct psc724_control {
257 char *name; 257 const char *name;
258 void (*set)(struct snd_ice1712 *ice, bool on); 258 void (*set)(struct snd_ice1712 *ice, bool on);
259 bool (*get)(struct snd_ice1712 *ice); 259 bool (*get)(struct snd_ice1712 *ice);
260}; 260};
@@ -294,27 +294,27 @@ static int psc724_ctl_put(struct snd_kcontrol *kcontrol,
294 return 0; 294 return 0;
295} 295}
296 296
297static char *front_volume = "Front Playback Volume"; 297static const char *front_volume = "Front Playback Volume";
298static char *front_switch = "Front Playback Switch"; 298static const char *front_switch = "Front Playback Switch";
299static char *front_zc = "Front Zero Cross Detect Playback Switch"; 299static const char *front_zc = "Front Zero Cross Detect Playback Switch";
300static char *front_izd = "Front Infinite Zero Detect Playback Switch"; 300static const char *front_izd = "Front Infinite Zero Detect Playback Switch";
301static char *front_phase = "Front Phase Invert Playback Switch"; 301static const char *front_phase = "Front Phase Invert Playback Switch";
302static char *front_deemph = "Front Deemphasis Playback Switch"; 302static const char *front_deemph = "Front Deemphasis Playback Switch";
303static char *ain1_switch = "Line Capture Switch"; 303static const char *ain1_switch = "Line Capture Switch";
304static char *ain2_switch = "CD Capture Switch"; 304static const char *ain2_switch = "CD Capture Switch";
305static char *ain3_switch = "AUX Capture Switch"; 305static const char *ain3_switch = "AUX Capture Switch";
306static char *ain4_switch = "Front Mic Capture Switch"; 306static const char *ain4_switch = "Front Mic Capture Switch";
307static char *ain5_switch = "Rear Mic Capture Switch"; 307static const char *ain5_switch = "Rear Mic Capture Switch";
308static char *rear_volume = "Surround Playback Volume"; 308static const char *rear_volume = "Surround Playback Volume";
309static char *clfe_volume = "CLFE Playback Volume"; 309static const char *clfe_volume = "CLFE Playback Volume";
310static char *rear_switch = "Surround Playback Switch"; 310static const char *rear_switch = "Surround Playback Switch";
311static char *clfe_switch = "CLFE Playback Switch"; 311static const char *clfe_switch = "CLFE Playback Switch";
312static char *rear_phase = "Surround Phase Invert Playback Switch"; 312static const char *rear_phase = "Surround Phase Invert Playback Switch";
313static char *clfe_phase = "CLFE Phase Invert Playback Switch"; 313static const char *clfe_phase = "CLFE Phase Invert Playback Switch";
314static char *rear_deemph = "Surround Deemphasis Playback Switch"; 314static const char *rear_deemph = "Surround Deemphasis Playback Switch";
315static char *clfe_deemph = "CLFE Deemphasis Playback Switch"; 315static const char *clfe_deemph = "CLFE Deemphasis Playback Switch";
316static char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch"; 316static const char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch";
317static char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch"; 317static const char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch";
318 318
319static int __devinit psc724_add_controls(struct snd_ice1712 *ice) 319static int __devinit psc724_add_controls(struct snd_ice1712 *ice)
320{ 320{
diff --git a/sound/pci/ice1712/quartet.c b/sound/pci/ice1712/quartet.c
index 1948632787e6..462ef6716754 100644
--- a/sound/pci/ice1712/quartet.c
+++ b/sound/pci/ice1712/quartet.c
@@ -47,7 +47,7 @@ struct qtet_kcontrol_private {
47 unsigned int bit; 47 unsigned int bit;
48 void (*set_register)(struct snd_ice1712 *ice, unsigned int val); 48 void (*set_register)(struct snd_ice1712 *ice, unsigned int val);
49 unsigned int (*get_register)(struct snd_ice1712 *ice); 49 unsigned int (*get_register)(struct snd_ice1712 *ice);
50 unsigned char *texts[2]; 50 unsigned char * const texts[2];
51}; 51};
52 52
53enum { 53enum {
@@ -63,7 +63,7 @@ enum {
63 OUT34_MON12, 63 OUT34_MON12,
64}; 64};
65 65
66static char *ext_clock_names[3] = {"IEC958 In", "Word Clock 1xFS", 66static const char * const ext_clock_names[3] = {"IEC958 In", "Word Clock 1xFS",
67 "Word Clock 256xFS"}; 67 "Word Clock 256xFS"};
68 68
69/* chip address on I2C bus */ 69/* chip address on I2C bus */
@@ -551,7 +551,8 @@ static int qtet_mute_put(struct snd_kcontrol *kcontrol,
551static int qtet_ain12_enum_info(struct snd_kcontrol *kcontrol, 551static int qtet_ain12_enum_info(struct snd_kcontrol *kcontrol,
552 struct snd_ctl_elem_info *uinfo) 552 struct snd_ctl_elem_info *uinfo)
553{ 553{
554 static char *texts[3] = {"Line In 1/2", "Mic", "Mic + Low-cut"}; 554 static const char * const texts[3] =
555 {"Line In 1/2", "Mic", "Mic + Low-cut"};
555 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 556 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
556 uinfo->count = 1; 557 uinfo->count = 1;
557 uinfo->value.enumerated.items = ARRAY_SIZE(texts); 558 uinfo->value.enumerated.items = ARRAY_SIZE(texts);
@@ -816,7 +817,7 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
816} 817}
817 818
818static void __devinit add_slaves(struct snd_card *card, 819static void __devinit add_slaves(struct snd_card *card,
819 struct snd_kcontrol *master, char **list) 820 struct snd_kcontrol *master, char * const *list)
820{ 821{
821 for (; *list; list++) { 822 for (; *list; list++) {
822 struct snd_kcontrol *slave = ctl_find(card, *list); 823 struct snd_kcontrol *slave = ctl_find(card, *list);
diff --git a/sound/pci/ice1712/se.c b/sound/pci/ice1712/se.c
index 69673b95869d..62d0fc90abfb 100644
--- a/sound/pci/ice1712/se.c
+++ b/sound/pci/ice1712/se.c
@@ -253,7 +253,7 @@ static void se200pci_WM8776_set_input_volume(struct snd_ice1712 *ice,
253 se200pci_WM8776_write(ice, 0x0f, vol2 | 0x100); 253 se200pci_WM8776_write(ice, 0x0f, vol2 | 0x100);
254} 254}
255 255
256static const char *se200pci_sel[] = { 256static const char * const se200pci_sel[] = {
257 "LINE-IN", "CD-IN", "MIC-IN", "ALL-MIX", NULL 257 "LINE-IN", "CD-IN", "MIC-IN", "ALL-MIX", NULL
258}; 258};
259 259
@@ -278,7 +278,7 @@ static void se200pci_WM8776_set_afl(struct snd_ice1712 *ice, unsigned int afl)
278 se200pci_WM8776_write(ice, 0x16, 0x001); 278 se200pci_WM8776_write(ice, 0x16, 0x001);
279} 279}
280 280
281static const char *se200pci_agc[] = { 281static const char * const se200pci_agc[] = {
282 "Off", "LimiterMode", "ALCMode", NULL 282 "Off", "LimiterMode", "ALCMode", NULL
283}; 283};
284 284
@@ -352,7 +352,7 @@ static void se200pci_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate)
352} 352}
353 353
354struct se200pci_control { 354struct se200pci_control {
355 char *name; 355 const char *name;
356 enum { 356 enum {
357 WM8766, 357 WM8766,
358 WM8776in, 358 WM8776in,
@@ -363,7 +363,7 @@ struct se200pci_control {
363 } target; 363 } target;
364 enum { VOLUME1, VOLUME2, BOOLEAN, ENUM } type; 364 enum { VOLUME1, VOLUME2, BOOLEAN, ENUM } type;
365 int ch; 365 int ch;
366 const char **member; 366 const char * const *member;
367 const char *comment; 367 const char *comment;
368}; 368};
369 369
@@ -421,7 +421,7 @@ static const struct se200pci_control se200pci_cont[] = {
421 421
422static int se200pci_get_enum_count(int n) 422static int se200pci_get_enum_count(int n)
423{ 423{
424 const char **member; 424 const char * const *member;
425 int c; 425 int c;
426 426
427 member = se200pci_cont[n].member; 427 member = se200pci_cont[n].member;
diff --git a/sound/pci/ice1712/wm8766.h b/sound/pci/ice1712/wm8766.h
index dfa3bbfbc9a5..c119f84bd2c2 100644
--- a/sound/pci/ice1712/wm8766.h
+++ b/sound/pci/ice1712/wm8766.h
@@ -131,7 +131,7 @@ enum snd_wm8766_ctl_id {
131 131
132struct snd_wm8766_ctl { 132struct snd_wm8766_ctl {
133 struct snd_kcontrol *kctl; 133 struct snd_kcontrol *kctl;
134 char *name; 134 const char *name;
135 snd_ctl_elem_type_t type; 135 snd_ctl_elem_type_t type;
136 const char *const enum_names[WM8766_ENUM_MAX]; 136 const char *const enum_names[WM8766_ENUM_MAX];
137 const unsigned int *tlv; 137 const unsigned int *tlv;
diff --git a/sound/pci/ice1712/wm8776.c b/sound/pci/ice1712/wm8776.c
index dc333cefbc75..a3c05fe5daf9 100644
--- a/sound/pci/ice1712/wm8776.c
+++ b/sound/pci/ice1712/wm8776.c
@@ -41,7 +41,8 @@ static void snd_wm8776_write(struct snd_wm8776 *wm, u16 addr, u16 data)
41 41
42/* register-level functions */ 42/* register-level functions */
43 43
44static void snd_wm8776_activate_ctl(struct snd_wm8776 *wm, char *ctl_name, 44static void snd_wm8776_activate_ctl(struct snd_wm8776 *wm,
45 const char *ctl_name,
45 bool active) 46 bool active)
46{ 47{
47 struct snd_card *card = wm->card; 48 struct snd_card *card = wm->card;
diff --git a/sound/pci/ice1712/wm8776.h b/sound/pci/ice1712/wm8776.h
index 414a3f6538b5..93a2d6971154 100644
--- a/sound/pci/ice1712/wm8776.h
+++ b/sound/pci/ice1712/wm8776.h
@@ -187,7 +187,7 @@ enum snd_wm8776_ctl_id {
187#define WM8776_FLAG_ALC (1 << 4) 187#define WM8776_FLAG_ALC (1 << 4)
188 188
189struct snd_wm8776_ctl { 189struct snd_wm8776_ctl {
190 char *name; 190 const char *name;
191 snd_ctl_elem_type_t type; 191 snd_ctl_elem_type_t type;
192 const char *const enum_names[WM8776_ENUM_MAX]; 192 const char *const enum_names[WM8776_ENUM_MAX];
193 const unsigned int *tlv; 193 const unsigned int *tlv;