Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Abramo Bagnara <abramo@alsa-project.org>
To: Paul Davis <pbd@op.net>
Cc: alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>
Subject: Re: another control API issue
Date: Wed, 08 May 2002 16:00:41 +0200	[thread overview]
Message-ID: <3CD92F89.4D5711B9@alsa-project.org> (raw)
In-Reply-To: 200205081306.g48D6VD04392@post2.fast.net

Paul Davis wrote:
> 
> >I expected something similar. Don't you think that to have a FLOAT type
> >is a better choice (more card independent, more accessible, more
> >representative, etc.).
> 
> Well, that was my initial thought. Then I remembered that we can't
> have floating point code in the kernel, and its therefore unsafe to
> even use this data type (an interrupt in kernel mode doesn't result in
> an FP register restore, and we may have run another task in the
> meantime that used the FP registers before we get back to our code).
> 
> In this particular case, even if it was safe to store the value in a
> float, the actual float value has to be computed with FP math, which
> is definitely not available in the kernel. so it wouldn't help much
> here.
> 
> Sound right?

Not fully. You can use FPU in kernel space with some attention (disable
preemption and save/restore FPU state for critical area).

-- 
Abramo Bagnara                       mailto:abramo@alsa-project.org

Opera Unica                          Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy

ALSA project               http://www.alsa-project.org
It sounds good!

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net

  reply	other threads:[~2002-05-08 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-08  0:08 another control API issue Paul Davis
2002-05-08  7:57 ` Jaroslav Kysela
2002-05-08  8:04 ` Abramo Bagnara
2002-05-08 12:29   ` Paul Davis
2002-05-08 13:00     ` Abramo Bagnara
2002-05-08 13:07       ` Paul Davis
2002-05-08 14:00         ` Abramo Bagnara [this message]
2002-05-08 14:06           ` Paul Davis
     [not found] <200205081405.QAA07519@alsa.alsa-project.org>
2002-05-08 14:13 ` Abramo Bagnara

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=3CD92F89.4D5711B9@alsa-project.org \
    --to=abramo@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=pbd@op.net \
    --cc=perex@perex.cz \
    /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