diff options
Diffstat (limited to 'sound/drivers/opl3/opl3_synth.c')
-rw-r--r-- | sound/drivers/opl3/opl3_synth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/drivers/opl3/opl3_synth.c b/sound/drivers/opl3/opl3_synth.c index 3534a0e3342a..6db503f025b3 100644 --- a/sound/drivers/opl3/opl3_synth.c +++ b/sound/drivers/opl3/opl3_synth.c | |||
@@ -76,13 +76,13 @@ int snd_opl3_open(struct snd_hwdep * hw, struct file *file) | |||
76 | { | 76 | { |
77 | struct snd_opl3 *opl3 = hw->private_data; | 77 | struct snd_opl3 *opl3 = hw->private_data; |
78 | 78 | ||
79 | down(&opl3->access_mutex); | 79 | mutex_lock(&opl3->access_mutex); |
80 | if (opl3->used) { | 80 | if (opl3->used) { |
81 | up(&opl3->access_mutex); | 81 | mutex_unlock(&opl3->access_mutex); |
82 | return -EAGAIN; | 82 | return -EAGAIN; |
83 | } | 83 | } |
84 | opl3->used++; | 84 | opl3->used++; |
85 | up(&opl3->access_mutex); | 85 | mutex_unlock(&opl3->access_mutex); |
86 | 86 | ||
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
@@ -179,9 +179,9 @@ int snd_opl3_release(struct snd_hwdep * hw, struct file *file) | |||
179 | struct snd_opl3 *opl3 = hw->private_data; | 179 | struct snd_opl3 *opl3 = hw->private_data; |
180 | 180 | ||
181 | snd_opl3_reset(opl3); | 181 | snd_opl3_reset(opl3); |
182 | down(&opl3->access_mutex); | 182 | mutex_lock(&opl3->access_mutex); |
183 | opl3->used--; | 183 | opl3->used--; |
184 | up(&opl3->access_mutex); | 184 | mutex_unlock(&opl3->access_mutex); |
185 | 185 | ||
186 | return 0; | 186 | return 0; |
187 | } | 187 | } |