Fix HDAudio driver for machines with less than 3 cores.

This commit is contained in:
TomAwezome 2022-12-30 14:24:15 -05:00
parent 8106bf6c02
commit 5696c3d0f1

View file

@ -685,7 +685,7 @@ public Bool HDAudioInit(I64 hd_bus, I64 hd_dev, I64 hd_fun)
LBtr(&snd_flags, Sf_FILLING_OUT); LBtr(&snd_flags, Sf_FILLING_OUT);
hda.audio_task_started = FALSE; hda.audio_task_started = FALSE;
if (mp_count > 1) if (mp_count > 1)
hda.task = Spawn(&HDAudioTask, NULL, "HD Audio", 3); hda.task = Spawn(&HDAudioTask, NULL, "HD Audio", mp_count - 1);
else else
hda.task = Spawn(&HDAudioTask, NULL, "HD Audio"); hda.task = Spawn(&HDAudioTask, NULL, "HD Audio");
while (!hda.audio_task_started) while (!hda.audio_task_started)