From nobody@FreeBSD.org  Sun Apr  7 15:37:01 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id AD15237B416
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Apr 2002 15:37:00 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g37Mb0Y98227;
	Sun, 7 Apr 2002 15:37:00 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204072237.g37Mb0Y98227@freefall.freebsd.org>
Date: Sun, 7 Apr 2002 15:37:00 -0700 (PDT)
From: Kenneth Dunlap <grr@arrgh.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: burncd fails in dao mode for audio 
X-Send-Pr-Version: www-1.0

>Number:         36859
>Category:       bin
>Synopsis:       burncd fails in dao mode for audio
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 07 15:40:01 PDT 2002
>Closed-Date:    Thu Sep 12 07:21:46 PDT 2002
>Last-Modified:  Thu Sep 12 07:21:46 PDT 2002
>Originator:     Kenneth Dunlap
>Release:        4.5-STABLE
>Organization:
none
>Environment:
FreeBSD belladonna 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Apr  6 13:38:56 EST 2002     root@belladonna:/usr/obj/usr/src/sys/BELLADONNA  i386

cd writer is Plextor Pexwriter 16/10/40A
      
>Description:
similar to report bin/34148.  Attempting to write an audio CD in DAO
mode results in errors such as
      only wrote -1 of 37632 bytes err=5
in the terminal, and the error 
   acd1: WRITE_BIG - ILLEGAL REQUEST asc=0x24 ascq=0x00 error=0x04
turning up in dmesg 

>How-To-Repeat:
$ burncd -d -f /dev/acd1c track1 track2 ...      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Apr 23 19:00:17 PDT 2002 
Responsible-Changed-Why:  
Over to burncd author. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36859 
State-Changed-From-To: open->feedback 
State-Changed-By: sos 
State-Changed-When: Wed May 1 05:20:24 PDT 2002 
State-Changed-Why:  
Could you try this patch on a fairly new -stable: 

cvs diff: Diffing . 
Index: burncd.c 
=================================================================== 
RCS file: /home/ncvs/src/usr.sbin/burncd/burncd.c,v 
retrieving revision 1.25 
diff -u -r1.25 burncd.c 
--- burncd.c    22 Apr 2002 13:44:42 -0000      1.25 
+++ burncd.c    29 Apr 2002 20:12:17 -0000 
@@ -367,13 +367,14 @@ 
format = CDR_SESS_CDROM_XA; 

if (i == 0) { 
-                       addr += tracks[i].pregap; 
tracks[i].addr = addr; 
- 
+                       cue_ent(&cue[j++], bt2ctl[tracks[i].block_type],  
+                               0x01, i+1, 0x0, bt2df[tracks[i].block_type], 
+                               0x00, addr); 
+                       addr += tracks[i].pregap; 
cue_ent(&cue[j++], bt2ctl[tracks[i].block_type],  
0x01, i+1, 0x1, bt2df[tracks[i].block_type], 
0x00, addr); 
- 
} 
else { 
if (tracks[i].pregap) { 
@@ -471,9 +472,6 @@ 

if (ioctl(fd, CDRIOCSETBLOCKSIZE, &track_info->block_size) < 0) 
err(EX_IOERR, "ioctl(CDRIOCSETBLOCKSIZE)"); 
- 
-       if (track_info->addr >= 0) 
-               lseek(fd, track_info->addr * track_info->block_size, SEEK_SET); 

if (verbose) 
fprintf(stderr, "addr = %d size = %d blocks = %dn", 



http://www.freebsd.org/cgi/query-pr.cgi?pr=36859 
State-Changed-From-To: feedback->closed 
State-Changed-By: sos 
State-Changed-When: Thu Sep 12 07:21:11 PDT 2002 
State-Changed-Why:  
NO feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36859 
>Unformatted:
