From owner-freebsd-bugs@FreeBSD.ORG Sat Feb 7 18:10:17 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04FE016A4CE for ; Sat, 7 Feb 2004 18:10:17 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCF9B43D1F for ; Sat, 7 Feb 2004 18:10:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i182AGbv065028 for ; Sat, 7 Feb 2004 18:10:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i182AGTx065027; Sat, 7 Feb 2004 18:10:16 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 7 Feb 2004 18:10:16 -0800 (PST) Resent-Message-Id: <200402080210.i182AGTx065027@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Larson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA0E516A4CE for ; Sat, 7 Feb 2004 18:01:24 -0800 (PST) Received: from smtp2.Stanford.EDU (smtp2.Stanford.EDU [171.67.16.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id B141F43D1D for ; Sat, 7 Feb 2004 18:01:24 -0800 (PST) (envelope-from larson@w6yx.stanford.edu) Received: from w6yx.stanford.edu (w6yx.Stanford.EDU [171.64.23.31]) by smtp2.Stanford.EDU (8.12.10/8.12.10) with ESMTP id i1821NJX010598 for ; Sat, 7 Feb 2004 18:01:23 -0800 Received: from w6yx.stanford.edu (localhost [127.0.0.1]) by w6yx.stanford.edu (8.12.9p2/8.12.9) with ESMTP id i1821Nri016873 for ; Sat, 7 Feb 2004 18:01:23 -0800 (PST) (envelope-from larson@w6yx.stanford.edu) Received: (from larson@localhost) by w6yx.stanford.edu (8.12.9p2/8.12.9/Submit) id i1821MC6016872; Sat, 7 Feb 2004 18:01:22 -0800 (PST) (envelope-from larson) Message-Id: <200402080201.i1821MC6016872@w6yx.stanford.edu> Date: Sat, 7 Feb 2004 18:01:22 -0800 (PST) From: Alan Larson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/62507: atapicam appears to read wrong data X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alan Larson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2004 02:10:17 -0000 >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@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: