]> git.baikalelectronics.ru Git - kernel.git/commit
Input: twl6040-vibra: Check the selected path for vibra
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 12 Oct 2011 08:57:56 +0000 (11:57 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 12 Oct 2011 10:48:51 +0000 (11:48 +0100)
commitbec6e9f6fd6b50bea4b67b638fa22365bd00e73a
treeb6348851c124b5a5e9c6f51a8de062dc9fa7931a
parent7c6c4893857c2b59fb3b00e1424e9379eb4326f2
Input: twl6040-vibra: Check the selected path for vibra

The VIBSELL/R bit in the VIBCTLL/R register tells the source of the data,
which is going to be used to drive the attached motor(s).
Do not allow effect execution if any of the channels are set to receive
audio data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/input/misc/twl6040-vibra.c