diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /sound/drivers/opl3/opl3_synth.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
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 | } |
