Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect DVD-R vs DVD-ROM vs DVD-RW drives



Martin --

I like to find out how I can find out if an DVD drive is a DVD-R or a DVD-ROM or DVD_RAM drive. I did some checking in the registry and found a key called DVD features. Looking into the "IOSCSIMultimediaCommandsDevice.h" file I find constants that pretty much match the feature key from the registry.
What is confusing is that on my PowerBook G4 17" (SuperDrive) is identified as a Matshita DVD-R UJ-815. If I check the DVD Features (0x77) it revels that this should be a DVD-RW drive. Is that true or is the DVD Features information wrong?

The DVD Features flags are filled in by issuing several GET_CONFIGURATION commands and a MODE_SENSE_10 command to inspect the CD/DVD Mechanical Capabilities flags. We report what the drive reports. If the drive is not accurate with what it reports, we can make a workaround driver for it (we already do this for some drives which report CDDA Stream Accuracy but don't actually do that). Please file a Radar bug if you see behavior like that.

If you are interested in the code which does this, you can check out IOSCSIArchitectureModelFamily from the latest Darwin source tarballs.

Thanks,

-- Chris

------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax: (408) 862-7577
email: email@hidden
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >How to detect DVD-R vs DVD-ROM vs DVD-RW drives (From: Martin Bestmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.