For Linux 2.4, USB audio : Reduced CD output buffer size to 32 kiB

This commit is contained in:
Thomas Schmitt 2007-05-21 19:03:06 +00:00
parent 40b4674190
commit 4b84739574
3 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.05.21.185450"
#define Cdrskin_timestamP "2007.05.21.185644"

View File

@ -218,7 +218,8 @@ static unsigned char *get_sector(struct burn_write_opts *opts,
seclen += burn_subcode_length(outmode);
/* ts A61219 : opts->obs is eventually a 32k trigger for DVD */
if (out->bytes + (seclen) > BUFFER_SIZE || out->bytes == opts->obs) {
if (out->bytes + seclen > BUFFER_SIZE ||
out->bytes + seclen > opts->obs) {
int err;
err = d->write(d, d->nwa, out);
if (err == BE_CANCELLED)

View File

@ -1765,6 +1765,9 @@ void burn_disc_write_sync(struct burn_write_opts *o, struct burn_disc *disc)
return;
}
/* ts A70521 : Linux 2.4 USB audio fails with 64 kiB */
o->obs = 32*1024; /* buffer flush trigger for sector.c:get_sector() */
#ifndef Libburn_precheck_write_ruleS
/* <<< covered by burn_precheck_write() */
if (o->start_byte >= 0) {