Chosen Solution

My iPhone 7 ear speaker sound crackling i replaced the audio IC & checked with another speaker still problem wasn’t solved and also headphones not recognising bottom speaker & microphone working fine what I need to repair to fix this issue

Did you touch this part iPhone 7 Earpiece Speaker if you did that can damage it so you would need to replace it.

Change and check the earspeaker this may solve your problem.