Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2002 05:54:35 -0700
From:      Darren Pilgrim <dmp@pantherdragon.org>
To:        noackjr@compgeek.com
Cc:        Brooks Davis <brooks@one-eyed-alien.net>, freebsd-questions@freebsd.org
Subject:   Re: A working command-line ATAPI-capable audio CD player?
Message-ID:  <3D1C5C8B.DB25D012@pantherdragon.org>
References:  <NFBBIJDHKLKEJHKFMLBHEEEBCCAA.noackjr@compgeek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jon Noack wrote:
> 
> Is this a DMA issue?  Try 'sysctl hw.ata.atapi_dma=1' and then see what it
> returns.

I'm utterly dumbfounded on this one.  I was able to work around the
problem with a hardware swap, but the circumstances are truly strange.
Read on...

The problem drive is a generic 50x drive.  The replacement drive is a
Toshiba XM-6402B.  The problem machine is called spark.  My test
machine is called hackbox.  When the generic drive is in spark, it
won't play CDs.  When in hackbox it will.  When the Toshiba drive is in
either box it will play CDs.  Additionally, in all instances the drives
probe and operate properly at UDMA33 except when the generic drive is
in spark, when it will only probe and work at PIO4.  There is a history
of the generic drive in spark throwing DMA errors on me, and at one
point I forced the drive into PIO mode via hw.atamodes.  I did remove
the line from /etc/rc.local that set this.  There otherwise was and is
no setting anywhere on either system to explain this.  Both machines
are otherwise identical in hardware and software (4.5-R mirrored).

> From: owner-freebsd-questions@FreeBSD.ORG
> On Behalf Of Darren Pilgrim
> 
> Brooks Davis wrote:
> > On Thu, Jun 27, 2002 at 03:46:06PM -0700, Darren Pilgrim wrote:
> > > After exhausting the ports tree and several search engines I have not
> > > been able to find a single CD player that works.  Everything I've found,
> > > whether it be a port or not, doesn't work for one of the following
> > > reasons:
> > >
> > > X/Gnome/KDE/whatever is required.
> > > The source tarball is unfetchable (non-ports).
> > > It won't compile (non-ports).
> > > Is limited to SCSI drives only (e.g., ports/audio/cdplay).
> > >
> > > Does anyone know of any command-line, ATAPI-compatible CD players for
> > > FreeBSD?
> >
> > If all you want to do is press play/stop, cdcontrol works.
> 
> cdcontrol doesn't seem to work either:
> 
> 15:59:09 dmp@spark$ su -
> Password:
> 15:59:12 root@spark# cdcontrol -v -f /dev/acd0c info
> Starting track = 1, ending track = 13, TOC size = 114 bytes
> track     start  duration   block  length   type
> -------------------------------------------------
>     1   0:02.33   4:28.42      33   19992  audio
>     2   4:29.00   5:05.45   20025   22770  audio
>     3   9:32.45   4:41.08   42795   20933  audio
>     4  14:11.53   5:48.40   63728   25990  audio
>     5  19:58.18   5:22.42   89718   24042  audio
>     6  25:18.60   4:34.53  113760   20453  audio
>     7  29:51.38   4:23.45  134213   19620  audio
>     8  34:13.08   5:54.47  153833   26447  audio
>     9  40:05.55   4:28.70  180280   20020  audio
>    10  44:32.50   4:38.28  200300   20728  audio
>    11  49:09.03   4:43.02  221028   21077  audio
>    12  53:50.05   6:01.20  242105   26945  audio
>    13  59:49.25   4:33.38  269050   20363  audio
>   170  64:20.63         -  289413       -      -
> 15:59:22 root@spark# cdcontrol -v -f /dev/acd0c play 1 13
> 16:01:04 root@spark#
> 
> Meanwhile, in /var/log/messages:
> 
> Jun 27 15:59:12 spark su: dmp to root on /dev/ttyp0
> Jun 27 16:01:04 spark /kernel: acd0: PLAY_BIG - ILLEGAL REQUEST asc=20
> ascq=00 error=01
> 
> That is the same error message that ports/audio/cd-console gave me.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D1C5C8B.DB25D012>