Isn't the codec for headphones just meant to handle the communication between the headphones and device while the device can handle transcoding from the input codec to the output codec?
Or do you mean the quality of the codecs supported puts an upper limit on sound quality?