fix alignment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0501b7cd80
commit
06688259b6
@ -303,7 +303,7 @@ init_corb_rirb_pos(hda_controller* controller)
|
|||||||
/* Determine rirb offset in memory and total size of corb+alignment+rirb */
|
/* Determine rirb offset in memory and total size of corb+alignment+rirb */
|
||||||
rirbOffset = (controller->corb_length * sizeof(corb_t) + 0x7f) & ~0x7f;
|
rirbOffset = (controller->corb_length * sizeof(corb_t) + 0x7f) & ~0x7f;
|
||||||
posOffset = (rirbOffset + controller->rirb_length * sizeof(rirb_t) + 0x7f)
|
posOffset = (rirbOffset + controller->rirb_length * sizeof(rirb_t) + 0x7f)
|
||||||
& 0x7f;
|
& ~0x7f;
|
||||||
posSize = 8 * (controller->num_input_streams
|
posSize = 8 * (controller->num_input_streams
|
||||||
+ controller->num_output_streams + controller->num_bidir_streams);
|
+ controller->num_output_streams + controller->num_bidir_streams);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user