forked from Bananymous/banan-os
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:
@@ -664,11 +664,8 @@ namespace Kernel
|
||||
m_bdl_tail = (m_bdl_tail + 1) % m_bdl_entry_count;
|
||||
if (m_bdl_tail == m_bdl_head)
|
||||
{
|
||||
if (auto ret = reset_stream(); ret.is_error())
|
||||
{
|
||||
dwarnln("failed to reset HDA stream: {}", ret.error());
|
||||
return;
|
||||
}
|
||||
bar.write8(base + Regs::SDCTL, bar.read8(base + Regs::SDCTL) & 0xFD);
|
||||
m_stream_running = false;
|
||||
}
|
||||
|
||||
queue_bdl_data();
|
||||
|
||||
Reference in New Issue
Block a user