kern/62507: atapicam appears to read wrong data

Alan Larson larson at w6yx.stanford.edu
Sat Feb 7 18:10:17 PST 2004


>Number:         62507
>Category:       kern
>Synopsis:       atapicam appears to read wrong data
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 07 18:10:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Alan Larson
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD pc.diadem.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sat Feb  7 15:54:53 PST 2004     larson at pc.diadem.com:/usr/src/sys/compile/LOCAL  i386

>Description:

  It appears that when using atapicam, different data is returned from a given CD.
Attempting to rip a cd with cdda2wav once with /dev/acd0c and once with atapicam 1,0,0
gives different results.

  The number of tracks is correct with the /dev/acd0c, but other things are problems.
With atapicam, the the number of tracks and times is incorrect -- it is as if the
wrong block is being read as the table of contents.



pc:1# cdda2wav -D /dev/acd0c -O wav -B -d99999 -F foo
cdrom device (/dev/acd0c) is not of type generic SCSI. Setting interface to cooked_ioctl.
266240 bytes buffer memory requested, 4 buffers, 27 sectors
#Cdda2wav version 2.0_freebsd_4.8-rc_i386_i386, real time sched., soundcard, libparanoia support
EnableCdda_cooked (CDIOCSETCDDA) is not available...
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 6          yes              no     audio    2
Table of Contents: total tracks:6, (total time 72:49.32)
  1.(11:28.57),  2.(18:02.20),  3.(11:57.38),  4.(10:06.15),  5.(11:29.70),
  6.( 9:42.57)

Table of Contents: starting sectors
  1.(       0),  2.(   51657),  3.(  132827),  4.(  186640),  5.(  232105),
  6.(  283850), lead-out(  327557)
CDINDEX discid: PKFyXqRtPYhgFx2bY9IrjaKib4U-
CDDB discid: 0x5c110f06
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 770414108 bytes.
recording 4367.4266 seconds stereo with 16 bits @ 44100.0 Hz ->'foo'...
overlap:min/max/cur, jitter, percent_done:



pc:2# cdda2wav -D 1,0,0 -O wav -B -d99999 -F foo
Type: ROM, Vendor 'CREATIVE' Model ' CD-RW RW8438E  ' Revision 'FC03' MMC+CDDA
266240 bytes buffer memory requested, 4 buffers, 27 sectors
Read TOC CD Text failed (probably not supported).
#Cdda2wav version 2.0_freebsd_4.8-rc_i386_i386, real time sched., soundcard, libparanoia support
AUDIOtrack pre-emphasis  copy-permitted tracktype channels
      1- 4           no              no     audio    2
Table of Contents: total tracks:3, (total time 8:16.58)
  1.( 3:21.51),  2.( 2:13.40),  4.( 2:39.42)

Table of Contents: starting sectors
  1.(       0),  2.(   15126),  4.(   25141), lead-out(   37108)
CDINDEX discid: j2gBZCg8SD3Gffbep2cf7vXLD.k-
CDDB discid: 0x1401ee03
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 87278060 bytes.
recording 494.7733 seconds stereo with 16 bits @ 44100.0 Hz ->'foo'...
percent_done:



>How-To-Repeat:
 Use kernel with atapicam, run cdda2wav as above.

>Fix:

  Remove atapicam and ata cd drive.  Buy a real scsi card and drive.


	Alan
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list