*BSD News Article 74986


Return to BSD News archive

#! rnews 2527 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!hunter.premier.net!op.net!news.mathworks.com!newsfeed.internetmci.com!news.msfc.nasa.gov!bcm.tmc.edu!cs.utexas.edu!uwm.edu!math.ohio-state.edu!jussieu.fr!rain.fr!speedy.grolier.fr!usenet
From: Un L'Unique <Un@grolier.Fr>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: CDROM won't play audio CD & Silent SoundBlaster16
Date: Mon, 29 Jul 1996 21:38:26 -0700
Organization: Grolier Interactive Europe
Lines: 52
Message-ID: <31FD91C2.41C67EA6@grolier.Fr>
References: <31F9716E.ABD322C@grolier.Fr> <ch4n30l6y2w.fsf@bats.comp.vuw.ac.nz>
NNTP-Posting-Host: gatekeeper.grolier.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b4 (X11; I; BSD/386 uname failed)

milton wrote:
> 
>   This patch enables the device to be properly detected and configured
>   to audio. It is having troubles retrieving the capabilities
>   information from the CD-ROM.
> 
>   After you patch the sources, you may still come across a message
>   like this:
>     wcd0: medium type unknown
I never get this message.


>   seen this behaviour on my Pioneer, but under the NetBSD driver.
> 
> M.
> 
>   The patch follows:
> 
> *** atapi.c.ctm Tue Jul 23 23:28:07 1996
thanks for the patch, but I can't apply it. patch won't:
Hmm...  Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** atapi.c.ctm Tue Jul 23 23:28:07 1996
|--- atapi.c     Thu Jul 25 21:59:28 1996
--------------------------
Patching file atapi.c using Plan A...
Hunk #1 failed at 651.
Hunk #2 failed at 663.
Hunk #3 failed at 678.
3 out of 3 hunks failed--saving rejects to atapi.c.rej
done

Trying to make the patch manualy failed because the label 'again' was not defined in
the function ( atapi_io() )were the patch add it.
I add this label at the begining of the function and now I got during boot:
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (atapi): <NEC                 CD-ROM DRIVE:282/3.04>, removable, dma, iordy
wcd0: 1376Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray
wcd0: medium type unknown, unlocked

this was better and I got the message you noticed.
BUT... I can't play audio. I got the same error message from:
xmcd:
CD audio: ioclt error on /dev/rwcd0c: cmd=CDIOREADCENTRYS error=22
same error than before.

from xmcdplayer:
ioctl( cdioreadcentrys): invalid argument


S.R.