A popping sound implies you burnt something inside. At this point you’ll need to open the system up to locate the damaged component. If that’s beyond your skills then its time to find someone who does.
There is no software solution for this.
You may want to check the device you tried plugging in maybe using the wrong power brick. I’ve seen this a few times which a 18 volt brik is used on a device that was designed to only work with 5/6 volts.