On acoustic and gravity waves in the solar photosphere and their energy transport