mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
[ALSA] Fix rwlock around snd_iprintf() in sound core
Fixed rwlock around snd_iprintf() in sound core part. Replaced with mutex. Also, make mutex and flags static variables with addition of snd_card_locked() function (just for sound.c). Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0defb2672d
commit
746df94898
3 changed files with 33 additions and 28 deletions
|
@ -233,9 +233,8 @@ int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size
|
|||
|
||||
/* init.c */
|
||||
|
||||
extern unsigned int snd_cards_lock;
|
||||
extern struct snd_card *snd_cards[SNDRV_CARDS];
|
||||
extern rwlock_t snd_card_rwlock;
|
||||
int snd_card_locked(int card);
|
||||
#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE)
|
||||
#define SND_MIXER_OSS_NOTIFY_REGISTER 0
|
||||
#define SND_MIXER_OSS_NOTIFY_DISCONNECT 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue