]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement sbc_lockassert() and sb_lockassert() functions to allow
authortruckman <truckman@FreeBSD.org>
Thu, 13 May 2004 11:32:54 +0000 (11:32 +0000)
committertruckman <truckman@FreeBSD.org>
Thu, 13 May 2004 11:32:54 +0000 (11:32 +0000)
commit305fdebeb32934840c996fe567234d265b03da04
tree89cc28bc9f80dee94d8c608e4f6414e1b5f01466
parent3aa9288a48ca6d866ef3eb1b40a5eaf98e32f8d5
Implement sbc_lockassert() and sb_lockassert() functions to allow
proper locking to be checked at runtime.

Remove sb_lock() and sb_unlock() calls from sb_reset_dsp() because the
latter is called from sb_setup() with the lock already held.  Add a
call to sb_lockassert().

Surround the call to sb_reset_dsp() in sb16_attach() with sb_lock()
and sb_unlock() calls.

Tested by: Bartek Marcinkiewicz <junior AT p233.if.pwr.wroc.pl>
sys/dev/sound/isa/sb.h
sys/dev/sound/isa/sb16.c
sys/dev/sound/isa/sbc.c