linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Thomas Fritzsche <tf@noto.de>
Cc: linux-kernel@vger.kernel.org, david@2gen.com
Subject: Re: Re: Is controlling DVD speeds via SET_STREAMING supported?
Date: Thu, 25 Nov 2004 09:04:51 +0100	[thread overview]
Message-ID: <20041125080451.GE10233@suse.de> (raw)
In-Reply-To: <33356.192.168.0.2.1101334593.squirrel@192.168.0.10>

On Wed, Nov 24 2004, Thomas Fritzsche wrote:
>  /* SET STREAMING command */
>   cgc.cmd[0] = 0xb6;
>  /* 28 byte parameter list length */
>   cgc.cmd[10] = 28;
> 
>   cgc.sense = &sense;
>   cgc.buffer = buffer;
>   cgc.buflen = sizeof(buffer);
>   cgc.data_direction = CGC_DATA_WRITE;
> 
>   buffer[8] = 0xff;
>   buffer[9] = 0xff;
>   buffer[10] = 0xff;
>   buffer[11] = 0xff;
> 
>   buffer[15] = 177*speed;
>   buffer[18] = 0x03;
>   buffer[19] = 0xE8;

I should have read this more closely... You need to fill the speed
fields correctly:

	unsigned long read_size = 177 * speed;

	buffer[12] = (read_size >> 24) & 0xff;
	buffer[13] = (read_size >> 16) & 0xff;
	buffer[14] = (read_size >>  8) & 0xff;
	buffer[15] = read_size & 0xff;

Ditto for write size.

-- 
Jens Axboe


  parent reply	other threads:[~2004-11-27  6:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24 22:16 Re: Is controlling DVD speeds via SET_STREAMING supported? Thomas Fritzsche
2004-11-25  7:56 ` Jens Axboe
2004-11-25  8:04 ` Jens Axboe [this message]
2004-11-25  9:22   ` Thomas Fritzsche
2004-11-26 19:59 Thomas Fritzsche
2004-11-27  9:54 ` Thomas Fritzsche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041125080451.GE10233@suse.de \
    --to=axboe@suse.de \
    --cc=david@2gen.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tf@noto.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).