From fba8eaef800ebccfbc2899327d3cd5ed1491a370 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 28 May 2007 13:24:33 +0000 Subject: [PATCH] Moved general 32 kiB buffer restriction from write.c to os-linux.h --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/os-linux.h | 3 +++ libburn/write.c | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 620139a..48e171d 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.05.22.164850" +#define Cdrskin_timestamP "2007.05.28.132412" diff --git a/libburn/os-linux.h b/libburn/os-linux.h index 5459d77..bd91a34 100644 --- a/libburn/os-linux.h +++ b/libburn/os-linux.h @@ -42,7 +42,10 @@ SIGKILL, SIGCHLD, SIGSTOP, SIGURG, SIGWINCH /* The maximum size for a (SCSI) i/o transaction */ /* Important : MUST be at least 32768 ! */ +/* ts A70523 : >32k seems not good with kernel 2.4 USB drivers and audio #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536 +*/ +#define BURN_OS_TRANSPORT_BUFFER_SIZE 32768 /* To hold the index number of the most recently delivered address from diff --git a/libburn/write.c b/libburn/write.c index 8de70e9..5d80429 100644 --- a/libburn/write.c +++ b/libburn/write.c @@ -1765,9 +1765,6 @@ 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) {