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
rocky
0bb7fadf26
More work on removing assumption that first_track is 1.
2004-06-06 10:50:55 +00:00
rocky
4ebd2a09f0
Minor coding changes.
2004-06-03 08:50:30 +00:00
rocky
5e2642af4b
Remove some of the bogus assume 1 is first track.
...
Renamings: env -> user_data
_obj -> env
2004-06-02 00:43:53 +00:00
rocky
376e021218
Hopefully improve names. "user_data" comes from user. "env" an
...
environment is really what this is. "obj" is just to vague.
2004-05-31 12:29:09 +00:00
rocky
92ab8ff36d
Remove some of the bogosity in assuming the first track starts at 1.
...
(Probably will be useful on multi-session CD's).
2004-05-27 10:58:11 +00:00
rocky
cb7c0e870a
Go over FreeBSD code based on output from Heiner.
...
Hopefully 3 bugs are fixed:
- we get the leadout track now, no core dumps
- MSF reporting is corrected
- track format and mode
_cdio_linux.c: use cdio #define rather than GNU/Linux one.
2004-05-13 04:32:12 +00:00
rocky
aab600b46a
Make scsi_mmc.h public.
2004-05-10 03:28:51 +00:00
rocky
a41b31b805
_cdio_freebsd.c: is now in FreeBSD (with some cam code)
...
_cdio_linux.c - minor name changes.
2004-05-06 01:21:29 +00:00
rocky
7f10dab1a1
Small fixes.
2004-05-05 02:47:18 +00:00
rocky
8c0d08b480
Don't give "source not a device message" for uniformity with other drivers.
2004-05-04 01:57:23 +00:00
rocky
e853206824
Compilation fixes and modulization improvements.
2004-04-30 21:36:53 +00:00
rocky
7f8cefed11
Add cdio_open_am to allow specifying an access method use for
...
reading/controlling CD.
2004-04-30 06:54:15 +00:00