From ec56755906527cadc5c8efe269861b17d859a08a Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Sat, 1 Jan 2022 17:47:54 +0700 Subject: [PATCH] fix swapped left/right channels in DACs --- gateware/adat_usb2_audio_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateware/adat_usb2_audio_interface.py b/gateware/adat_usb2_audio_interface.py index 3088f67..a2dc4d5 100644 --- a/gateware/adat_usb2_audio_interface.py +++ b/gateware/adat_usb2_audio_interface.py @@ -447,12 +447,12 @@ def wire_up_dac(self, m, usb_to_channel_stream, dac_extractor, dac, lrclk, dac_p # the clock signal dac_pads.sclk.eq(~ClockSignal("adat")), dac_pads.bclk.eq(~ClockSignal("dac")), - dac_pads.lrclk.eq(lrclk), + dac_pads.lrclk.eq(~lrclk), dac_pads.data.eq(dac.serial_data_out), dac.enable_in.eq(1), # wire up I2S transmitter - dac.word_select_in.eq(lrclk), + dac.word_select_in.eq(~lrclk), dac.serial_clock_in.eq(~ClockSignal("dac")), ]