[ALSA] semaphore -> mutex (PCI part)
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#define __SOUND_MIXART_H
|
||||
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <sound/pcm.h>
|
||||
|
||||
#define MIXART_DRIVER_VERSION 0x000100 /* 0.1.0 */
|
||||
@@ -92,9 +93,9 @@ struct mixart_mgr {
|
||||
|
||||
spinlock_t lock; /* interrupt spinlock */
|
||||
spinlock_t msg_lock; /* mailbox spinlock */
|
||||
struct semaphore msg_mutex; /* mutex for blocking_requests */
|
||||
struct mutex msg_mutex; /* mutex for blocking_requests */
|
||||
|
||||
struct semaphore setup_mutex; /* mutex used in hw_params, open and close */
|
||||
struct mutex setup_mutex; /* mutex used in hw_params, open and close */
|
||||
|
||||
/* hardware interface */
|
||||
unsigned int dsp_loaded; /* bit flags of loaded dsp indices */
|
||||
@@ -107,7 +108,7 @@ struct mixart_mgr {
|
||||
int sample_rate;
|
||||
int ref_count_rate;
|
||||
|
||||
struct semaphore mixer_mutex; /* mutex for mixer */
|
||||
struct mutex mixer_mutex; /* mutex for mixer */
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user