eff->latest = *effect;
if (eff->state != FFPL_EMPTY) {
- if (ffpl_needs_replacing(&eff->active, &eff->latest))
+ if (ffpl_needs_replacing(&eff->active, &eff->latest)) {
eff->replace = true;
- else {
+ eff->change = FFPL_TO_UPLOAD;
+ } else {
eff->replace = false;
eff->change = FFPL_TO_UPDATE;
}
ret = ffpl_start_effect(priv, s, eff);
break;
}
+ break;
case FFPL_DONT_TOUCH:
printk(KERN_WARNING "Got FFPL_DONT_TOUCH change for effect that should be replaced - this should not happen!\n");
break;
input_set_abs_params(dev, ABS_Y, -0x7fff, 0x7fff, 0, 0);
ret = ffpl_init_plugin(&ff_plugin, dev, EFFECT_COUNT, ffbits,
- FFPL_UPLOAD_WHEN_STARTED | FFPL_REPLACE_STARTED,
+ FFPL_HAS_EMP_TO_SRT | FFPL_REPLACE_STARTED,
klgdff_control);
if (ret) {
printk(KERN_ERR "KLGDFF: Cannot init plugin\n");