rocky
2334c3c7cc
Move scsi mmc discmode determination to scsi-mmc.
...
Add discmode for CD-i.
2004-12-04 11:50:40 +00:00
rocky
9e95befc7f
Justin B Ruggles <jruggle@earthlink.net> reports:
...
GNU/Linux ioctl(.., CDROM_DISC_STATUS does not return "CD DATA Form
2" for SVCD's when I know they are form 2, so we read a FULL TOC in
an attempt to make it more accurate. Most of the info was obtained
the SCSI MMC draft spec revision 10a from
http://www.t10.org/ftp/t10/drafts/mmc/mmc-r10a.pdf
Pages 56 to 62 give more details. Libcdio does not have CD-i as a
discmode, so I just have it treat CD-i as if it is CD-XA.
This doesn't work for the SVCD I tried but it is probably a step in
the right direction. And when things settle down, it should be done on
other OS drivers as well.
2004-12-04 05:49:25 +00:00
rocky
f0f6aa9441
Make sure get_hwinfo is initialized. Add cdio_ in front of to/from_bcd8
2004-11-20 12:41:21 +00:00
rocky
30a19a1909
Various valgrind-detected memory leaks and unitialized variable errors.
2004-10-26 07:34:41 +00:00
rocky
c1905e6879
configure.ac: now in 0.71cvs
...
*.c: lint-like changes. Tested on Sun's SUNPRO cc compiler.
Removed feild initialization lingo (even if it is C99).
2004-09-03 23:20:11 +00:00
rocky
19991ded7b
add psz_ to hwinfo type.
...
_cdio_linux.c: go back to using SCSI MMC drive cap routine.
2004-08-27 11:53:38 +00:00
rocky
fb3d481d96
scsi_mmc.c: more aggressive about getting drive capabilites. Try to
...
get length first. Also try CAPABILITIES_PAGEs as well as ALL_PAGEs.
2004-08-27 01:24:40 +00:00
rocky
df2eb98bad
Small variable name changes
2004-08-26 10:44:38 +00:00
rocky
8ddd3bf19f
Initialize gen.toc_init
2004-08-16 01:47:49 +00:00
rocky
c8000d60e9
_cdio_osx.c: first attempt at issuing general SCSI-MMC passthrough command.
...
others: small changes.
2004-08-16 00:52:53 +00:00
rocky
6725196b0f
lib/*.c: create and use get_cdtext_generic.
...
lib/generic.h: prototypes for _cdio_generic.c (move out of _cdio_private.h)
example/sample10.c, src/util.c: small print format improvement
2004-08-10 11:58:14 +00:00
rocky
e39890f7c8
1st attempt to reduce duplicate CD-Text code. (It works on GNU/Linux)...
2004-08-10 03:03:27 +00:00
rocky
87f0c9334f
Add b_cdtext_init and b_cdtext_error to generic structure. If we
...
can't read cdtext once, mark as an error and don't try to read again.
2004-08-07 22:58:51 +00:00
rocky
ef9b5810fd
As with Win32 was passing the wrong pointer (p_cdio instead of
...
p_env). CD-TEXT now sometimes works on GNU/Linux!
2004-08-05 03:58:46 +00:00
rocky
b1616ea6d5
Add scsi_mmc_get_hwinfo.
2004-07-31 07:43:26 +00:00
rocky
0d8a3e2a82
Tighten code by putting more generic routines in cdio_generic:
...
to get first track number and number of tracks
to get discmode
everybody now has gen.i_tracks and gen.i_first_track.
test/* format of output changed yet again.
2004-07-29 02:16:20 +00:00
rocky
5c26700f3e
Make setting read lengths more precise (and correct).
2004-07-28 11:45:21 +00:00
rocky
7716188c38
Make sure milliseconds get converted to seconds if needed.
...
Some function renaming, and a typo in a DVD book type.
2004-07-28 01:09:59 +00:00
rocky
db337e5665
More consolidation of code by adding routines to scsi_mmc.
2004-07-27 01:06:01 +00:00
rocky
50532e7025
Try to make get_dvd_physical a common routine. (Haven't tested yet.)
2004-07-26 03:58:25 +00:00
rocky
20e8974df8
Big change!
...
We now are starting to have universal MMC routines. To do this we need
to have function pointers to the OS-specific MMC send/run command.
Expect some breakage. Down the line though this will increase code reuse,
reliabilty, and make the library more user-customizable.
2004-07-26 02:54:37 +00:00
rocky
fd5e6d1243
Reduce overall number of CD disc modes. I thing the main purpose
...
that will be used is to separate CD Audio from CD Data, XA and DVD's.
On GNU/Linux it seems that the implementation is a bit artificial.
2004-07-25 18:37:09 +00:00
rocky
5f36bce150
Pedantic ordering.
2004-07-25 17:35:02 +00:00
rocky
dce714ce56
Typo and small formatting changes.
2004-07-25 15:47:11 +00:00
rocky
85b8e52fe0
Better testing to see if TOC is initialized by read_toc_linux before
...
using info based on that.
Order of routines alphabetized a little bit better.
2004-07-25 15:29:51 +00:00
rocky
1dfdba7b7d
sector.h: add more DVD types.
...
_cdio_linux.c: Add ability in GNU/Linux to determine if a drive has a
DVD in it.
cd-info: show the drive type.
2004-07-25 03:05:18 +00:00
rocky
8ec061202a
freebsd: add scsi_mmc_cmd_run and use it.
...
Others: small changes.
2004-07-24 05:42:09 +00:00
rocky
2040c4abf7
Wasn't allowing call of new scsi_mmc_run_cmd.
2004-07-22 11:00:59 +00:00
rocky
2d92a271ec
Fell into the a common C pitfall
2004-07-22 10:13:08 +00:00
rocky
3263eeefae
Work on SCSI MMC layer. Some things may be broken.
2004-07-22 09:52:17 +00:00
rocky
02872bfb2f
Add get_discmode to return what kind of CD or DVD we've got. This is
...
no where near finished. In fact I just started it on GNU/Linux.
CD-TEXT on GNU/Linux: turn "warning" into "info". Reduce the chance of
error (although we still don't get the CD-TEXT.)
2004-07-21 10:19:20 +00:00
rocky
8a99889f49
Add READTOC format defines.
2004-07-19 01:13:31 +00:00
rocky
212b701ef6
MMC mode page capabilities gone over. Some more were added.
2004-07-18 03:35:07 +00:00
rocky
e84c6316b0
Expand getting drive capabilities. We now have 3 masks where we had
...
only one before.
2004-07-17 22:16:46 +00:00
rocky
a94c2a2728
Add common routine to extract cdtext data.
2004-07-17 08:59:44 +00:00
rocky
d07ed75256
Corrections for new cdtext interface.
...
Some more precise track handling when the first track is not 1.
Some of this needs to be tested.
2004-07-17 02:43:41 +00:00
rocky
0c36493f8d
Expand get_cdtext to include a track number. 0 = disc info.
2004-07-17 02:18:26 +00:00
rocky
c77831ff51
cmd -> cdb to match MMC terminology and Solaris naming.
2004-07-15 11:36:12 +00:00
rocky
14646f641f
MSWindows: comment corrections
...
_cdio_linux.c: perhaps closer to getting CD TEXT correct.
2004-07-15 02:24:29 +00:00
rocky
2649b729a1
Yet more code cleanups.
2004-07-13 04:33:05 +00:00
rocky
ed6f60868d
Start to merge in cue parsing from cuetools. Also moves forward CDTEXT
...
from a different direction.
2004-07-09 01:05:31 +00:00
rocky
65fd7d3b43
Regularize MMC commands more. Add ALLOW_PREVENT_MEDIUM.
...
Start CDTEXT. _cdio_linux.c: better at reporting errors.
2004-07-08 01:27:57 +00:00
rocky
52424fda4d
Revert last change. Need to return char * for MCN. Also replace that
...
magic number 100 with MAX_TRACKS+1.
2004-06-27 16:36:38 +00:00
rocky
79ea450a56
Add type for holding MCN and ISRC. Add type for session
...
Replace magic constant 100 with CDIO_MAX_TRACK+1 where appropriate.
_cdio_osx: save session number and presumably some tighter coding.
nrg.c: make sure we add zero byte to end of MCN.
2004-06-27 15:29:20 +00:00
rocky
e21255ec1a
Reduce cut and paste - add common routine, to _cdio_generic.c:
...
cdio_read_mode1_sector.
2004-06-26 00:39:00 +00:00
rocky
238b74ab7f
fewer error exits in drivers. Instead, a failure code is returned.
2004-06-25 21:10:36 +00:00
rocky
eca77ca5ce
Comment fixes.
2004-06-06 11:44:51 +00:00
rocky
8d0e6cd56e
Doc fix.
2004-06-06 11:38:33 +00:00
rocky
c18f5a70b3
Remove another first_track = 1 assumption.
2004-06-06 11:30:48 +00:00
rocky
eed4e28a19
Back off of testing for unread TOC. Probably a good idea to do lazy
...
TOC reading.
2004-06-06 11:25:13 +00:00