Skip to content

Commit

Permalink
Fix DSP::ForceHeadphoneOut
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Dec 9, 2024
1 parent cc669d7 commit bdb467d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/services/dsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,7 @@ void DSPService::invalidateDCache(u32 messagePointer) {
}

void DSPService::forceHeadphoneOut(u32 messagePointer) {
const bool force = mem.read8(messagePointer + 4) != 0;
if (force) {
headphonesInserted = false;
}
headphonesInserted = mem.read8(messagePointer + 4) != 0;

log("DSP::ForceHeadphoneOut\n");
mem.write32(messagePointer, IPC::responseHeader(0x20, 1, 0));
Expand Down

0 comments on commit bdb467d

Please sign in to comment.