All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: emard@softhome.net
Cc: linux-kernel@vger.kernel.org, dtor_core@ameritech.net
Subject: Re: force feedback envelope incomplete
Date: Mon, 17 Oct 2005 13:42:58 +0200	[thread overview]
Message-ID: <20051017114258.GC10522@ucw.cz> (raw)
In-Reply-To: <200510161335.48458.dtor_core@ameritech.net>

On Sun, Oct 16, 2005 at 01:35:47PM -0500, Dmitry Torokhov wrote:
> On Saturday 15 October 2005 16:39, emard@softhome.net wrote:
> > HI
> > 
> > Force feedback envelope struct in input.h 
> > for periodic events is incomplete.
> > 
> > struct ff_envelope {
> >         __u16 attack_length;    /* Duration of attack (ms) */
> >         __u16 attack_level;     /* Level at beginning of attack */
> >         __u16 fade_length;      /* Duration of fade (ms) */
> >         __u16 fade_level;       /* Level at end of fade */
> > };
> > 
> > The envelope consists of:
> > 1. Attack level (Level at beginning of attack)
> > 2. Attack time
> > 3. Sustain level (Level at end of attack and beginning of fade)
> > 4. Sustain time
> > 5. Fade level (Level at the end of fade)
> > 6. Fade time
> > 
> > If I want to implement proper envelope I propose something like this:
> > 
> > struct ff_envelope {
> >         __u16 attack_length;    /* Duration of attack (ms) */
> >         __u16 attack_level;     /* Level at beginning of attack */
> >         __u16 sustain_length;   /* Duration of sustain (ms) */
> >         __u16 sustain_level;    /* Sustain Level at end of attack and beginning of fade */
> >         __u16 fade_length;      /* Duration of fade (ms) */
> >         __u16 fade_level;       /* Level at end of fade */
> > };
> 
> You might want to talk to Vojtech about this (CC-ed).
 
Your proposal seems reasonable. Please send me a patch that adds the
sustain members to the envelope, and uses it in some driver, while
making sure existing binary-only apps (if there are any) don't break.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2005-10-17 11:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 21:39 force feedback envelope incomplete emard
2005-10-16 18:35 ` Dmitry Torokhov
2005-10-17 11:42   ` Vojtech Pavlik [this message]
2005-10-17 22:21     ` emard

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=20051017114258.GC10522@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=dtor_core@ameritech.net \
    --cc=emard@softhome.net \
    --cc=linux-kernel@vger.kernel.org \
    /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.