[ALSA] timer: check for incorrect device state in non-debug compiles, too
authorClemens Ladisch <clemens@ladisch.de>
Mon, 16 Jul 2007 09:01:30 +0000 (11:01 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:54 +0000 (11:11 +0200)
commit7c64ec343a7d7b2d73b19e6bb8d9fd15f0462890
tree0066624778782a064a472e959132238c39a59e50
parentc28054d4b31d78272f65c0d11db0796f50fb9569
[ALSA] timer: check for incorrect device state in non-debug compiles, too

Convert the snd_assert()s to simple if()s to prevent crashes when one of
the timer instance ioctls is called before the file is bound to a timer
device.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/timer.c