* 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:
@@ -132,7 +132,6 @@ struct hda_stream {
|
|||||||
bool running;
|
bool running;
|
||||||
spinlock lock; /* Write lock */
|
spinlock lock; /* Write lock */
|
||||||
uint32 type;
|
uint32 type;
|
||||||
int32 warn_count;
|
|
||||||
|
|
||||||
hda_controller* controller;
|
hda_controller* controller;
|
||||||
|
|
||||||
|
|||||||
@@ -481,7 +481,6 @@ hda_stream_new(hda_audio_group* audioGroup, int type)
|
|||||||
stream->buffer_descriptors_area = B_ERROR;
|
stream->buffer_descriptors_area = B_ERROR;
|
||||||
stream->type = type;
|
stream->type = type;
|
||||||
stream->controller = controller;
|
stream->controller = controller;
|
||||||
stream->warn_count = 0;
|
|
||||||
stream->incorrect_position_count = 0;
|
stream->incorrect_position_count = 0;
|
||||||
stream->use_dma_position = true;
|
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->Write32(HDAC_STREAM_BUFFERS_BASE_LOWER,
|
||||||
stream->physical_buffer_descriptors);
|
stream->physical_buffer_descriptors);
|
||||||
stream->Write32(HDAC_STREAM_BUFFERS_BASE_UPPER, 0);
|
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_ */
|
/* total cyclic buffer size in _bytes_ */
|
||||||
stream->Write32(HDAC_STREAM_BUFFER_SIZE, stream->buffer_size
|
stream->Write32(HDAC_STREAM_BUFFER_SIZE, stream->buffer_size
|
||||||
* stream->num_buffers);
|
* stream->num_buffers);
|
||||||
|
|||||||
Reference in New Issue
Block a user