The limiting spectral distribution in terms of spectral density