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
..
2013-07-31 14:41:03 -07:00
2015-10-01 22:30:35 +02:00
2015-04-02 10:03:55 +01:00
2015-09-10 13:29:01 -07:00
2015-09-03 16:55:55 -07:00
2015-09-17 21:29:07 -07:00
2015-08-14 17:27:17 -07:00
2015-10-01 22:30:47 +02:00
2015-08-18 09:08:47 +03:00
2015-10-01 10:10:55 +02:00
2015-08-28 21:09:14 +02:00
2015-09-08 16:48:55 -07:00
2014-08-28 10:03:46 -06:00
2015-09-26 21:05:23 -04:00
2015-09-19 20:17:40 -07:00
2015-09-29 14:33:51 +02:00
2015-01-07 13:08:04 +01:00
2015-09-16 02:17:49 +02:00
2015-09-11 19:11:06 -07:00
2015-09-26 21:05:23 -04:00
2013-02-27 19:10:15 -08:00
2015-09-11 14:23:30 +09:00
2009-12-06 11:18:28 +01:00
2015-10-02 14:46:15 -04:00
2015-05-21 11:29:59 +05:30
2015-09-11 16:21:12 -07:00
2014-01-17 14:57:29 -07:00
2015-09-21 15:07:19 +09:00
2015-05-31 18:06:28 -07:00
2015-10-01 12:51:28 +02:00
2014-03-02 19:53:09 -08:00
2015-09-18 08:11:42 -07:00
2015-10-02 15:34:42 +10:00
2015-09-04 12:02:11 -07:00
2015-09-10 13:29:01 -07:00
2015-09-20 22:44:51 -07:00
2015-09-20 17:50:19 -07:00
2015-07-01 16:15:05 +03:00
2015-08-05 13:30:15 -07:00
2015-09-08 16:16:26 -07:00
2015-07-01 10:49:25 -07:00
2015-09-10 14:03:44 -04:00
2015-09-04 10:07:45 -07:00
2015-10-01 16:38:52 -04:00
2015-10-16 15:32:16 -07:00
2015-10-02 07:59:29 -04:00
2014-09-23 23:26:42 -07:00
2015-10-04 11:40:09 +01:00
2015-09-08 14:35:59 -07:00
2015-09-17 10:02:20 +02:00
2015-06-22 17:59:09 -07:00
2015-09-03 16:41:38 -07:00
2015-09-05 18:11:04 -07:00
2015-04-03 16:15:30 +02:00
2015-10-04 11:47:28 +01:00
2015-09-11 16:42:39 -07:00
2015-09-08 17:22:35 -07:00
2015-06-30 19:44:57 -07:00
2015-08-26 07:11:45 -07:00
2015-09-16 15:47:51 +02:00
2015-09-26 20:53:15 -04:00
2015-09-30 14:54:22 +02:00
2015-09-29 12:47:05 +02:00
2015-10-01 21:55:35 -04:00
2015-09-04 10:07:45 -07:00
2015-09-07 15:27:12 -04:00
2015-09-17 11:49:28 -04:00
2015-08-05 13:44:24 -07:00
2015-09-26 06:01:33 -04:00
2015-04-26 17:22:07 -07:00
2015-09-15 13:18:04 -05:00
2015-07-25 12:48:05 -07:00
2015-10-01 22:30:12 +02:00
2015-09-03 16:01:03 +01:00
2015-07-31 15:01:14 +01:00
2015-09-04 10:07:45 -07:00
2015-09-18 08:11:42 -07:00
2015-09-17 21:41:02 -07:00
2015-08-10 23:07:06 -04:00
2015-09-17 12:25:42 -07:00
2015-08-29 01:46:40 +02:00
2014-10-20 16:21:28 +02:00
2015-03-26 15:23:17 +11:00
2015-03-31 12:01:19 -04:00
2015-09-09 10:55:32 -07:00
2015-06-23 14:08:54 -07:00
2015-08-13 10:12:54 +02:00
2015-09-21 14:16:09 -07:00
2015-06-18 11:44:41 +03:00
2015-09-01 14:48:40 +02:00
2015-03-13 15:55:42 +10:30
2015-09-05 19:37:31 +02:00
2015-09-18 09:28:20 -07:00
2015-04-15 16:35:23 -07:00
2015-10-01 10:10:55 +02:00
2014-12-03 18:49:20 -05:00
2015-09-21 12:02:27 -07:00
2013-01-03 15:57:16 -08:00
2015-09-16 15:47:51 +02:00
2015-09-22 09:48:41 -07:00
2015-09-16 15:47:51 +02:00
2015-06-09 16:38:06 +02:00
2015-09-26 20:56:50 -04:00
2015-09-24 23:24:46 -07:00
2014-11-24 07:45:25 +01:00
2015-10-01 21:42:35 -04:00
2015-09-20 15:20:11 -07:00
2015-09-22 09:09:15 -07:00
2015-08-05 13:25:59 -07:00
2015-09-23 12:15:19 -07:00
2015-03-18 17:27:03 +01:00
2015-07-24 15:14:04 -06:00
2015-09-18 09:28:20 -07:00
2015-09-10 18:19:42 -07:00
2013-10-09 20:04:04 -05:00
2015-09-08 13:32:11 +03:00
2014-01-23 16:36:55 -08:00
2015-06-12 17:31:05 -07:00
2015-09-01 18:46:42 -07:00
2015-09-28 10:56:10 +02:00
2015-09-10 18:19:42 -07:00
2014-10-20 16:21:57 +02:00
2015-09-03 16:27:01 -07:00
2015-09-04 10:22:09 -07:00