From: "Michal Malý" <madcatxster@devoid-pointer.net>
To: "Murphy, Dan" <dmurphy@ti.com>
Cc: "simon@mungewell.org" <simon@mungewell.org>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Elias Vanderstuyft <elias.vds@gmail.com>
Subject: Re: [v2] input: drv260x: Add TI drv260x haptics driver
Date: Tue, 29 Jul 2014 14:08:59 +0200 [thread overview]
Message-ID: <2696156.zc98nP9bBH@sigyn> (raw)
In-Reply-To: <00FC9A978A94B7418C33AFAE8A35ED49DB1A79@DFLE09.ent.ti.com>
On Monday 28 of July 2014 21:21:26 Murphy, Dan wrote:
> Dmitry
>
> On 07/28/2014 12:59 PM, simon@mungewell.org wrote:
> >>> The initial driver supports the devices
> >>> real time playback mode. But the device
> >>> has additional wave patterns in ROM.
> >>
> >> As it presented the device appears to be a memoryless device, however
> >> you present it to the rest of the system as if it can support playback
> >> of multiple effects simultaneously, which is incorrect.
> >>
> >> My guess that you need to engage the memoryless input library to schedule
> >> handling multiple effects for your device, including ramping up, ramping
> >> down, stopping playback when effects runs out, etc.
> >
> > Hi Dan,
> > Elias and Michal (cc'ed) are working on a kernel/userland library to
> > handle sending multiple force feedback signals to 'simple' devices,
> > perhaps you should engage with them.
> >
> > Simon
Hi Dan,
since I spent some time trying to improve the memoryless library I can
hopefully provide you with some hints.
If I'm reading this right, your device cannot play more than one effect at once
but it can operate eihter in RTP mode where the user controls the operation of
the motors directly on in an automated mode where the device follows some pre-
programmed waveform. These two modes are mutually exclusive.
If my understanding of the problem is correct, you will struggle both with
memoryless library and your own imlementation. The memoryless library is quite
simplistic and it doesn't have any sort of "passthrough" mode so you would not
be able to do anything besides RTP that way.
On the other hand if you decide to write your own implementation of effect
handling you will end up duplicating a lot of code that already exists in the
memoryless library and has been proven to work.
A possible solution for the problem would be to separate the functions that
control effect timing from the memoryless library and make them globally
accessible. I believe that this would simplify any customized haptic
implementation considerably and it might be a decent interim solution before
the project Simon mentioned is ready.
If there is anybody interested in such a solution I can probably whip up a
patch for it quite quickly.
Regards,
Michal
next prev parent reply other threads:[~2014-07-29 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 16:53 [v2] input: drv260x: Add TI drv260x haptics driver Dan Murphy
[not found] ` <1406566403-1436-1-git-send-email-dmurphy-l0cyMroinI0@public.gmane.org>
2014-07-28 17:43 ` Dmitry Torokhov
2014-07-28 17:59 ` simon
2014-07-28 21:21 ` Murphy, Dan
2014-07-29 12:08 ` Michal Malý [this message]
2014-07-29 13:41 ` Murphy, Dan
2014-07-28 18:02 ` Murphy, Dan
2014-07-29 9:37 ` Mark Rutland
2014-07-29 13:50 ` Murphy, Dan
[not found] ` <00FC9A978A94B7418C33AFAE8A35ED49DB2AAD-l8PMxShYob2IQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2014-07-29 14:39 ` Mark Rutland
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=2696156.zc98nP9bBH@sigyn \
--to=madcatxster@devoid-pointer.net \
--cc=devicetree@vger.kernel.org \
--cc=dmurphy@ti.com \
--cc=elias.vds@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=simon@mungewell.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 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).