*BSD News Article 70587


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!swrinde!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!lerc.nasa.gov!purdue!mozo.cc.purdue.edu!news
From: Benjamin Lewis <blewis@vet.purdue.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: IDE CD-ROM - audio problems
Date: 10 Jun 1996 08:23:54 -0500
Organization: Purdue University
Lines: 132
Sender: blewis@ylana.vet.purdue.edu
Message-ID: <87k9xf23o5.fsf@ylana.vet.purdue.edu>
NNTP-Posting-Host: vet.vet.purdue.edu
X-Newsreader: Gnus v5.2.14/XEmacs 19.13


Hi,

I have an Acer 767 6x IDE CD-ROM drive that works pretty well with 
FreeBSD-current (also the May SNAP) in that I can mount/use filesystem CDs 
and it halfway works with audio CDs.  I'd like to see if I can get it 
working completely with audio CDs.

What's wrong:
	I can get the CD drive to play the entire disk, or selected
	segments of the disk selected by TIME (i.e. 3:35 to 4:35 plays
	the appropriate minute), but I cannot get it to play a random
	TRACK.

	I hate to say it, but Win95 can control the CD-ROM drive
	correctly, and as far as I can tell there is no special
	driver installed.  This suggests to me that it is _possible_
	to get this drive working correctly.

Hardware stuff:
	A.I.R. 54TPI motherboard w/ P5133 & 32MB
	The motherboard has an on-board aic7880 which controls my single
		SCSI hard drive.
	The CD-ROM is on the first IDE controller all by itself and is
		the only IDE device.  It is jumpered as "Master."


uname -a (reformatted):
	FreeBSD ylana.vet.purdue.edu 2.2-CURRENT 
	FreeBSD 2.2-CURRENT #0: Mon Jun 10 04:37:59 EST 1996     
	blewis@ylana.vet.purdue.edu:/usr/src/sys/compile/YLANA  i386
(kernel was compiled from sources updated by ctm a few minutes before
 last ctm delta: src-cur.1871.gz)

dmesg output:
	wdc0 at 0x1f0-0x1f7 irq 14 on isa
	wdc0: unit 0 (atapi): <ACER CD-767E/O/V1.5>, removable, intr, iordy
	atapi0.0: unknown phase 
(The "atapi0.0" line looks fishy, eh? I don't think I've seen that in others'
 dmesg listings)

config file stuff:
	
	controller      wdc0    at isa? port "IO_WD1" bio irq 14 vector wdintr

	options         ATAPI           #Enable ATAPI support for IDE bus
	options         ATAPI_STATIC    #Don't do it as an LKM
	device          wcd0    #IDE CD-ROM

cdcontrol -f /dev/wcd0c results: 
   
   ylana:/home/blewis [103]>cdcontrol -f /dev/wcd0c
   Compact Disc Control utility, version 2.0
   Type `?' for command list

   cdcontrol> info
   Starting track = 1, ending track = 10, TOC size = 90 bytes
   track     start  duration   block  length   type
   -------------------------------------------------
   1   0:08.62  59:15.46     512  266521  audio
   2  59:22.33  44:37.54  267033  200679  audio
   3  103:58.12  73:35.70  467712  331045  audio
   4  177:32.07  70:55.01  798757  318976  audio
   5  248:25.08  216:32.49  1117733  -826917  audio
   6  64:39.41  101:48.71  290816  458021  audio
   7  166:26.37  45:49.18  748837  206043  audio
   8  212:13.55  201:46.13  954880  -893403  audio
   9  13:41.52  72:36.69   61477  326619  audio
   10  86:16.46  103:46.64  388096  -182352  audio
   170  45:45.19         -  205744       -      -
   cdcontrol> play
   cdcontrol> status
   Audio status = 17<playing>, current track = 1, current position = 0:01.26
   Media catalog is inactive
   Left volume = 32, right volume = 32
   cdcontrol> status
   Audio status = 17<playing>, current track = 1, current position = 0:16.61
   Media catalog is inactive
   Left volume = 32, right volume = 32
   cdcontrol> play 2
   cdcontrol> status
   Audio status = 19<completed>, current track = 110, current position = 13:37.15
   Media catalog is inactive, number ";"
   Left volume = 32, right volume = 32
   cdcontrol>  play 3
   cdcontrol: Input/output error
   cdcontrol>   play 4:30 4:40
   cdcontrol> status
   Audio status = 17<playing>, current track = 2, current position = 0:12.10
   Media catalog is inactive, number "%"
   Left volume = 32, right volume = 32
   cdcontrol> status
   Audio status = 19<completed>, current track = 2, current position = 0:20.49
   Media catalog is inactive, number "("
   Left volume = 32, right volume = 32
   cdcontrol> play 3 4
   cdcontrol: Input/output error
   cdcontrol> play 111
   cdcontrol> status
   Audio status = 17<playing>, current track = 7, current position = 0:12.01
   ("dia catalog is inactive, number "
   Left volume = 32, right volume = 32
   cdcontrol>  play 112
   cdcontrol> play 113
   cdcontrol> st
   Audio status = 17<playing>, current track = 4, current position = 3:37.49
   Media catalog is inactive, number "
   "
   Left volume = 32, right volume = 32
   cdcontrol> quit

(Note: when I asked it to play #'s 111, 112, & 113, the drive was doing what
 the "status" commands indicated)


Console messages (whenever Input/output error is produced above):
	wcd0: i/o error, status=51<ready,opdone,check>, error=40
	wcd0: i/o error, status=51<ready,opdone,check>, error=40
	wcd0: i/o error, status=51<ready,opdone,check>, error=40



It looks to me as though something(s) isn't getting initialized properly, and
there is just junk in some structure somewhere (TOC entries, media catalog
numbers).

Any ideas?

Thanks,
	-Ben
-- 
Benjamin Lewis - blewis@vet.purdue.edu