Synth stereo channels sometimes get reversed after unlock

I've noticed an issue with synth sounds that's only happening on the hardware (rev A). Sometimes the left and right channels are getting reversed after locking and unlocking the Playdate. It affects both channel:setPan() and synth:setVolume() being used to set the pan. Not sure if it affects other sounds.

Sample code, tested on rev A hardware with headphones:

  1. Use left/right and A/B to play stereo sounds
  2. Lock and unlock the Playdate
  3. Repeat a few times until the left and right channels are reversed
local channel = playdate.sound.channel.new()
local synth1 = playdate.sound.synth.new(playdate.sound.kWaveSquare)
channel:addSource(synth1)
channel:setVolume(0.4)
local synth2 = playdate.sound.synth.new(playdate.sound.kWaveSawtooth)

function playdate.BButtonDown()
    synth2:setVolume(0.5, 0)
    synth2:playNote(440)
end

function playdate.BButtonUp()
    synth2:noteOff()
end

function playdate.AButtonDown()
    synth2:setVolume(0, 0.5)
    synth2:playNote(440)
end

function playdate.AButtonUp()
    synth2:noteOff()
end

function playdate.leftButtonDown()
    channel:setPan(-1)
    synth1:playNote(440)
end

function playdate.leftButtonUp()
    synth1:noteOff()
end

function playdate.rightButtonDown()
    channel:setPan(1)
    synth1:playNote(440)
end

function playdate.rightButtonUp()
    synth1:noteOff()
end

function playdate.update() end