lock the mutex, not the softc pointer.
This commit is contained in:
parent
044479f5ad
commit
f72b6281c2
@ -88,13 +88,13 @@ static struct pcmchan_caps ad1816_caps = {4000, 55200, ad1816_fmt, 0};
|
||||
static void
|
||||
ad1816_lock(struct ad1816_info *ad1816)
|
||||
{
|
||||
snd_mtxlock(ad1816);
|
||||
snd_mtxlock(ad1816->lock);
|
||||
}
|
||||
|
||||
static void
|
||||
ad1816_unlock(struct ad1816_info *ad1816)
|
||||
{
|
||||
snd_mtxunlock(ad1816);
|
||||
snd_mtxunlock(ad1816->lock);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user