Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a2af050f
Commit
a2af050f
authored
Oct 17, 2012
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: ice17xx: Constify strings and string arrays
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
77b0b254
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
54 additions
and
50 deletions
+54
-50
sound/pci/ice1712/aureon.c
sound/pci/ice1712/aureon.c
+2
-1
sound/pci/ice1712/ews.c
sound/pci/ice1712/ews.c
+2
-2
sound/pci/ice1712/ice1712.h
sound/pci/ice1712/ice1712.h
+4
-4
sound/pci/ice1712/ice1724.c
sound/pci/ice1712/ice1724.c
+3
-3
sound/pci/ice1712/juli.c
sound/pci/ice1712/juli.c
+2
-1
sound/pci/ice1712/maya44.c
sound/pci/ice1712/maya44.c
+2
-2
sound/pci/ice1712/phase.c
sound/pci/ice1712/phase.c
+1
-1
sound/pci/ice1712/prodigy192.c
sound/pci/ice1712/prodigy192.c
+2
-2
sound/pci/ice1712/psc724.c
sound/pci/ice1712/psc724.c
+22
-22
sound/pci/ice1712/quartet.c
sound/pci/ice1712/quartet.c
+5
-4
sound/pci/ice1712/se.c
sound/pci/ice1712/se.c
+5
-5
sound/pci/ice1712/wm8766.h
sound/pci/ice1712/wm8766.h
+1
-1
sound/pci/ice1712/wm8776.c
sound/pci/ice1712/wm8776.c
+2
-1
sound/pci/ice1712/wm8776.h
sound/pci/ice1712/wm8776.h
+1
-1
No files found.
sound/pci/ice1712/aureon.c
View file @
a2af050f
...
@@ -203,7 +203,8 @@ static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
...
@@ -203,7 +203,8 @@ static void aureon_pca9554_write(struct snd_ice1712 *ice, unsigned char reg,
static
int
aureon_universe_inmux_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
aureon_universe_inmux_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
char
*
texts
[
3
]
=
{
"Internal Aux"
,
"Wavetable"
,
"Rear Line-In"
};
static
const
char
*
const
texts
[
3
]
=
{
"Internal Aux"
,
"Wavetable"
,
"Rear Line-In"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
...
...
sound/pci/ice1712/ews.c
View file @
a2af050f
...
@@ -576,7 +576,7 @@ static int __devinit snd_ice1712_ews_init(struct snd_ice1712 *ice)
...
@@ -576,7 +576,7 @@ static int __devinit snd_ice1712_ews_init(struct snd_ice1712 *ice)
/* i/o sensitivity - this callback is shared among other devices, too */
/* i/o sensitivity - this callback is shared among other devices, too */
static
int
snd_ice1712_ewx_io_sense_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
){
static
int
snd_ice1712_ewx_io_sense_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
){
static
c
har
*
texts
[
2
]
=
{
static
c
onst
char
*
const
texts
[
2
]
=
{
"+4dBu"
,
"-10dBV"
,
"+4dBu"
,
"-10dBV"
,
};
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
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,7 +899,7 @@ static int snd_ice1712_6fire_control_put(struct snd_kcontrol *kcontrol, struct s
static
int
snd_ice1712_6fire_select_input_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
static
int
snd_ice1712_6fire_select_input_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[
4
]
=
{
static
c
onst
char
*
const
texts
[
4
]
=
{
"Internal"
,
"Front Input"
,
"Rear Input"
,
"Wave Table"
"Internal"
,
"Front Input"
,
"Rear Input"
,
"Wave Table"
};
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
...
...
sound/pci/ice1712/ice1712.h
View file @
a2af050f
...
@@ -383,7 +383,7 @@ struct snd_ice1712 {
...
@@ -383,7 +383,7 @@ struct snd_ice1712 {
unsigned
char
(
*
set_mclk
)(
struct
snd_ice1712
*
ice
,
unsigned
int
rate
);
unsigned
char
(
*
set_mclk
)(
struct
snd_ice1712
*
ice
,
unsigned
int
rate
);
int
(
*
set_spdif_clock
)(
struct
snd_ice1712
*
ice
,
int
type
);
int
(
*
set_spdif_clock
)(
struct
snd_ice1712
*
ice
,
int
type
);
int
(
*
get_spdif_master_type
)(
struct
snd_ice1712
*
ice
);
int
(
*
get_spdif_master_type
)(
struct
snd_ice1712
*
ice
);
c
har
*
*
ext_clock_names
;
c
onst
char
*
const
*
ext_clock_names
;
int
ext_clock_count
;
int
ext_clock_count
;
void
(
*
pro_open
)(
struct
snd_ice1712
*
,
struct
snd_pcm_substream
*
);
void
(
*
pro_open
)(
struct
snd_ice1712
*
,
struct
snd_pcm_substream
*
);
#ifdef CONFIG_PM_SLEEP
#ifdef CONFIG_PM_SLEEP
...
@@ -515,9 +515,9 @@ static inline u8 snd_ice1712_read(struct snd_ice1712 *ice, u8 addr)
...
@@ -515,9 +515,9 @@ static inline u8 snd_ice1712_read(struct snd_ice1712 *ice, u8 addr)
struct
snd_ice1712_card_info
{
struct
snd_ice1712_card_info
{
unsigned
int
subvendor
;
unsigned
int
subvendor
;
char
*
name
;
c
onst
c
har
*
name
;
char
*
model
;
c
onst
c
har
*
model
;
char
*
driver
;
c
onst
c
har
*
driver
;
int
(
*
chip_init
)(
struct
snd_ice1712
*
);
int
(
*
chip_init
)(
struct
snd_ice1712
*
);
void
(
*
chip_exit
)(
struct
snd_ice1712
*
);
void
(
*
chip_exit
)(
struct
snd_ice1712
*
);
int
(
*
build_controls
)(
struct
snd_ice1712
*
);
int
(
*
build_controls
)(
struct
snd_ice1712
*
);
...
...
sound/pci/ice1712/ice1724.c
View file @
a2af050f
...
@@ -107,7 +107,7 @@ static int PRO_RATE_LOCKED;
...
@@ -107,7 +107,7 @@ static int PRO_RATE_LOCKED;
static
int
PRO_RATE_RESET
=
1
;
static
int
PRO_RATE_RESET
=
1
;
static
unsigned
int
PRO_RATE_DEFAULT
=
44100
;
static
unsigned
int
PRO_RATE_DEFAULT
=
44100
;
static
c
har
*
ext_clock_names
[
1
]
=
{
"IEC958 In"
};
static
c
onst
char
*
const
ext_clock_names
[
1
]
=
{
"IEC958 In"
};
/*
/*
* Basic I/O
* Basic I/O
...
@@ -2043,7 +2043,7 @@ static struct snd_kcontrol_new snd_vt1724_pro_rate_reset __devinitdata = {
...
@@ -2043,7 +2043,7 @@ static struct snd_kcontrol_new snd_vt1724_pro_rate_reset __devinitdata = {
static
int
snd_vt1724_pro_route_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
snd_vt1724_pro_route_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[]
=
{
static
c
onst
char
*
const
texts
[]
=
{
"PCM Out"
,
/* 0 */
"PCM Out"
,
/* 0 */
"H/W In 0"
,
"H/W In 1"
,
/* 1-2 */
"H/W In 0"
,
"H/W In 1"
,
/* 1-2 */
"IEC958 In L"
,
"IEC958 In R"
,
/* 3-4 */
"IEC958 In L"
,
"IEC958 In R"
,
/* 3-4 */
...
@@ -2233,7 +2233,7 @@ static unsigned char ooaoo_sq210_eeprom[] __devinitdata = {
...
@@ -2233,7 +2233,7 @@ static unsigned char ooaoo_sq210_eeprom[] __devinitdata = {
};
};
struct
snd_ice1712_card_info
snd_vt1724_ooaoo_cards
[]
__devinitdata
=
{
st
atic
st
ruct
snd_ice1712_card_info
snd_vt1724_ooaoo_cards
[]
__devinitdata
=
{
{
{
.
name
=
"ooAoo SQ210a"
,
.
name
=
"ooAoo SQ210a"
,
.
model
=
"sq210a"
,
.
model
=
"sq210a"
,
...
...
sound/pci/ice1712/juli.c
View file @
a2af050f
...
@@ -435,7 +435,8 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
...
@@ -435,7 +435,8 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
}
}
static
void
__devinit
add_slaves
(
struct
snd_card
*
card
,
static
void
__devinit
add_slaves
(
struct
snd_card
*
card
,
struct
snd_kcontrol
*
master
,
char
**
list
)
struct
snd_kcontrol
*
master
,
char
*
const
*
list
)
{
{
for
(;
*
list
;
list
++
)
{
for
(;
*
list
;
list
++
)
{
struct
snd_kcontrol
*
slave
=
ctl_find
(
card
,
*
list
);
struct
snd_kcontrol
*
slave
=
ctl_find
(
card
,
*
list
);
...
...
sound/pci/ice1712/maya44.c
View file @
a2af050f
...
@@ -358,7 +358,7 @@ static void wm8776_select_input(struct snd_maya44 *chip, int idx, int line)
...
@@ -358,7 +358,7 @@ static void wm8776_select_input(struct snd_maya44 *chip, int idx, int line)
static
int
maya_rec_src_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
maya_rec_src_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[]
=
{
"Line"
,
"Mic"
};
static
c
onst
char
*
const
texts
[]
=
{
"Line"
,
"Mic"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
...
@@ -407,7 +407,7 @@ static int maya_rec_src_put(struct snd_kcontrol *kcontrol,
...
@@ -407,7 +407,7 @@ static int maya_rec_src_put(struct snd_kcontrol *kcontrol,
static
int
maya_pb_route_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
maya_pb_route_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[]
=
{
static
c
onst
char
*
const
texts
[]
=
{
"PCM Out"
,
/* 0 */
"PCM Out"
,
/* 0 */
"Input 1"
,
"Input 2"
,
"Input 3"
,
"Input 4"
"Input 1"
,
"Input 2"
,
"Input 3"
,
"Input 4"
};
};
...
...
sound/pci/ice1712/phase.c
View file @
a2af050f
...
@@ -722,7 +722,7 @@ static int phase28_deemp_put(struct snd_kcontrol *kcontrol,
...
@@ -722,7 +722,7 @@ static int phase28_deemp_put(struct snd_kcontrol *kcontrol,
static
int
phase28_oversampling_info
(
struct
snd_kcontrol
*
k
,
static
int
phase28_oversampling_info
(
struct
snd_kcontrol
*
k
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[
2
]
=
{
"128x"
,
"64x"
};
static
c
onst
char
*
const
texts
[
2
]
=
{
"128x"
,
"64x"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
...
...
sound/pci/ice1712/prodigy192.c
View file @
a2af050f
...
@@ -283,7 +283,7 @@ static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
...
@@ -283,7 +283,7 @@ static int stac9460_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
static
int
stac9460_mic_sw_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
stac9460_mic_sw_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[
2
]
=
{
"Line In"
,
"Mic"
};
static
c
onst
char
*
const
texts
[
2
]
=
{
"Line In"
,
"Mic"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
...
@@ -562,7 +562,7 @@ static unsigned char prodigy192_ak4114_read(void *private_data,
...
@@ -562,7 +562,7 @@ static unsigned char prodigy192_ak4114_read(void *private_data,
static
int
ak4114_input_sw_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
ak4114_input_sw_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
c
har
*
texts
[
2
]
=
{
"Toslink"
,
"Coax"
};
static
c
onst
char
*
const
texts
[
2
]
=
{
"Toslink"
,
"Coax"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
...
...
sound/pci/ice1712/psc724.c
View file @
a2af050f
...
@@ -254,7 +254,7 @@ static bool psc724_get_jack_detection(struct snd_ice1712 *ice)
...
@@ -254,7 +254,7 @@ static bool psc724_get_jack_detection(struct snd_ice1712 *ice)
/* mixer controls */
/* mixer controls */
struct
psc724_control
{
struct
psc724_control
{
char
*
name
;
c
onst
c
har
*
name
;
void
(
*
set
)(
struct
snd_ice1712
*
ice
,
bool
on
);
void
(
*
set
)(
struct
snd_ice1712
*
ice
,
bool
on
);
bool
(
*
get
)(
struct
snd_ice1712
*
ice
);
bool
(
*
get
)(
struct
snd_ice1712
*
ice
);
};
};
...
@@ -294,27 +294,27 @@ static int psc724_ctl_put(struct snd_kcontrol *kcontrol,
...
@@ -294,27 +294,27 @@ static int psc724_ctl_put(struct snd_kcontrol *kcontrol,
return
0
;
return
0
;
}
}
static
char
*
front_volume
=
"Front Playback Volume"
;
static
c
onst
c
har
*
front_volume
=
"Front Playback Volume"
;
static
char
*
front_switch
=
"Front Playback Switch"
;
static
c
onst
c
har
*
front_switch
=
"Front Playback Switch"
;
static
c
har
*
front_zc
=
"Front Zero Cross Detect Playback Switch"
;
static
c
onst
char
*
front_zc
=
"Front Zero Cross Detect Playback Switch"
;
static
c
har
*
front_izd
=
"Front Infinite Zero Detect Playback Switch"
;
static
c
onst
char
*
front_izd
=
"Front Infinite Zero Detect Playback Switch"
;
static
char
*
front_phase
=
"Front Phase Invert Playback Switch"
;
static
c
onst
c
har
*
front_phase
=
"Front Phase Invert Playback Switch"
;
static
char
*
front_deemph
=
"Front Deemphasis Playback Switch"
;
static
c
onst
c
har
*
front_deemph
=
"Front Deemphasis Playback Switch"
;
static
char
*
ain1_switch
=
"Line Capture Switch"
;
static
c
onst
c
har
*
ain1_switch
=
"Line Capture Switch"
;
static
char
*
ain2_switch
=
"CD Capture Switch"
;
static
c
onst
c
har
*
ain2_switch
=
"CD Capture Switch"
;
static
char
*
ain3_switch
=
"AUX Capture Switch"
;
static
c
onst
c
har
*
ain3_switch
=
"AUX Capture Switch"
;
static
char
*
ain4_switch
=
"Front Mic Capture Switch"
;
static
c
onst
c
har
*
ain4_switch
=
"Front Mic Capture Switch"
;
static
char
*
ain5_switch
=
"Rear Mic Capture Switch"
;
static
c
onst
c
har
*
ain5_switch
=
"Rear Mic Capture Switch"
;
static
char
*
rear_volume
=
"Surround Playback Volume"
;
static
c
onst
c
har
*
rear_volume
=
"Surround Playback Volume"
;
static
char
*
clfe_volume
=
"CLFE Playback Volume"
;
static
c
onst
c
har
*
clfe_volume
=
"CLFE Playback Volume"
;
static
char
*
rear_switch
=
"Surround Playback Switch"
;
static
c
onst
c
har
*
rear_switch
=
"Surround Playback Switch"
;
static
char
*
clfe_switch
=
"CLFE Playback Switch"
;
static
c
onst
c
har
*
clfe_switch
=
"CLFE Playback Switch"
;
static
c
har
*
rear_phase
=
"Surround Phase Invert Playback Switch"
;
static
c
onst
char
*
rear_phase
=
"Surround Phase Invert Playback Switch"
;
static
c
har
*
clfe_phase
=
"CLFE Phase Invert Playback Switch"
;
static
c
onst
char
*
clfe_phase
=
"CLFE Phase Invert Playback Switch"
;
static
char
*
rear_deemph
=
"Surround Deemphasis Playback Switch"
;
static
c
onst
c
har
*
rear_deemph
=
"Surround Deemphasis Playback Switch"
;
static
char
*
clfe_deemph
=
"CLFE Deemphasis Playback Switch"
;
static
c
onst
c
har
*
clfe_deemph
=
"CLFE Deemphasis Playback Switch"
;
static
c
har
*
rear_clfe_izd
=
"Rear Infinite Zero Detect Playback Switch"
;
static
c
onst
char
*
rear_clfe_izd
=
"Rear Infinite Zero Detect Playback Switch"
;
static
char
*
rear_clfe_zc
=
"Rear Zero Cross Detect Playback Switch"
;
static
c
onst
c
har
*
rear_clfe_zc
=
"Rear Zero Cross Detect Playback Switch"
;
static
int
__devinit
psc724_add_controls
(
struct
snd_ice1712
*
ice
)
static
int
__devinit
psc724_add_controls
(
struct
snd_ice1712
*
ice
)
{
{
...
...
sound/pci/ice1712/quartet.c
View file @
a2af050f
...
@@ -47,7 +47,7 @@ struct qtet_kcontrol_private {
...
@@ -47,7 +47,7 @@ struct qtet_kcontrol_private {
unsigned
int
bit
;
unsigned
int
bit
;
void
(
*
set_register
)(
struct
snd_ice1712
*
ice
,
unsigned
int
val
);
void
(
*
set_register
)(
struct
snd_ice1712
*
ice
,
unsigned
int
val
);
unsigned
int
(
*
get_register
)(
struct
snd_ice1712
*
ice
);
unsigned
int
(
*
get_register
)(
struct
snd_ice1712
*
ice
);
unsigned
char
*
texts
[
2
];
unsigned
char
*
const
texts
[
2
];
};
};
enum
{
enum
{
...
@@ -63,7 +63,7 @@ enum {
...
@@ -63,7 +63,7 @@ enum {
OUT34_MON12
,
OUT34_MON12
,
};
};
static
c
har
*
ext_clock_names
[
3
]
=
{
"IEC958 In"
,
"Word Clock 1xFS"
,
static
c
onst
char
*
const
ext_clock_names
[
3
]
=
{
"IEC958 In"
,
"Word Clock 1xFS"
,
"Word Clock 256xFS"
};
"Word Clock 256xFS"
};
/* chip address on I2C bus */
/* chip address on I2C bus */
...
@@ -551,7 +551,8 @@ static int qtet_mute_put(struct snd_kcontrol *kcontrol,
...
@@ -551,7 +551,8 @@ static int qtet_mute_put(struct snd_kcontrol *kcontrol,
static
int
qtet_ain12_enum_info
(
struct
snd_kcontrol
*
kcontrol
,
static
int
qtet_ain12_enum_info
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_info
*
uinfo
)
struct
snd_ctl_elem_info
*
uinfo
)
{
{
static
char
*
texts
[
3
]
=
{
"Line In 1/2"
,
"Mic"
,
"Mic + Low-cut"
};
static
const
char
*
const
texts
[
3
]
=
{
"Line In 1/2"
,
"Mic"
,
"Mic + Low-cut"
};
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
type
=
SNDRV_CTL_ELEM_TYPE_ENUMERATED
;
uinfo
->
count
=
1
;
uinfo
->
count
=
1
;
uinfo
->
value
.
enumerated
.
items
=
ARRAY_SIZE
(
texts
);
uinfo
->
value
.
enumerated
.
items
=
ARRAY_SIZE
(
texts
);
...
@@ -816,7 +817,7 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
...
@@ -816,7 +817,7 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card,
}
}
static
void
__devinit
add_slaves
(
struct
snd_card
*
card
,
static
void
__devinit
add_slaves
(
struct
snd_card
*
card
,
struct
snd_kcontrol
*
master
,
char
**
list
)
struct
snd_kcontrol
*
master
,
char
*
const
*
list
)
{
{
for
(;
*
list
;
list
++
)
{
for
(;
*
list
;
list
++
)
{
struct
snd_kcontrol
*
slave
=
ctl_find
(
card
,
*
list
);
struct
snd_kcontrol
*
slave
=
ctl_find
(
card
,
*
list
);
...
...
sound/pci/ice1712/se.c
View file @
a2af050f
...
@@ -253,7 +253,7 @@ static void se200pci_WM8776_set_input_volume(struct snd_ice1712 *ice,
...
@@ -253,7 +253,7 @@ static void se200pci_WM8776_set_input_volume(struct snd_ice1712 *ice,
se200pci_WM8776_write
(
ice
,
0x0f
,
vol2
|
0x100
);
se200pci_WM8776_write
(
ice
,
0x0f
,
vol2
|
0x100
);
}
}
static
const
char
*
se200pci_sel
[]
=
{
static
const
char
*
const
se200pci_sel
[]
=
{
"LINE-IN"
,
"CD-IN"
,
"MIC-IN"
,
"ALL-MIX"
,
NULL
"LINE-IN"
,
"CD-IN"
,
"MIC-IN"
,
"ALL-MIX"
,
NULL
};
};
...
@@ -278,7 +278,7 @@ static void se200pci_WM8776_set_afl(struct snd_ice1712 *ice, unsigned int afl)
...
@@ -278,7 +278,7 @@ static void se200pci_WM8776_set_afl(struct snd_ice1712 *ice, unsigned int afl)
se200pci_WM8776_write
(
ice
,
0x16
,
0x001
);
se200pci_WM8776_write
(
ice
,
0x16
,
0x001
);
}
}
static
const
char
*
se200pci_agc
[]
=
{
static
const
char
*
const
se200pci_agc
[]
=
{
"Off"
,
"LimiterMode"
,
"ALCMode"
,
NULL
"Off"
,
"LimiterMode"
,
"ALCMode"
,
NULL
};
};
...
@@ -352,7 +352,7 @@ static void se200pci_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate)
...
@@ -352,7 +352,7 @@ static void se200pci_set_pro_rate(struct snd_ice1712 *ice, unsigned int rate)
}
}
struct
se200pci_control
{
struct
se200pci_control
{
char
*
name
;
c
onst
c
har
*
name
;
enum
{
enum
{
WM8766
,
WM8766
,
WM8776in
,
WM8776in
,
...
@@ -363,7 +363,7 @@ struct se200pci_control {
...
@@ -363,7 +363,7 @@ struct se200pci_control {
}
target
;
}
target
;
enum
{
VOLUME1
,
VOLUME2
,
BOOLEAN
,
ENUM
}
type
;
enum
{
VOLUME1
,
VOLUME2
,
BOOLEAN
,
ENUM
}
type
;
int
ch
;
int
ch
;
const
char
**
member
;
const
char
*
const
*
member
;
const
char
*
comment
;
const
char
*
comment
;
};
};
...
@@ -421,7 +421,7 @@ static const struct se200pci_control se200pci_cont[] = {
...
@@ -421,7 +421,7 @@ static const struct se200pci_control se200pci_cont[] = {
static
int
se200pci_get_enum_count
(
int
n
)
static
int
se200pci_get_enum_count
(
int
n
)
{
{
const
char
**
member
;
const
char
*
const
*
member
;
int
c
;
int
c
;
member
=
se200pci_cont
[
n
].
member
;
member
=
se200pci_cont
[
n
].
member
;
...
...
sound/pci/ice1712/wm8766.h
View file @
a2af050f
...
@@ -131,7 +131,7 @@ enum snd_wm8766_ctl_id {
...
@@ -131,7 +131,7 @@ enum snd_wm8766_ctl_id {
struct
snd_wm8766_ctl
{
struct
snd_wm8766_ctl
{
struct
snd_kcontrol
*
kctl
;
struct
snd_kcontrol
*
kctl
;
char
*
name
;
c
onst
c
har
*
name
;
snd_ctl_elem_type_t
type
;
snd_ctl_elem_type_t
type
;
const
char
*
const
enum_names
[
WM8766_ENUM_MAX
];
const
char
*
const
enum_names
[
WM8766_ENUM_MAX
];
const
unsigned
int
*
tlv
;
const
unsigned
int
*
tlv
;
...
...
sound/pci/ice1712/wm8776.c
View file @
a2af050f
...
@@ -41,7 +41,8 @@ static void snd_wm8776_write(struct snd_wm8776 *wm, u16 addr, u16 data)
...
@@ -41,7 +41,8 @@ static void snd_wm8776_write(struct snd_wm8776 *wm, u16 addr, u16 data)
/* register-level functions */
/* register-level functions */
static
void
snd_wm8776_activate_ctl
(
struct
snd_wm8776
*
wm
,
char
*
ctl_name
,
static
void
snd_wm8776_activate_ctl
(
struct
snd_wm8776
*
wm
,
const
char
*
ctl_name
,
bool
active
)
bool
active
)
{
{
struct
snd_card
*
card
=
wm
->
card
;
struct
snd_card
*
card
=
wm
->
card
;
...
...
sound/pci/ice1712/wm8776.h
View file @
a2af050f
...
@@ -187,7 +187,7 @@ enum snd_wm8776_ctl_id {
...
@@ -187,7 +187,7 @@ enum snd_wm8776_ctl_id {
#define WM8776_FLAG_ALC (1 << 4)
#define WM8776_FLAG_ALC (1 << 4)
struct
snd_wm8776_ctl
{
struct
snd_wm8776_ctl
{
char
*
name
;
c
onst
c
har
*
name
;
snd_ctl_elem_type_t
type
;
snd_ctl_elem_type_t
type
;
const
char
*
const
enum_names
[
WM8776_ENUM_MAX
];
const
char
*
const
enum_names
[
WM8776_ENUM_MAX
];
const
unsigned
int
*
tlv
;
const
unsigned
int
*
tlv
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment