Maybe carpenter ants.
I agree with the others - call an exterminator! They'll walk in, take one look, and say "Oh that's xxxxxx", and start a treatment plan.
I really don't think it's carpenter ants, but whatever it is, is eating wood, and that's never a good thing. make that call!
Pardon any typos, my IPad has a mind of it's own for spelling corrections!