If you are using a different case or the front panel is permanently broken, you might need a workaround since many HP BIOS versions do not allow you to "disable" this specific alert:
Depending on your setup, you can either fix the physical connection or bypass the warning. HELP FIX F1 BOOT IN HP COMPAQ 8200 ELITE CMT 917-front audio not connected