Commit Graph

36 Commits

Author SHA1 Message Date
rocky
8e48c0ad7f Run a Multimedia command (MMC) specifying the CDB length.
The motivation here is for example ot use in is an undocumented
debug command for LG drives (namely E7), whose length is being
miscalculated by mmc_get_cmd_len(); it doesn't follow the usual
code number to length conventions. Patch supplied by SukkoPera.
2007-11-21 03:01:58 +00:00
rocky
c1f11393ac Add routine to get tray status (open/closed) and sample program.
Seems broken at least on SuSE 10.1 if not other GNU/Linux's though.
2006-10-11 12:38:17 +00:00
rocky
0c2b1bfa9e mmc: add mmc_close_tray().
mmc-tool: add option for close tray and to get mode-sense 2A data.
2006-04-12 09:30:14 +00:00
rocky
d71d515ee6 Make so we can call from driver. Some comment changes too. 2006-04-05 02:20:06 +00:00
rocky
edc8056ec9 Clarify the difference betweeen speed as it is defined in the MMC spec
and drive unit speeds. Add a new mmc routine for the latter.
2006-04-04 02:06:12 +00:00
rocky
10b57b2ddd gnu_linux: Use internal routine to set the speed.
mmc.c: add more debug_ variables for new enums and extern vars in mmc.h
set speed is in the write direction not read
2006-04-03 19:31:18 +00:00
rocky
da74e72b38 image/* Wrong sizeof.
mmc: remove some deprecated things.
2006-02-13 11:00:53 +00:00
rocky
7f4e8140ae Turn one more set of #define into an enum 2005-10-21 11:27:09 +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
3b0b52ac52 Allow the MMC timeout to be adjusted by the application. 2005-06-26 18:29:49 +00:00
rocky
929770f419 Add routine to report MMC capabilities of a drive. Add that to the
cd-drive program.
2005-04-30 09:42:37 +00:00
rocky
4ef90d57b4 loop over cdtext using length reported back by MMC TOC command.
Test sequence number only for valid blocks.
cdtext_private.h: add enumeration to facilitate debugging
cdtext.c: On Windows CD-Text was off by 4. Hack for this.
2005-03-23 11:15:25 +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
8e8c54a457 Add MMC START STOP interface. 2005-03-09 10:23:01 +00:00
rocky
83601dc13e Add routine to turn audio status into a string. 2005-03-06 02:59:26 +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
3abb1badf9 audio.h: redo audio volume levels a little.
mmc.{c,h}: attempt to get audio ports/selections via MMC.
cd-info.c: show volume output levels in a cleaner fashion.
2005-03-02 04:23:59 +00:00
rocky
881d4fcf8f mmc.c: fix up read_audio_subchannel_mmc
audio.h: more direct field names
mmc.h: add mmc_subchannel_t;  scsi_mmc -> mmc
cdio-linux.c: remove deprecated from_bcd8
2005-03-01 10:53:15 +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
99332fbd44 Don't try to read too many blocks on MMC readcd. 2005-02-28 02:56:26 +00:00
rocky
e65d0eb854 Mode sense changes. Not sure about this though. 2005-02-18 09:49:14 +00:00
rocky
da62695b60 Move forward in getting better ISO-9660 reading by eliminating "Mode 1/2"
specification in API.
2005-02-17 07:03:36 +00:00
rocky
78a3f49868 Add routine for reading data independent of or mode1 and mode2 format.
Should help with ISO 9660 reading. Add generic MMC READ_CD routine.

Warning - even more breakage in some situations. (But there's promise
of an overall brighter future.)
2005-02-17 04:57:21 +00:00
rocky
d37d48bc1c gcc < 3.0 compilation fix 2005-02-14 01:07:29 +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
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
e491ba74d6 Use solaris ioctl for blocksize set/get. Prototype corrections. 2005-02-10 11:23:08 +00:00
rocky
5316ed6880 Think I have how to get MMC media changed worked out. 2005-02-10 03:23:10 +00:00
rocky
8296df8b3d Add generic mode_sense(), add cdio_have_atapi() and use these.
API number bumped
Add bool_3way_t (yes, nope, dunno)
2005-02-10 01:59:05 +00:00
rocky
3755da8d0c Add mode_sense6() and mode_sense10() MMC commands. Use them to
hopefully clean up code a little. Remove some unused MMC "private"
commands.

iso4 -> isofuzzy
2005-02-09 02:50:46 +00:00
rocky
644ad9ceb7 Add "Rigid Restricted Overwrite" string. 2005-02-09 01:24:17 +00:00
rocky
a1c206fe3b Add enum for feature profiles. Add feature to string conversion routines. 2005-02-08 04:14:28 +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
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
c172c0ba20 scsi_mmc -> mmc 2005-02-05 13:07:02 +00:00