From owner-freebsd-current Thu Jan 6 17:12:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from acutiator.nacamar.de (mail.nacamar.de [194.162.162.200]) by hub.freebsd.org (Postfix) with ESMTP id 7E29C15753; Thu, 6 Jan 2000 17:12:33 -0800 (PST) (envelope-from rohrbach@mail.nacamar.de) Received: by acutiator.nacamar.de (Postfix, from userid 499) id F212D5F4B; Fri, 7 Jan 2000 02:03:29 +0100 (CET) Date: Fri, 7 Jan 2000 02:03:29 +0100 From: "Karsten W. Rohrbach" To: "Jordan K. Hubbard" Cc: current@freebsd.org, phk@freebsd.org, gibbs@freebsd.org Subject: Re: So, tell me again why we can't read audio CDs in SCSI drives? Message-ID: <20000107020327.B68369@nacamar.net> Reply-To: rohrbach@nacamar.net References: <5510.947202451@zippy.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <5510.947202451@zippy.cdrom.com>; from Jordan K. Hubbard on Thu, Jan 06, 2000 at 03:47:31PM -0800 X-Arbitrary-Number-Of-The-Day: 42 X-Sender: rohrbach@nacamar.net X-Organisation: Nacamar Data Communications GmbH X-Address: Robert-Bosch-Str. 32, 63303 Dreieich, Germany X-Phone: vox: +49 6103 993 870 fax: +49 6103 993 199 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG reading raw audio data off a cd with dd did never work for me... anyway, it would be a good thing(TM) if there was a tool such as cdparanoia under l*n*x that has all that fancy jitter and scratch detection and removal (real goodd error correction) and this ones also really fast (10x speed) when youre reading on a plextor drive (such as my pxw4220t) or something else that has a native mode for extracting audio. i think, theres a port of tosha available, but the last time i tried this one it wouldnt work for me so i used the l*n*x box next to my workstation... /k Jordan K. Hubbard (jkh@zippy.cdrom.com) @ Thu, Jan 06, 2000 at 03:47:31PM -0800: > If I stick an audio CD in my SCSI (rebadged Toshiba) CDRW drive > and try to read data off of it, I get the following behavior: > > root@zippy-> dd if=/dev/rcd0c bs=2k of=/dev/null > dd: /dev/rcd0c: Invalid argument > 0+0 records in > 0+0 records out > > (cd0:ahc0:0:4:0): READ(10). CDB: 28 0 0 0 0 0 0 0 4 0 > (cd0:ahc0:0:4:0): ILLEGAL REQUEST asc:64,0 > (cd0:ahc0:0:4:0): Illegal mode for this track > (cd0:ahc0:0:4:0): cddone: got error 0x16 back > dscheck(#cd/2): b_bcount 512 is not on a sector boundary (ssize 2048) > > and I've gotten this behavior for quite some time. I didn't *use* to > have this behavior, as my mpeg backups of various CDs done on this > same machine can demonstrate, but if we can't even read data off an > audio CD with dd then you can rest assured that utilities like tosha > aren't going to be able to read data either, and that really sucks. > > Drive information: > > cd0 at ahc0 bus 0 target 4 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 8) > cd0: cd present [227322 x 2048 byte records] > > Controller information: > > ahc0: irq 10 at device 4.0 on pci2 > ahc0: aic7850 Single Channel A, SCSI Id=7, 3/255 SCBs > > [This is a BIOS-less Advansys controller, used exclusively for the CD > drive. The machine also has dual on-board 7895 wide controllers > which are used just for disk in order to avoid mixing wide and narrow > devices in (what I consider) less-than-elegant fashion] > > I also say "tell me again" because this issue isn't new and I brought > it up back when this first broke. Justin said it clearly wasn't his > code, SCSI device or no, and phk intimated that maybe it had something > to do with the blockdev stuff and then handed me several patches which > didn't have any effect on the problem. All I know is that my FreeBSD-current > box has lost a powerful and popular capability and I'm more than willing > to test patches or work with someone in fixing it. This area of the > kernel isn't my forte', but my love of mp3s may send me in there at > some point if this is still broken as we get close to code freeze. :-) > > - Jordan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- > Hackers know all the right MOVs. http://www.nacamar.de - http://www.nacamar.net - http://www.webmonster.de http://www.apache.de - http://www.quakeforum.de - finger rohrbach@nacamar.net KR433/KR11-RIPE - PGP-KFP = F9 A0 DF 91 74 07 6A 1C 5F 0B E0 6B 4D CD 8C 44 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message