All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anssi Hannula <anssi.hannula@gmail.com>
To: johann deneux <johann.deneux@gmail.com>
Cc: Richard Bolkey <rbolkey@cs.utexas.edu>,
	linux-input@atrey.karlin.mff.cuni.cz
Subject: Re: Logitech Spring FF
Date: Sat, 07 Apr 2007 18:06:58 +0300	[thread overview]
Message-ID: <4617B392.4010704@gmail.com> (raw)
In-Reply-To: <38b3b7c0704070016m27deaa18hf818d21a080c7ba6@mail.gmail.com>

johann deneux wrote:
> I'm forwarding this mail to linux-input, that's a better place for
> this discussion.
> Richard is working on adding support for spring force feedback effects
> to the hid-lgff driver.
> 
> On 4/7/07, Richard Bolkey <rbolkey@cs.utexas.edu> wrote:
>> johann deneux wrote:
>> > Yes. It's possible to implement everything using a constant force
>> > effect updated at regular intervals.
>> > Are you working to extending the driver in the kernel, or are you
>> > doing the work in user-space?
>> Working off the driver in the kernel.  Can/should I do this in user
>> space?  I also noticed with the latest kernels there is a ff-memless.c.
> 
> I'm not sure. Doing in the kernel would allow for a shorter update
> cycle, I think. I had initially intended to do what you are doing in
> the kernel, but I never actually finished the task.

The correct way to implement this is to do it in ff-memless.c, and it
already has the framework to do effect conversions.

> One of the problem I remember encountering was related to computing
> sine values when simulating a periodic effect. Is there a math lib
> available in the kernel?

There is your fixp-arith.h in /drivers/input and apparently some random
math functions in /lib.

(and I think the fixp-arith.h should really be in /lib as well)

>> Is that an attempt to do all effect calculations in a single module, and
>> a driver like hid-lgff.c would just need to do the device recognitions?
> 
> I guess so, but you should check with the author.
> 

Yes, it is.


-- 
Anssi Hannula

  reply	other threads:[~2007-04-07 15:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <461117A0.80905@cs.utexas.edu>
     [not found] ` <4615D762.4090206@it.uu.se>
     [not found]   ` <4616DC56.80301@cs.utexas.edu>
2007-04-07  7:16     ` Logitech Spring FF johann deneux
2007-04-07 15:06       ` Anssi Hannula [this message]
2007-04-10  5:45         ` Richard Bolkey
2007-04-10  6:31           ` Dmitry Torokhov
2007-04-10  9:51           ` johann deneux
2007-04-11  2:55             ` Logitech Spring FF (effect on/off) Richard Bolkey
2007-04-11  3:01               ` Anssi Hannula
2007-05-12 10:22               ` johann deneux
2007-04-10 12:21           ` Logitech Spring FF Jiri Kosina

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=4617B392.4010704@gmail.com \
    --to=anssi.hannula@gmail.com \
    --cc=johann.deneux@gmail.com \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    --cc=rbolkey@cs.utexas.edu \
    /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.