[HDA] Pass correct Cyclic Buffer Length to hardware...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23311 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema 2008-01-09 15:42:54 +00:00
parent cc91279875
commit e2eba858bb

View File

@ -219,7 +219,7 @@ hda_stream_setup_buffers(hda_afg* afg, hda_stream* s, const char* desc)
OREG32(afg->codec->ctrlr,s->off,BDPL) = s->bdl_pa;
OREG32(afg->codec->ctrlr,s->off,BDPU) = 0;
OREG16(afg->codec->ctrlr,s->off,LVI) = s->num_buffers -1;
OREG32(afg->codec->ctrlr,s->off,CBL) = s->num_channels * s->num_buffers;
OREG32(afg->codec->ctrlr,s->off,CBL) = s->sample_size * s->num_channels * s->num_buffers * s->buffer_length; /* total cyclic buffer size in _bytes_ */
OREG8(afg->codec->ctrlr,s->off,CTL0) = CTL0_IOCE | CTL0_FEIE | CTL0_DEIE;
OREG8(afg->codec->ctrlr,s->off,CTL2) = s->id << 4;