A finite state Markov process theta , feeding the coefficients of a linear Ito-equation with state xi is considered. The theta -process is observed in white noise, and it is shown that the optimal nonlinear filter for xi is of finite dimension. Finite dimensional equations for optimal prediction and smoothing are derived.