Commit Graph

52 Commits

Author SHA1 Message Date
rocky
c74242e942 Use MMC routine for reading data blocks. At leat on XP home it seems to work
better than generic read which is a cooked read.
2005-10-28 12:43:30 +00:00
rocky
0554f105a5 Remove warning: "use of cast expressions as lvalues is deprecated"
Reports have it that gcc 4 doesn't tolerate this.
2005-08-28 22:40:19 +00:00
rocky
c0310e8674 Attempt getting audio port volume levels. 2005-06-11 18:59:47 +00:00
rocky
800eef655f Not sure why we set the loglevel to debug before a DVD STRUCT PHYSICAL.
Remove it.
2005-03-21 08:33:36 +00:00
rocky
d5221e901f Revise so audio subchannel msf is msf_t (BCD encoded). 2005-03-19 16:17:13 +00:00
rocky
a5161ab684 Revise audio subchannel structure to remove lba uniion since we don't
support returning LBA's inside the structure.

include/types.h: use cdio_config.h if none was supplied.
2005-03-19 06:42:22 +00:00
rocky
9056a8f3e7 Reduce verbosity on disc mode detection 2005-03-17 19:41:16 +00:00
rocky
30fca87a95 Get read_subchannel working - was thrown off by Microsoft's lousy
poor documentation of IOCTL_READ_Q_SUBCHANNEL
2005-03-15 02:04:51 +00:00
rocky
daee09ad22 Compilation fix for non MS OS's. 2005-03-09 11:04:34 +00:00
rocky
86324c60b7 Use mci command for close for now. 2005-03-09 02:36:25 +00:00
rocky
76d8cbe880 win32.c: get eject working.
device.c: an additional test for a NULL pointer to be on the safe side.
cdda-player: better handling of eject.
2005-03-09 02:19:54 +00:00
rocky
683e3d8eaf Test for invalid file handle on close_tray. 2005-03-08 15:47:50 +00:00
rocky
2e91ef8ab5 Need to make close_tray_win32 external even when not on Windows. 2005-03-08 03:19:29 +00:00
rocky
7ae764d9b8 lib/driver/device.c: bug in close routine looping.
lib/*: Modify close routine for Win32 ioctl.
src/cdda-player: add option for close cd tray and minor things
2005-03-08 03:11:19 +00:00
rocky
75c7b9a3d3 windows audio control improvements: add stop and do a little better
about getting subchannel info (still needs work). Attempt close tray
routine which is still broken across the board pending reworking.
2005-03-07 00:55:31 +00:00
rocky
1fe287e813 More audio control corrections. 2005-03-06 11:21:52 +00:00
rocky
29780fc927 Don't rely on MMC backward compatibility. 2005-03-06 00:54:50 +00:00
rocky
7fd9eb5291 Correct getting audio subchannel info. 2005-03-05 22:10:20 +00:00
rocky
a27d21a97a win32.c: closer to getting audio controls working.
cd-info.c: was not testing MULTI_SESSION capability correctly.
2005-03-05 19:27:28 +00:00
rocky
d496ca3dbc 1st attempt to fill in some audio controls for Windows ioctl. 2005-03-05 09:11:44 +00:00
rocky
cd328dac84 Report ability to read MCN.
Add MMC routine to read audio subchannel.
2005-03-01 09:33:52 +00:00
rocky
19524f1d51 read_data_sectors via (cooked) generic read. 2005-03-01 01:22:38 +00:00
rocky
602be8e5c6 win32.c: fill in read_data_blocks (use mmc routine)
iso-info.c: lint cast on output
iso9660.c: deal with struct tm's that don't have gmt_off.
2005-02-27 20:16:08 +00:00
rocky
d7bee1720b mmc.c: mmc_mode_sense can't use cdio_have_atapi (without further check) or else
we may get an infinite recursion.
win32_ioctl.c: deal with an error message that can't be converted to a string.
2005-02-11 03:30:12 +00:00
rocky
43f59fc830 Stylistic changes. 2005-02-11 02:18:15 +00:00
rocky
8dfb4780cd Bug fix for mmc_have_interface.
checK_paranoia.sh.in: fix bug in returning success on a core dump
win32.c: some small changes - more later.
image/*.c: set run_mmc_cmd NULL explicitly.
2005-02-11 01:34:12 +00:00
rocky
7bb03d5c93 Break out DVD detection. More verbose comments about the issues here. 2005-02-07 04:16:19 +00:00
rocky
2860cea4cb lib/drivermmc.{c,h}: Add mmc_have_interface() to see if we've got SCSI
or ATAPI or whatever.

cdda_interface: Use mmc_have_inteface() we don't have anything for
this except in GNU/Linux. May reduce the unnecessary data_bigendianp()
calls which cause lots of disc reading.

Turn #defines for MMC Profiles into enumeration.
Add enumeration for "core" interface types

#include <cdio/scsi_mmc.h> -> #include <cdio/mmc.h>
2005-02-07 03:36:01 +00:00
rocky
3344d5642f Windows fixes. Read TOC via MMC only when media is not DVD. 2005-02-06 17:36:17 +00:00
rocky
71a71d7f56 Start to implement ability to a detect media change.
scsi_mmc -> mmc. Warning: some breakage may occur.
2005-02-06 11:13:37 +00:00
rocky
063b81e5cf scsi_mmc -> mmc 2005-02-05 13:13:31 +00:00
rocky
ecb7526721 const removal to match proper run_scsi_cmd prototype.
Bug in reporting TOC lsn's. Thanks to Bobbin007.
2005-02-04 03:57:45 +00:00
rocky
f1d3b190ba remove cdio_malloc and replace with calloc which does functionally
exactly the same thing (but is standard). In some drivers _data -> p_data.
2005-02-03 07:35:14 +00:00
rocky
18bda94aca cygwin fixes mostly. 2005-01-27 11:08:55 +00:00
rocky
6253f67a8d Wrong return type. 2005-01-24 00:23:18 +00:00
rocky
798929000d stat_size -> get_disc_last_lsn. Now returns lsn_t and CDIO_INVALID_LSN
on error.

Add MMC version of get_disc_last_lsn.

More regularization of driver_return_code_t and get_disc_last_lsn

There's probably some small driver breakage which will be fixed soon.
2005-01-24 00:06:31 +00:00
rocky
11ade4b1eb Use SCSI-MMC routine for reading audio sectors. ioctl READRAW doesn't
always word and is slow.
2005-01-23 17:14:33 +00:00
rocky
4fabb2857e Remove some valgrind-caught memory leaks or use of uninitialized regions. 2005-01-23 05:31:03 +00:00
rocky
c5462f0fad routine name change. 2005-01-21 15:30:11 +00:00
rocky
688c30e66a Move some of the "generic" routines using MMC into SCSI-MMC. Think is a
little bit clearer and cleaner.
2005-01-21 02:59:32 +00:00
rocky
bd333bc73f Move a set_speed and set_blocksize (via MMC)from driver-specific
places to generic.

Add _t to yet another type.
2005-01-20 01:00:52 +00:00
rocky
8588f4ae8e Type cast that might make this more robust. 'Dunno. 2005-01-19 17:25:50 +00:00
rocky
93d29803c0 Attempt SCSI-MMC speed setting (e.g. for M$). 2005-01-18 05:41:58 +00:00
rocky
17c55ea59b add _t to another time. driver_id inside p_cdio wasn't initialized. 2005-01-17 17:20:09 +00:00
rocky
5c34644e0c More changes to deal with error conditions. 2005-01-14 21:41:36 +00:00
rocky
15483ee573 win32.c: was not indicating a failure when reading the TOC failed.
testparanoia.c: better check that there are drives.
device.c: I think better checking on drive capability. At least we now
	check for the TOC failure case and not add a drive there.
2005-01-14 19:25:45 +00:00
rocky
17484518c2 Fix syntax error of last commit 2005-01-13 19:39:24 +00:00
rocky
bdd112028a Remove warning and make sure variable is initialized 2005-01-13 19:35:42 +00:00
rocky
9771c44e95 Remove some Unixisms in checking drive. Rely on libcdio to do the
checking - it's platform independent.

win32_ioctl.c: more detailed info message.
2005-01-06 16:37:30 +00:00
rocky
6c20c2ee86 Add common routine for setting track flags. 2005-01-01 15:08:48 +00:00