Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions iop/sound/ahx/src/spu2.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ void InitSpu2()
*U32_REGISTER(0x1404) = 0xBF900000;
*U32_REGISTER(0x140C) = 0xBF900800;
*U32_REGISTER(0x10F0) |= 0x80000;
#if 0
// Original
*U32_REGISTER(0x1570) |= 8;
#else
// Patch to allow SPU2 and USB to work together on newer slims
// Taken from https://gitlab.com/ps2max/linux/kernelloader/-/blob/7255483bf03e42fa3b34c4a990ffcb0e61a7b7da/loader/loader.c#L564
*U32_REGISTER(0x1570) |= 0x8000008;
#endif
*U32_REGISTER(0x1014) = 0x200B31E1;
*U32_REGISTER(0x1414) = 0x200B31E1;
}
Expand Down
7 changes: 7 additions & 0 deletions iop/sound/libsd/src/freesd.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ void InitSpu2()
U32_REGISTER_WRITE(U32_REGISTER(0x1404), 0xBF900000);
U32_REGISTER_WRITE(U32_REGISTER(0x140C), 0xBF900800);
U32_REGISTER_WRITEOR(U32_REGISTER(0x10F0), 0x80000);
#if 0
// Original
U32_REGISTER_WRITEOR(U32_REGISTER(0x1570), 8);
#else
// Patch to allow SPU2 and USB to work together on newer slims
// Taken from https://gitlab.com/ps2max/linux/kernelloader/-/blob/7255483bf03e42fa3b34c4a990ffcb0e61a7b7da/loader/loader.c#L564
U32_REGISTER_WRITEOR(U32_REGISTER(0x1570), 0x8000008);
#endif
U32_REGISTER_WRITE(U32_REGISTER(0x1014), 0x200B31E1);
U32_REGISTER_WRITE(U32_REGISTER(0x1414), 0x200B31E1);
}
Expand Down