diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-30 06:59:15 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:13 -0500 |
commit | 05c1afe75fcebf456017ec186811cf1599f4360e (patch) | |
tree | 3000085048bb79d54f61c993c2b8e5eb1bd0618f /sound/drivers/opl3/opl3_lib.c | |
parent | 224a033252bba46c5c8b5df625f5e781ca138f48 (diff) |
[ALSA] opl3 - simplify exclusive access lock
Use the exclusive access lock in hwdep instead of the own one.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/drivers/opl3/opl3_lib.c')
-rw-r--r-- | sound/drivers/opl3/opl3_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c index a657da922b4d..a1270841290b 100644 --- a/sound/drivers/opl3/opl3_lib.c +++ b/sound/drivers/opl3/opl3_lib.c | |||
@@ -361,7 +361,6 @@ int snd_opl3_new(struct snd_card *card, | |||
361 | opl3->hardware = hardware; | 361 | opl3->hardware = hardware; |
362 | spin_lock_init(&opl3->reg_lock); | 362 | spin_lock_init(&opl3->reg_lock); |
363 | spin_lock_init(&opl3->timer_lock); | 363 | spin_lock_init(&opl3->timer_lock); |
364 | mutex_init(&opl3->access_mutex); | ||
365 | 364 | ||
366 | if ((err = snd_device_new(card, SNDRV_DEV_CODEC, opl3, &ops)) < 0) { | 365 | if ((err = snd_device_new(card, SNDRV_DEV_CODEC, opl3, &ops)) < 0) { |
367 | snd_opl3_free(opl3); | 366 | snd_opl3_free(opl3); |
@@ -497,6 +496,7 @@ int snd_opl3_hwdep_new(struct snd_opl3 * opl3, | |||
497 | return err; | 496 | return err; |
498 | } | 497 | } |
499 | hw->private_data = opl3; | 498 | hw->private_data = opl3; |
499 | hw->exclusive = 1; | ||
500 | #ifdef CONFIG_SND_OSSEMUL | 500 | #ifdef CONFIG_SND_OSSEMUL |
501 | if (device == 0) { | 501 | if (device == 0) { |
502 | hw->oss_type = SNDRV_OSS_DEVICE_TYPE_DMFM; | 502 | hw->oss_type = SNDRV_OSS_DEVICE_TYPE_DMFM; |