Elias Vanderstuyft
33b96d9349
Input: document and check on implicitly defined FF_MAX_EFFECTS
...
There is an undocumented upper bound for the total number of ff effects:
FF_GAIN (= 96).
This can be found as follows:
- user: write(EV_FF, effect_id, iterations)
calls kernel: ff->playback(effect_id, ...): starts effect "effect_id"
- user: write(EV_FF, FF_GAIN, gain)
calls kernel: ff->set_gain(gain, ...): sets gain
A collision occurs when effect_id equals FF_GAIN.
According to input_ff_event(),
FF_GAIN is the smallest value where a collision occurs.
Therefore the greatest safe value for effect_id is FF_GAIN - 1,
and thus the total number of effects should never exceed FF_GAIN.
Define FF_MAX_EFFECTS as FF_GAIN and check on this limit in ff-core.
Signed-off-by: Elias Vanderstuyft <elias.vds@gmail.com >
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2015-10-16 15:32:16 -07:00
..
2015-06-09 09:39:49 +02:00
2015-06-09 17:47:38 -03:00
2015-06-23 02:40:03 +02:00
2015-05-23 10:49:55 +01:00
2015-08-18 01:24:05 +02:00
2015-06-23 14:08:54 -07:00
2015-08-26 20:32:35 +02:00
2015-04-21 16:16:02 -04:00
2015-07-29 09:59:20 -05:00
2015-09-08 13:34:59 -07:00
2015-08-09 22:50:06 -07:00
2015-05-06 08:03:19 +02:00
2015-06-22 15:49:27 +08:00
2015-06-23 07:00:41 -07:00
2015-08-25 14:41:50 -05:00
2015-08-18 17:20:03 -04:00
2015-09-10 06:54:15 +02:00
2015-07-17 19:59:04 -07:00
2015-07-21 10:39:06 -07:00
2015-04-16 14:08:49 -04:00
2015-04-12 21:25:13 -04:00
2015-07-01 16:26:08 +02:00
2015-07-23 17:48:43 -07:00
2015-05-24 12:17:42 -07:00
2015-06-01 08:07:08 +09:00
2015-07-13 14:41:26 -07:00
2015-09-09 22:06:29 -07:00
2015-08-27 15:42:47 -07:00
2015-08-17 14:22:48 -07:00
2015-06-01 15:48:56 +02:00
2015-08-10 14:03:54 -07:00
2015-08-17 21:33:06 -07:00
2015-06-29 18:56:21 -07:00
2015-06-24 02:51:39 -07:00
2015-10-16 15:32:05 -07:00
2015-10-16 15:32:16 -07:00
2015-08-21 09:10:11 -07:00
2015-06-24 02:15:54 -07:00
2015-05-25 13:25:35 -04:00
2015-08-13 21:27:19 -07:00
2015-10-16 15:32:05 -07:00
2015-09-10 13:29:01 -07:00
2015-06-03 11:32:07 +03:00
2015-08-22 14:57:59 -07:00
2015-06-29 18:56:21 -07:00
2015-09-24 14:31:37 -07:00
2015-04-21 09:44:55 -03:00
2015-08-03 17:30:00 -07:00
2015-09-11 15:21:34 -07:00
2015-05-24 12:13:36 -07:00
2015-07-21 10:39:05 -07:00
2015-08-03 22:35:00 -07:00
2015-05-05 13:40:44 -06:00
2015-07-27 22:53:19 -04:00
2015-08-10 13:46:21 -07:00
2015-07-08 23:34:53 -07:00
2015-06-18 21:14:31 +02:00
2015-08-28 22:25:42 -07:00
2015-06-09 01:21:35 +02:00
2015-08-27 19:44:53 -04:00
2015-04-23 15:16:14 -04:00
2015-07-20 14:58:46 -04:00
2015-05-06 15:50:02 +02:00
2015-08-18 11:56:13 -06:00
2015-08-27 11:40:43 -07:00
2015-07-14 18:27:46 -05:00
2015-08-04 10:16:57 +02:00
2015-05-21 23:26:51 -04:00
2015-05-12 18:22:49 -04:00
2015-09-04 16:54:41 -07:00
2015-07-15 11:52:52 -07:00
2015-05-31 21:47:23 -07:00
2015-08-31 12:34:00 -07:00
2015-05-24 12:13:36 -07:00
2015-09-04 16:54:41 -07:00
2015-06-10 17:34:26 -07:00
2015-05-20 09:01:20 -07:00
2015-07-21 22:36:33 -07:00
2015-06-15 19:49:22 -07:00
2015-09-11 00:32:36 -07:00
2015-05-21 23:25:21 -04:00
2015-07-24 14:15:10 -07:00
2015-05-24 12:49:16 -07:00
2015-06-11 23:37:37 +02:00
2015-10-01 21:42:35 -04:00
2015-07-17 09:59:28 -03:00
2015-04-08 06:36:52 -03:00
2015-06-05 11:45:45 -03:00
2015-06-11 15:16:55 +10:00
2015-06-01 15:48:55 +02:00
2015-06-18 14:34:46 -03:00
2015-06-01 15:46:54 +02:00
2015-06-05 12:31:12 +10:00
2015-06-03 14:17:38 +02:00
2015-07-01 10:11:17 +02:00
2015-07-07 14:27:05 +03:00
2015-07-07 14:27:04 +03:00
2015-07-06 08:25:50 -03:00