fix: Write responses after polling requests in audio and net drivers.
This commit is contained in:
committed by
Jeremy Soller
parent
91dc324ed2
commit
e405b11d43
@@ -102,6 +102,12 @@ fn daemon(daemon: daemon::Daemon, pcid_handle: PciFunctionHandle) -> ! {
|
||||
readiness_based
|
||||
.poll_all_requests(|| device.borrow_mut())
|
||||
.expect("ac97d: failed to poll requests");
|
||||
if !readiness_based
|
||||
.write_responses()
|
||||
.expect("ac97d: failed to write to socket")
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
let next_read = device_irq.next_read();
|
||||
|
||||
@@ -104,6 +104,12 @@ fn daemon(daemon: daemon::Daemon, mut pcid_handle: PciFunctionHandle) -> ! {
|
||||
readiness_based
|
||||
.poll_all_requests(|| device.borrow_mut())
|
||||
.expect("ihdad: failed to poll requests");
|
||||
if !readiness_based
|
||||
.write_responses()
|
||||
.expect("ihdad: failed to write to socket")
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
let next_read = device_irq.next_read();
|
||||
|
||||
@@ -87,6 +87,12 @@ fn daemon(daemon: daemon::Daemon) -> ! {
|
||||
readiness_based
|
||||
.poll_all_requests(|| device.borrow_mut())
|
||||
.expect("sb16d: failed to poll requests");
|
||||
if !readiness_based
|
||||
.write_responses()
|
||||
.expect("sb16d: failed to write to socket")
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
let next_read = device_irq.next_read();
|
||||
|
||||
@@ -97,7 +97,13 @@ fn daemon(daemon: daemon::Daemon) -> ! {
|
||||
|
||||
readiness_based
|
||||
.poll_all_requests(|| device.borrow_mut())
|
||||
.expect("ihdad: failed to poll requests");
|
||||
.expect("alxd: failed to poll requests");
|
||||
if !readiness_based
|
||||
.write_responses()
|
||||
.expect("alxd: failed to write to socket")
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/* TODO: Currently a no-op
|
||||
let next_read = device.next_read();
|
||||
|
||||
Reference in New Issue
Block a user