Skip to content

Commit 78e912a

Browse files
committed
muvm-guest: pwbridge: swap eventfd directions to fix playback
Looks like at some point, PipeWire swapped around the order of the attached fds, so audio playback has been broken here. As a hotfix, follow the change. Signed-off-by: Val Packett <[email protected]>
1 parent fe3fe12 commit 78e912a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/muvm/src/guest/bridge/pipewire.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ impl ProtocolHandler for PipeWireProtocolHandler {
268268
fds.push(Self::create_guest_to_host_eventfd(this, hdr.id, rsc)?);
269269
} else if hdr.opcode == PW_OPC_CLIENT_NODE_TRANSPORT {
270270
let rsc1 = resources.pop_front().ok_or(Errno::EIO)?;
271-
fds.push(Self::create_host_to_guest_eventfd(this, hdr.id, rsc1)?);
271+
fds.push(Self::create_guest_to_host_eventfd(this, hdr.id, rsc1)?);
272272
let rsc2 = resources.pop_front().ok_or(Errno::EIO)?;
273-
fds.push(Self::create_guest_to_host_eventfd(this, hdr.id, rsc2)?);
273+
fds.push(Self::create_host_to_guest_eventfd(this, hdr.id, rsc2)?);
274274
} else {
275275
unimplemented!()
276276
}

0 commit comments

Comments
 (0)