aboutsummaryrefslogtreecommitdiffstats
path: root/hw/sb16.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-12 02:39:29 +0400
committermalc <av1474@comtv.ru>2009-09-12 02:50:58 +0400
commit057fa65c5ddf915d73b69964f32fc854c914efd4 (patch)
treea8a756cfbf97cfc13d896efa7c49a6167b1bbfeb /hw/sb16.c
parent8b438ba3f567a5d3ebd61a4e9b36971877e87671 (diff)
audio: remove lsbindex/popcount in favour of host-utils's ctz32
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw/sb16.c')
-rw-r--r--hw/sb16.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/sb16.c b/hw/sb16.c
index f6be2674c..a222e21ee 100644
--- a/hw/sb16.c
+++ b/hw/sb16.c
@@ -27,6 +27,7 @@
#include "isa.h"
#include "qdev.h"
#include "qemu-timer.h"
+#include "host-utils.h"
#define dolog(...) AUD_log ("sb16", __VA_ARGS__)
@@ -1092,8 +1093,8 @@ static IO_WRITE_PROTO (mixer_write_datab)
{
int dma, hdma;
- dma = lsbindex (val & 0xf);
- hdma = lsbindex (val & 0xf0);
+ dma = ctz32 (val & 0xf);
+ hdma = ctz32 (val & 0xf0);
if (dma != s->dma || hdma != s->hdma) {
dolog (
"attempt to change DMA "