mlp: include mlp.h and use MAX_CHANNELS instead of hardcoding value 8.