{
s32 x;
s32 y;
- s16 level = effect->u.constant.level * gain / 0xFFFF;
+ s32 level = effect->u.constant.level * gain / 0xFFFF;
ffpl_lvl_dir_to_x_y(level, effect->direction, &x, &y);
text = kasprintf(GFP_KERNEL, "Playing FF_CONSTANT, level: %d, dir: %u, X: %d, Y: %d", level, effect->direction, x, y);
{
s32 x;
s32 y;
- s16 level = effect->u.constant.level * gain / 0xFFFF;
+ s32 level = effect->u.constant.level * gain / 0xFFFF;
ffpl_lvl_dir_to_x_y(level, effect->direction, &x, &y);
text = kasprintf(GFP_KERNEL, "Updating FF_CONSTANT, level: %d, dir: %u, X: %d, Y: %d", level, effect->direction, x, y);
{
s32 x;
s32 y;
- s16 level = effect->u.constant.level * gain / 0xFFFF;
+ s32 level = effect->u.constant.level * gain / 0xFFFF;
ffpl_lvl_dir_to_x_y(level, effect->direction, &x, &y);
text = kasprintf(GFP_KERNEL, "Uploading and starting FF_CONSTANT, level: %d, dir: %u, X: %d, Y: %d", level, effect->direction, x, y);