From 06688259b6950a886fc3fe760ba10729df085a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 16 Jul 2008 17:36:27 +0000 Subject: [PATCH] fix alignment git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26446 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp index 412b7a42c5..08a0a702e8 100644 --- a/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp +++ b/src/add-ons/kernel/drivers/audio/hda/hda_controller.cpp @@ -303,7 +303,7 @@ init_corb_rirb_pos(hda_controller* controller) /* Determine rirb offset in memory and total size of corb+alignment+rirb */ rirbOffset = (controller->corb_length * sizeof(corb_t) + 0x7f) & ~0x7f; posOffset = (rirbOffset + controller->rirb_length * sizeof(rirb_t) + 0x7f) - & 0x7f; + & ~0x7f; posSize = 8 * (controller->num_input_streams + controller->num_output_streams + controller->num_bidir_streams);