Reverted part of change in memory alllocation code, which ensures that the function returns 0 and encoder works correctly when CONFIG_MULTI_RES_ENCODING isn't turned on. Change-Id: Id5d5e7f2c8bd9e961a6dca79d257e8185f0d592a