On Wed, Aug 20, 2003 at 07:24:21AM -0700, Lars Eggert wrote:
> I'm not sure what you mean by "end user work." The issue this patch 
> addresses is device naming: ATA optical drives on FreeBSD are named 
> "/dev/cdX", SCSI ones "/dev/acdX", where X is a number. "cd" and "acd" 
> are the names of the drivers that handle the respective devices.

When you said "it will require more work", I just wanted to know if it
was developer work, or end user work...

> With the patch freevo at least detects the drive. I have not yet been 
> able to make it play audio CDs or even recognize when a media is in the 
> drive, shouldn't it look up the meta-information? I have another patch 
> ready that at least fixes media ejection; FreeBSD has no "eject" command.

The main reason you might have problems with that, is that we have to
use Linux ioctl's to identify the media; so if there are BSD
equivelants for those, we can add them.

i.e.
CDROM_DRIVE_STATUS=0x5326
CDSL_CURRENT=( (int ) ( ~ 0 >> 1 ) )
CDS_DISC_OK=4
CDROM_DISC_STATUS=0x5327
CDS_AUDIO=100
CDS_MIXED=105
CDROM_SELECT_SPEED=0x5322

Those are the Linux IOCTL's for certain types of CDs. They're taken
from cdrom.py (in Python) which may also exist for the BSDs; as for
the audio CDs, we have to read the TOC from the drive so we can do a
CD lookup; this is done via a C Python module; it would also need an
equivelant.

If there is a CDROM.py for FreeBSD, is should also have an ioctl for
eject; under linux it's an ioctl to '0x5309'

> Thanks for the quick response!

No problem... I'm always happy to avoid platform-ness, since I don't
exactly use Linux-only myself; it's always annoying porting things to
my Mac because of the Linux-isms...

Aubin


-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to