Sensation and perception

What is a primary function of the pinna and ear canal?