Skip to content

Commit

Permalink
fix swapped left/right channels in DACs
Browse files Browse the repository at this point in the history
  • Loading branch information
hansfbaier committed Jan 1, 2022
1 parent 549bbc7 commit ec56755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateware/adat_usb2_audio_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
]

Expand Down

0 comments on commit ec56755

Please sign in to comment.