* prints the stream fifo size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -644,7 +644,8 @@ hda_stream_setup_buffers(hda_audio_group* audioGroup, hda_stream* stream,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Setup buffer descriptor list (BDL) entries */
|
/* Setup buffer descriptor list (BDL) entries */
|
||||||
for (uint32 index = 0; index < stream->num_buffers; index++, bufferDescriptors++) {
|
for (uint32 index = 0; index < stream->num_buffers; index++,
|
||||||
|
bufferDescriptors++) {
|
||||||
bufferDescriptors->lower = stream->physical_buffers[index] + offset;
|
bufferDescriptors->lower = stream->physical_buffers[index] + offset;
|
||||||
bufferDescriptors->upper = 0;
|
bufferDescriptors->upper = 0;
|
||||||
fragments++;
|
fragments++;
|
||||||
@@ -673,7 +674,8 @@ hda_stream_setup_buffers(hda_audio_group* audioGroup, hda_stream* stream,
|
|||||||
stream->controller->Read32(HDAC_DMA_POSITION_BASE_LOWER)
|
stream->controller->Read32(HDAC_DMA_POSITION_BASE_LOWER)
|
||||||
| DMA_POSITION_ENABLED);
|
| DMA_POSITION_ENABLED);
|
||||||
|
|
||||||
dprintf("hda: stream: %ld num_io_widgets: %ld\n", stream->id, stream->num_io_widgets);
|
dprintf("hda: stream: %ld fifo size: %d num_io_widgets: %ld\n", stream->id,
|
||||||
|
stream->Read16(HDAC_STREAM_FIFO_SIZE), stream->num_io_widgets);
|
||||||
dprintf("hda: widgets: ");
|
dprintf("hda: widgets: ");
|
||||||
|
|
||||||
hda_codec* codec = audioGroup->codec;
|
hda_codec* codec = audioGroup->codec;
|
||||||
@@ -693,7 +695,7 @@ hda_stream_setup_buffers(hda_audio_group* audioGroup, hda_stream* stream,
|
|||||||
dprintf("%ld ", stream->io_widgets[i]);
|
dprintf("%ld ", stream->io_widgets[i]);
|
||||||
}
|
}
|
||||||
dprintf("\n");
|
dprintf("\n");
|
||||||
|
|
||||||
snooze(1000);
|
snooze(1000);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user