Skip to content

Commit

Permalink
Use fence on I2S driver since it seems to slightly improve input
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Nov 29, 2023
1 parent 24de114 commit a664f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/audio/csaudiork3x/Source/Utilities/hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ CCsAudioRk3xHW::~CCsAudioRk3xHW() {

#if USERKHW
static UINT32 read32(PVOID addr) {
UINT32 ret = READ_REGISTER_NOFENCE_ULONG((ULONG *)addr);
UINT32 ret = READ_REGISTER_ULONG((ULONG *)addr);
//DbgPrint("Read from %p: 0x%x\n", addr, ret);
return ret;
}

static void write32(PVOID addr, UINT32 data) {
WRITE_REGISTER_NOFENCE_ULONG((ULONG *)addr, data);
WRITE_REGISTER_ULONG((ULONG *)addr, data);
//DbgPrint("Write to %p: 0x%x\n", addr, data);
}

Expand Down

0 comments on commit a664f8a

Please sign in to comment.