I have both w-2 income and 1099 income. Can I still contribute to a solo-401k

Hi! This year I will receive FTE income on a w-2 as well as freelancer income on 1099. Will this affect any contributions I can make to my Solo 401k? Would I be able to contribute all 1099 income straight to my solo 401k tax free, as long as it's less than the annual limit?