1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

lock the mutex, not the softc pointer.

This commit is contained in:
Cameron Grant 2001-04-10 13:52:26 +00:00
parent 044479f5ad
commit f72b6281c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75381

View File

@ -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