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 <[email protected]> > --- > 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 ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
