lkml.org 
[lkml]   [2010]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] input: spi: Driver for SPI data stream driven vibrator
Hi Ilkka,

On Mon, Oct 25, 2010 at 04:31:02PM +0300, Ilkka Koskinen wrote:
> This driver provides access to drive a vibrator connected
> to SPI data line via Input layer's Force Feedback interface.
>
> Client application provides samples (data streams) to be
> played as CUSTOM_DATA. The samples are stored in driver's
> internal buffers.

If device is able to do custom waveform can't it also do regular effects
(constant, periodic, etc. Or is custom is actually random and you are
doing something like rumble effect?

>
> The driver is not able to mix the given samples. Instead, it
> remembers the currently played sample and next one to be played.
>

Why is this driver not using the memoryless FF library (and extends it
to handle FF_CUSTOM effects) but rather reimplements it in the driver
itself?

> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
> ---
> drivers/input/misc/Kconfig | 5 +
> drivers/input/misc/Makefile | 2 +-
> drivers/input/misc/vibra_spi.c | 429 ++++++++++++++++++++++++++++++++++++++++
> include/linux/spi/vibra.h | 34 ++++
> 4 files changed, 469 insertions(+), 1 deletions(-)
> create mode 100644 drivers/input/misc/vibra_spi.c
> create mode 100644 include/linux/spi/vibra.h
>
> diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
> index b49e233..3441832 100644
> --- a/drivers/input/misc/Kconfig
> +++ b/drivers/input/misc/Kconfig
> @@ -438,4 +438,9 @@ config INPUT_ADXL34X_SPI
> To compile this driver as a module, choose M here: the
> module will be called adxl34x-spi.
>
> +config INPUT_SPI_VIBRA
> + tristate "Support for SPI driven Vibra module"
> + help
> + Support for Vibra module that is connected to OMAP SPI bus.
> +

"To compile this driver as a module". Also please keep Kconfig and
Makefile sorted alphabetically.

Thanks.

--
Dmitry


\
 
 \ /
  Last update: 2010-10-26 18:11    [W:0.514 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site