Where is the file to disable the headphone jack on my 5th generation iPod touch?

Can someone help me find out where the file is located to disable the headphone jack on my 5th generation iPod touch? A piece of my headphones broke inside of it and now my iPod is stuck in headphone mode so I am not able to use the speaker. i have tried everything to try to remove the piece but i have had no luck it been like this for several months now. I just need to find a way to permanently disable the headphone jack on my iPod so that it no longer acknowledges that it exists. Thanks 🙂
Take it in to an Apple Store or a certified Apple repair shop and get it fixed that way.

Original thread: https://forums.imore.com/threads/where-is-the-file-to-disable-the-headphone-jack-on-my-5th-generation-ipod-touch.295152/