aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pcmcia/vx/vxp_mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pcmcia/vx/vxp_mixer.c')
-rw-r--r--sound/pcmcia/vx/vxp_mixer.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/pcmcia/vx/vxp_mixer.c b/sound/pcmcia/vx/vxp_mixer.c
index aeaef3d81801..9450149b931c 100644
--- a/sound/pcmcia/vx/vxp_mixer.c
+++ b/sound/pcmcia/vx/vxp_mixer.c
@@ -31,7 +31,7 @@
31/* 31/*
32 * mic level control (for VXPocket) 32 * mic level control (for VXPocket)
33 */ 33 */
34static int vx_mic_level_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 34static int vx_mic_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
35{ 35{
36 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 36 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
37 uinfo->count = 1; 37 uinfo->count = 1;
@@ -40,17 +40,17 @@ static int vx_mic_level_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinf
40 return 0; 40 return 0;
41} 41}
42 42
43static int vx_mic_level_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 43static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
44{ 44{
45 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 45 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
46 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 46 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
47 ucontrol->value.integer.value[0] = chip->mic_level; 47 ucontrol->value.integer.value[0] = chip->mic_level;
48 return 0; 48 return 0;
49} 49}
50 50
51static int vx_mic_level_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 51static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
52{ 52{
53 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 53 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 54 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
55 down(&_chip->mixer_mutex); 55 down(&_chip->mixer_mutex);
56 if (chip->mic_level != ucontrol->value.integer.value[0]) { 56 if (chip->mic_level != ucontrol->value.integer.value[0]) {
@@ -63,7 +63,7 @@ static int vx_mic_level_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon
63 return 0; 63 return 0;
64} 64}
65 65
66static snd_kcontrol_new_t vx_control_mic_level = { 66static struct snd_kcontrol_new vx_control_mic_level = {
67 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 67 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
68 .name = "Mic Capture Volume", 68 .name = "Mic Capture Volume",
69 .info = vx_mic_level_info, 69 .info = vx_mic_level_info,
@@ -74,7 +74,7 @@ static snd_kcontrol_new_t vx_control_mic_level = {
74/* 74/*
75 * mic boost level control (for VXP440) 75 * mic boost level control (for VXP440)
76 */ 76 */
77static int vx_mic_boost_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 77static int vx_mic_boost_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
78{ 78{
79 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 79 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
80 uinfo->count = 1; 80 uinfo->count = 1;
@@ -83,17 +83,17 @@ static int vx_mic_boost_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinf
83 return 0; 83 return 0;
84} 84}
85 85
86static int vx_mic_boost_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 86static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
87{ 87{
88 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 88 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
89 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 89 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
90 ucontrol->value.integer.value[0] = chip->mic_level; 90 ucontrol->value.integer.value[0] = chip->mic_level;
91 return 0; 91 return 0;
92} 92}
93 93
94static int vx_mic_boost_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 94static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
95{ 95{
96 vx_core_t *_chip = snd_kcontrol_chip(kcontrol); 96 struct vx_core *_chip = snd_kcontrol_chip(kcontrol);
97 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 97 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
98 down(&_chip->mixer_mutex); 98 down(&_chip->mixer_mutex);
99 if (chip->mic_level != ucontrol->value.integer.value[0]) { 99 if (chip->mic_level != ucontrol->value.integer.value[0]) {
@@ -106,7 +106,7 @@ static int vx_mic_boost_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucon
106 return 0; 106 return 0;
107} 107}
108 108
109static snd_kcontrol_new_t vx_control_mic_boost = { 109static struct snd_kcontrol_new vx_control_mic_boost = {
110 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 110 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
111 .name = "Mic Boost", 111 .name = "Mic Boost",
112 .info = vx_mic_boost_info, 112 .info = vx_mic_boost_info,
@@ -115,7 +115,7 @@ static snd_kcontrol_new_t vx_control_mic_boost = {
115}; 115};
116 116
117 117
118int vxp_add_mic_controls(vx_core_t *_chip) 118int vxp_add_mic_controls(struct vx_core *_chip)
119{ 119{
120 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; 120 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip;
121 int err; 121 int err;