-/* $OpenBSD: audio.c,v 1.20 2000/01/03 19:38:12 fgsch Exp $ */
+/* $OpenBSD: audio.c,v 1.21 2000/04/10 19:49:14 mickey Exp $ */
/* $NetBSD: audio.c,v 1.105 1998/09/27 16:43:56 christos Exp $ */
/*
#include <dev/audio_if.h>
#include <dev/audiovar.h>
+#include <dev/rndvar.h>
+
#include <vm/vm.h>
#include <vm/vm_prot.h>
blksize = cb->blksize;
+ add_audio_randomness(cb);
+
cb->outp += blksize;
if (cb->outp >= cb->end)
cb->outp = cb->start;
if (!sc->sc_open)
return; /* ignore interrupt if not open */
+ add_audio_randomness(cb);
+
blksize = cb->blksize;
cb->inp += blksize;