Commit Graph

10 Commits

Author SHA1 Message Date
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
66e1bdebd6 Revise subchannel so solaris subchannel is libcdio msf. 2005-03-19 18:50:46 +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
79942ad9b6 Initial op.funcs. NULL. Try using close tray via CDROMSTART. 2005-03-06 23:11:47 +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
333de3f467 Don't rely on mmc backward compatability. 2005-03-06 00:55:42 +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
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