Kernel: Don't reset iHDA stream after running out of samples

We can just stop the stream :D This also broke restarting the stream on
some hardware when ig you need to reprogram the DAC after resetting
stream(?)
This commit is contained in:
2026-08-22 11:57:19 +03:00
parent 28bd9cf353
commit f6e841e623
@@ -664,11 +664,8 @@ namespace Kernel
m_bdl_tail = (m_bdl_tail + 1) % m_bdl_entry_count; m_bdl_tail = (m_bdl_tail + 1) % m_bdl_entry_count;
if (m_bdl_tail == m_bdl_head) if (m_bdl_tail == m_bdl_head)
{ {
if (auto ret = reset_stream(); ret.is_error()) bar.write8(base + Regs::SDCTL, bar.read8(base + Regs::SDCTL) & 0xFD);
{ m_stream_running = false;
dwarnln("failed to reset HDA stream: {}", ret.error());
return;
}
} }
queue_bdl_data(); queue_bdl_data();