# Re: Problems with sane-scsi

From: abel deuring (a.deuring@satzbau-gmbh.de)
Date: Tue Jun 13 2000 - 02:41:07 PDT

- Next message: rjtalbo: "Re: Mustek 1200SP and AVA-1505/1515"
  - Previous message: Jouke Hylkema: "Re: snapscan vs. acer 310S"
  - In reply to: Benjamin Hell: "Re: Problems with sane-scsi"
  - Next in thread: Benjamin Hell: "Re: Problems with sane-scsi"
  - Reply: Benjamin Hell: "Re: Problems with sane-scsi"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Benjamin Hell wrote:

  > While playing around, I found that xscanimage crashed
  > whenever I wanted to scan with custom gamma table enabled:
  >
  > sanei_scsi.c:3701: failed assertion 'src_size == cmd_size'
  >
  > [1] + IOT instruction (core dumped) xscanimage
  >
  > Mmmh, appears to be a deja-vu :-)

  Benjamin,

  try patch #4, attached to this mail. The backend function
  set_density_curve calls sanei_scsi_cmd with buffers for both writing
  data to and reading data from the device set to non-zero.

  Abel

  --- canon-scsi.c.orig Tue Jun 13 11:09:47 2000
  +++ canon-scsi.c Tue Jun 13 11:10:23 2000
  @@ -461,7 +461,7 @@
  {
  cmd[i+10] = ((u_char *)buf)[i];
  }
  - status = sanei_scsi_cmd (fd, cmd, sizeof (cmd), buf, buf_size);
  + status = sanei_scsi_cmd (fd, cmd, sizeof (cmd), 0, 0);
  DBG (31, "<< set_density_curve\n");
  return (status);

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: rjtalbo: "Re: Mustek 1200SP and AVA-1505/1515"
  - Previous message: Jouke Hylkema: "Re: snapscan vs. acer 310S"
  - In reply to: Benjamin Hell: "Re: Problems with sane-scsi"
  - Next in thread: Benjamin Hell: "Re: Problems with sane-scsi"
  - Reply: Benjamin Hell: "Re: Problems with sane-scsi"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Tue Jun 13 2000 - 02:41:49 PDT