Applying a linear filter to a digital signal