The problem is solved. After reading many more forums, I came to the conclusion that I need to edit the outputs again.
I turned off the sound with a command.
systemctl --user disable --now pipewire.socket
In the hdajackretask program, I transferred all possible non-connected outputs to the “internal speaker”.
I applied the settings and turned on the sound.
systemctl --user enable --now pipe wire.socket
In the sound settings, set
analog stereo duplex
After making sure that everything works, I created an empty file
/etc/modprobe.d/hda-jack-retask.conf
In the program, I clicked hdajackretask “install boot override” and rebooted the system. After the restart, everything works.