Commit Graph

80 Commits

Author SHA1 Message Date
rocky
15e74d015c Add better discmode detection via FULLTOC that we use on GNU/Linux. 2004-12-06 05:30:43 +00:00
rocky
46cfdd10aa _cdio_sunos.c: fix bug in audio mode reading.
*.c: replcate {from,to}_bcd8 with corresponding cdio_ names.
2004-11-18 01:56:09 +00:00
rocky
d21266807a Add explicit NULL for get_hwinfo. 2004-11-13 23:36:22 +00:00
rocky
8ffff65053 env -> p_env 2004-11-13 23:33:57 +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
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
2da73da448 compilation fix 2004-08-10 03:10:46 +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
imacintosh
3485f85eba Now uses DKIOCGMEDIAINFO to get discmode and handles Soalris media 2004-08-03 11:30:42 +00:00
rocky
f0a6aadad4 compilation fix. 2004-07-29 02:27:04 +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
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
c0c0077f3d Yet more alternate "_generic" to simplify CD-ROM drivers (like all of them
except Windows) were there is in fact only one MMC passthrough command.
2004-07-27 02:45:16 +00:00
rocky
2b67971152 Compilation fixes. Added get_discmode. 2004-07-27 01:36:37 +00:00
rocky
db337e5665 More consolidation of code by adding routines to scsi_mmc. 2004-07-27 01:06:01 +00:00
rocky
532a2d0332 Oops mande MCN buffer too short. More intelligible and tighter code. 2004-07-23 10:37:17 +00:00
rocky
c523990c75 More small changes. 2004-07-23 03:48:16 +00:00
rocky
33653c9941 Small changes - perhaps not really in the category of bugfixes. 2004-07-23 02:54:34 +00:00
rocky
3f98b9a7bb Use common SCSI MMC routine where possible. 2004-07-23 02:23:49 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +00:00
rocky
fa0d5bf3d9 Initialize/null out drive capabilities before setting them. 2004-07-19 01:29:04 +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
e44bf7fb40 Make use of more CDIO_CDROM_LBA and CDIO_CDROM_MSF #defines. 2004-07-17 15:43:57 +00:00
rocky
7e18d89c8a Add common defines for some subchannel commands, and use them. 2004-07-17 15:31:00 +00:00
rocky
d0379a08c1 Fix for Sunos and new CD-TEXT API. 2004-07-17 09:35:00 +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
f4aaea4a83 insignificant changes 2004-07-16 11:37:12 +00:00
rocky
d78dfc43ac Get MCN now works.
Retrieving CD TEXT no longer causes core dump. (It still doesn't give
useful info back though.)

Code cleanups.
2004-07-15 11:55:45 +00:00
rocky
268d5c9926 Closer to getting CDTEXT working. 2004-07-15 04:03:52 +00:00
rocky
e4a0a1fa82 Small changes. 2004-07-08 06:33:22 +00:00
rocky
4058457e52 Sun drive capabilities improved. Sun and Windows ASPI use common
MODE_SENSE defines defines now.
2004-07-08 06:29:45 +00:00
rocky
29c858060f #define changed name. Fix compilation error. 2004-07-08 05:19:27 +00:00
rocky
b8ee659109 Compilation fix. Remove magic number 100. Use common mmc routine for
drive capabilites.
2004-06-27 21:57:45 +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
b0164d215f Move include of glob.h inside conditional Solaris include since that's
only where it is needed. configure on cygwin erroneously sets
HAVE_GLOB_H and although that too should be fixed, there's no reason
to have that failure cause one here.
2004-06-13 20:38:58 +00:00
rocky
eca77ca5ce Comment fixes. 2004-06-06 11:44:51 +00:00
rocky
fe4a50c886 Remove another first track is 1 assumption. 2004-06-06 11:37:59 +00:00
rocky
b3f588e60b Compilation fixes. 2004-06-06 10:54:22 +00:00
rocky
0bb7fadf26 More work on removing assumption that first_track is 1. 2004-06-06 10:50:55 +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
aab600b46a Make scsi_mmc.h public. 2004-05-10 03:28:51 +00:00
rocky
ed8e9b08ad Detect disc-image and don't open this device driver for that. 2004-05-06 01:08:43 +00:00