SMOOTHING_MASK
input->filter.mode & SMOOTHING_MASK;
input->filter.mode &= ~SMOOTHING_MASK;
input->filter.mode |= (val & SMOOTHING_MASK);