The usual test for seeing if u have the audio ic issue is the following 2 symptoms
* Long boot time, takes ages for the phone to start up
* In the voice memos app on the phone u cant record a voice memo will say something along the lines of no playback devices available etc
If you have those 2 symptoms its likely u have the audio ic issue caused by the phone flexing, it is a repairable fault however requires microsoldering
If you dont have those 2 symptoms then try cleaning the port make sure the headphones or the adapter plugs cleanly inside the port should be a small gap about 1mm o so all around any more and u might have something stuck in the port :)