Commit Graph

75 Commits

Author SHA1 Message Date
rocky
30a19a1909 Various valgrind-detected memory leaks and unitialized variable errors. 2004-10-26 07:34:41 +00:00
rocky
8ddd3bf19f Initialize gen.toc_init 2004-08-16 01:47:49 +00:00
rocky
b9da06c3b5 Now that all of the generic cdtext code is in place, it is trivial to add CD-Text support to FreeBSD. 2004-08-10 12:14:45 +00:00
rocky
993ec7356f Add a couple of "features".
freebsd_ioctl.c: hopefully less-erroneous MCN extraction.
2004-08-10 02:29:46 +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
2526491232 Attempt getting disc mode. 2004-08-07 10:20:40 +00:00
rocky
c10819c3e6 FreeBSD and gcc < 3.0 fixes
Some variable name changes to match style.
2004-08-07 09:42:34 +00:00
rocky
cecb0b1292 Compilation bug: need the conversion assignment. 2004-08-07 09:25:49 +00:00
rocky
476e01137a Don't need to call initialization of TOC here. Was done to mask a bug
somewhere else that has since (I think) been fixed.
2004-08-05 04:01:35 +00:00
rocky
62d49b41f5 Initialization bugs. 2004-08-03 12:45:40 +00:00
rocky
37e8226f21 Compilation fix. 2004-08-01 11:51:20 +00:00
rocky
42fb992d30 Initialize ccb. Could this be the problem? 2004-08-01 11:36:35 +00:00
rocky
83f987275e scsi_mmc.c: doc change
FreeBSD: use generic routines more often. Initialize TOC before
getting drive capabilities (seems to be desired, not completely sure
or sure why this would be so.)
2004-08-01 11:28:00 +00:00
rocky
008d86d309 More in line with rest of MMC stuff. 2004-07-31 09:26:31 +00:00
rocky
4739862e2c source_name is now in gen. 2004-07-31 09:15:25 +00:00
rocky
0703acb771 Compilation fix. 2004-07-31 09:14:59 +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
336970c6e3 We use p_env now. 2004-07-25 16:16:55 +00:00
rocky
98cd2e0e62 Remove duplicate toc_init field and use gen.toc_init like other
drivers use.
2004-07-25 15:40:02 +00:00
rocky
18d135a99b Set initialization of TOC when that's done. Test for TOC
initialization success in routines that depend on that.
2004-07-25 11:15:08 +00:00
rocky
803470bfe1 Add some checks for failed initialization and NULL pointers. Thanks
to Steve Schultz.
2004-07-25 09:39:40 +00:00
rocky
c81ea6b678 FreeBSD compilation fixes. 2004-07-24 11:50:50 +00:00
rocky
04cb45f9ee Allow scsi mmc commands to get invoked from outside (for CAM access). 2004-07-24 06:06:22 +00:00
rocky
3087bc0784 Add get_drive_cap and generic get_mcn routines. 2004-07-24 05:57:20 +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
cc3c3fa4db Typo. 2004-07-23 23:46:53 +00:00
rocky
3fe90481c1 Reinstate MCN guess. 2004-07-23 10:43:21 +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
f40386d242 Compilation fix from Steven M. Schultz. 2004-07-18 20:40:01 +00:00
rocky
23d5c86c57 Some compilation fixes from Steven M. Schultz. Thanks!
get_drive_cap_freebsd_cam updated to expanded API.
2004-07-18 04:19:48 +00:00
rocky
7e18d89c8a Add common defines for some subchannel commands, and use them. 2004-07-17 15:31:00 +00:00
rocky
29c858060f #define changed name. Fix compilation error. 2004-07-08 05:19:27 +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
f313c9f68b Add common SCSI MMC routine for getting drive capabilities. 2004-06-27 22:00:08 +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
3ca533663d Don't terminate on error but just return a failure and let the
caller decide to exit or not.
2004-06-25 20:49:56 +00:00
rocky
805ce0d9ee mode1 reading fixed up. Some cdio_error's turned into cdio_warn's as
we really shouldn't abort in the driver if there is an error
discovered but instead just return failure.
2004-06-25 20:45:41 +00:00
rocky
bf964b72fd Add boilerplate Makefiles for convenience 2004-06-20 15:35:31 +00:00
rocky
001bd6360b Put the right suffix on ATAPI devices.
More const's, fewer void *'s.
2004-06-19 16:34:45 +00:00
rocky
03e7cde7fd Add "c" at end of drive specification if not FreeBSD 5.x.
Handle not getting default drive more gracefully.

As always changes based on suggestions from Heiner.
2004-06-19 11:07:55 +00:00
rocky
6ea2ad3b66 Compilation lint 2004-06-12 18:45:54 +00:00
rocky
740fdb0e4a Some of the needed changes for FreeBSD 5.x. More may be needed.
From Heiner - thanks!
2004-06-12 17:40:07 +00:00
rocky
f9da630e9d Change a couple of places to use scsi_mmc.h more. 2004-06-09 10:59:42 +00:00
rocky
0441b2f09d CAM mode2 form1 and form2 reading fixes.
Default device lists default to CAM device name.
Simplify, correct and make more complete CAM support.

With the above we can finally use libcdio for cd-read, vcdimager and
probably vlc and xine.

Many thanks to Heiner.
2004-06-05 02:47:49 +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
6f78156edb Some variable renaming. env is the environment, user_data is what is
passed in.
2004-05-31 14:53:07 +00:00