[alsa-devel] [PATCH] wss_lib: remove second mutexes initialization

Krzysztof Helt krzysztof.h1 at poczta.fm
Sun Aug 3 17:57:21 CEST 2008


From: Krzysztof Helt <krzysztof.h1 at wp.pl>

Remove initializations of spinlock and mutexes which
are done earlier in snd_wss_new(). The snd_wss_new()
is called from snd_wss_create().

Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>
---

diff -urp linux-alsa/sound/isa/wss/wss_lib.c linux-2.6.26/sound/isa/wss/wss_lib.c
--- linux-alsa/sound/isa/wss/wss_lib.c	2008-07-31 20:39:59.000000000 +0200
+++ linux-2.6.26/sound/isa/wss/wss_lib.c	2008-08-03 16:54:01.293267081 +0200
@@ -1866,10 +1866,6 @@ int snd_wss_pcm(struct snd_wss *chip, in
 	if (err < 0)
 		return err;
 
-	spin_lock_init(&chip->reg_lock);
-	mutex_init(&chip->mce_mutex);
-	mutex_init(&chip->open_mutex);
-
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops);
 	snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops);
 




----------------------------------------------------------------------
Tylko dla detektywow! Konkurs na Smaker.pl
Kliknij >>> http://link.interia.pl/f1eb1



More information about the Alsa-devel mailing list