Commit Graph

19 Commits

Author SHA1 Message Date
rocky
2f8e8b9529 Was giving a failure status on eject when it succeeded. The failure
was because ioctl(fd, BLKRRPART) didn't succeed. Turn this into a
cdio_info warning instead.
2005-11-07 07:41:29 +00:00
rocky
fa0848bf90 Try to regularize naming better. More mmc_ -> cdio_mmc_
Add more debug variables to be able to get at enum values in a debugger.
2005-10-21 11:13:54 +00:00
rocky
342d42412a Ooops -- syntax error. 2005-07-23 22:05:29 +00:00
rocky
a42209123c Doc changes. 2005-07-23 21:39:18 +00:00
rocky
8f154dc75d Remove gcc 4 warning 2005-07-07 06:53:04 +00:00
rocky
cb9abde2e4 Remove a valgrind-caught memory leak. 2005-06-07 23:41:38 +00:00
rocky
320c9bd55f Patch from Burkhard Plaum:
1. In the function is_cdrom_linux(...) in the file lib/driver/gnu_linux.c,
   the CDROMREADTOCHDR ioctl gets called, which fails when the drive is
   empty. The CDROM_GET_CAPABILITY ioctl always succeeds for CDrom drives
   and fails for hard disks etc.

2. For some reason, at least my (GNU/Linux 2.6.10) Kernel fails to
   open empty drives, when only O_RDONLY is used. Changing the open flag to
   O_RDONLY|O_NONBLOCK, the call succeeds also for emtpy drives.
   By the way, the cdrom header file in the kernel says explicitely,
   that O_RDONLY|O_NONBLOCK should used whenever a cdrom is touched.

rocky: also made a change to eject to continue even if we can't get
the drive status -- which we can't with an empty CD-ROM drive.
2005-04-23 01:16:19 +00:00
rocky
7f0c18e0ab freebsd.c: forgot initialization.
correct one of the doxygen comments.
2005-03-29 12:00:23 +00:00
rocky
d5221e901f Revise so audio subchannel msf is msf_t (BCD encoded). 2005-03-19 16:17:13 +00:00
rocky
af71247d66 Remove duplicate open on CD. Some warnings turned into info
messages. Remove unnecessary \n's.
2005-03-15 12:11:53 +00:00
rocky
8aaeb8d71c read_subchannel sets format MSF. So caller no longer has to. 2005-03-15 04:16:17 +00:00
rocky
2b53fd1f60 Possibly Solaris close tray fixes. 2005-03-08 04:10:36 +00:00
rocky
068120281b Start of a working close_tray routine.
Add another routines which returns driver id to help reduce driver scans.
Reduce unneeded driver scanning my skipping DRIVER_UNKNOWN.
2005-03-07 07:23:52 +00:00
rocky
c082cedeba solaris: add audio stop
gnu_linux.c: correct comment.
2005-03-06 22:53:50 +00:00
rocky
1fe287e813 More audio control corrections. 2005-03-06 11:21:52 +00:00
rocky
3e84283fa8 Don't rely on compatability with 0.72. Use new type names. 2005-03-06 00:03:53 +00:00
rocky
b0f8934073 get_last_session returns lsn_t not session number.
Add get_track_last_session for Solaris. Correct it's play_msf.
2005-03-05 10:48:41 +00:00
rocky
822a203ba8 Add API routine to get last session number. 2005-03-05 10:10:16 +00:00
rocky
d76eddad1b Revise play_audio_msf for start/end as it should be.
_cdio_*driver*.c -> *driver*.c
2005-03-05 09:26:52 +00:00