mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Fix HDAudio driver for machines with less than 3 cores.
This commit is contained in:
parent
8106bf6c02
commit
5696c3d0f1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue