spu: fix ugly cast in filter chain (and unexport function)