* warn_count is unused.

* the last valid index should be written in HDAC_STREAM_LAST_VALID instead of the fragment count.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2009-12-21 11:05:12 +00:00
parent e4e70475db
commit dfb72c7888
2 changed files with 1 additions and 3 deletions
@@ -132,7 +132,6 @@ struct hda_stream {
bool running;
spinlock lock; /* Write lock */
uint32 type;
int32 warn_count;
hda_controller* controller;
@@ -481,7 +481,6 @@ hda_stream_new(hda_audio_group* audioGroup, int type)
stream->buffer_descriptors_area = B_ERROR;
stream->type = type;
stream->controller = controller;
stream->warn_count = 0;
stream->incorrect_position_count = 0;
stream->use_dma_position = true;
@@ -694,7 +693,7 @@ hda_stream_setup_buffers(hda_audio_group* audioGroup, hda_stream* stream,
stream->Write32(HDAC_STREAM_BUFFERS_BASE_LOWER,
stream->physical_buffer_descriptors);
stream->Write32(HDAC_STREAM_BUFFERS_BASE_UPPER, 0);
stream->Write16(HDAC_STREAM_LAST_VALID, fragments);
stream->Write16(HDAC_STREAM_LAST_VALID, fragments - 1);
/* total cyclic buffer size in _bytes_ */
stream->Write32(HDAC_STREAM_BUFFER_SIZE, stream->buffer_size
* stream->num_buffers);