All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Chris Rankin <rankincj@yahoo.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: SoundScape driver... FIXMEs
Date: Tue, 24 Sep 2002 12:34:35 +0200	[thread overview]
Message-ID: <s5hy99roev8.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020923194319.55687.qmail@web40607.mail.yahoo.com>

At Mon, 23 Sep 2002 20:43:19 +0100 (BST),
Chris Rankin wrote:
> 
> > > > another point:  doesn't the busy-loop in
> > > > host_read/write_ctrl_unsafe
> > > > need udelay() or something to produce a certain
> > > > delay length?
> > > > otherwise the timeout is very dependent on a
> > > > machine.
> > > 
> > > Yes, possibly. Provided udelay() isn't deprecated
> > and
> > > doesn't schedule or anything.
> > 
> > no and no.  it's a simply busy delay for the given
> > time length
> > with _relatively_ good accuracy (up to 1ms).
> > 
> > > I tested this driver on
> > > a P120 - not exactly a speed daemon... ;-)!
> > 
> > ah, then the current driver will fail definitely on
> > 2GHz P4 ;)
> 
> Yeah, if you can find one with an ISA slot free...
> ;-). Anyway, I'll put that udelay() in then; udelay(1)
> will probably be enough.

then please don't use HZ for timeout value, since HZ can be different
from 100 on non-i386 architectures (and even on i386 on 2.5).

> I'll also remove that #error
> if there's no OSS emulation, and I don't think any
> action is needed for the verify_area() calls.

i forgot to mention - please add #include <linux/delay.h>
if you use udelay() or mdelay().  

and leave verify_area() as you like.  as said, checking the return
value from copy_from/to_user() is the general way, but of course it's
not the only way and everybody may write his code :)


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

      reply	other threads:[~2002-09-24 10:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-22 19:09 SoundScape driver... FIXMEs Chris Rankin
2002-09-23 10:56 ` Takashi Iwai
2002-09-23 12:28   ` Chris Rankin
2002-09-23 12:51     ` Takashi Iwai
2002-09-23 19:43       ` Chris Rankin
2002-09-24 10:34         ` Takashi Iwai [this message]

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=s5hy99roev8.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rankincj@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.