diff options
Diffstat (limited to 'sound/pcmcia')
-rw-r--r-- | sound/pcmcia/vx/vxp_mixer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/pcmcia/vx/vxp_mixer.c b/sound/pcmcia/vx/vxp_mixer.c index 9450149b931c..e237f6c2018f 100644 --- a/sound/pcmcia/vx/vxp_mixer.c +++ b/sound/pcmcia/vx/vxp_mixer.c | |||
@@ -52,14 +52,14 @@ static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_v | |||
52 | { | 52 | { |
53 | struct vx_core *_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 | mutex_lock(&_chip->mixer_mutex); |
56 | if (chip->mic_level != ucontrol->value.integer.value[0]) { | 56 | if (chip->mic_level != ucontrol->value.integer.value[0]) { |
57 | vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); | 57 | vx_set_mic_level(_chip, ucontrol->value.integer.value[0]); |
58 | chip->mic_level = ucontrol->value.integer.value[0]; | 58 | chip->mic_level = ucontrol->value.integer.value[0]; |
59 | up(&_chip->mixer_mutex); | 59 | mutex_unlock(&_chip->mixer_mutex); |
60 | return 1; | 60 | return 1; |
61 | } | 61 | } |
62 | up(&_chip->mixer_mutex); | 62 | mutex_unlock(&_chip->mixer_mutex); |
63 | return 0; | 63 | return 0; |
64 | } | 64 | } |
65 | 65 | ||
@@ -95,14 +95,14 @@ static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_v | |||
95 | { | 95 | { |
96 | struct vx_core *_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 | mutex_lock(&_chip->mixer_mutex); |
99 | if (chip->mic_level != ucontrol->value.integer.value[0]) { | 99 | if (chip->mic_level != ucontrol->value.integer.value[0]) { |
100 | vx_set_mic_boost(_chip, ucontrol->value.integer.value[0]); | 100 | vx_set_mic_boost(_chip, ucontrol->value.integer.value[0]); |
101 | chip->mic_level = ucontrol->value.integer.value[0]; | 101 | chip->mic_level = ucontrol->value.integer.value[0]; |
102 | up(&_chip->mixer_mutex); | 102 | mutex_unlock(&_chip->mixer_mutex); |
103 | return 1; | 103 | return 1; |
104 | } | 104 | } |
105 | up(&_chip->mixer_mutex); | 105 | mutex_unlock(&_chip->mixer_mutex); |
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
108 | 108 | ||