Speaker is not detected sometimes

Sometimes when I boot, speaker is not detected, and if I plug my earphones, it is not detected either. But if I reboot, both work.
This only happens sometimes.
My setup is defalut, with i3 wm. I have also tried updating my system.
Thank you!

dmesg | grep audio

[    5.176618] snd_hda_intel 0000:26:00.1: bound 0000:26:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    5.185198] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[    5.185202] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.185204] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    5.185205] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    5.185206] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    5.185208] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    5.185209] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    5.185210] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a

Is this a known issue?