Plugged speakers aren't detected until re-plugged

I got an issue with my sound port. It doesn’t detect my speakers after reboot but when I re-plug everything works fine.