ctag-fh-kiel / ctag-tbd

CTAG TBD >>to be determined<< an extendible open source Eurorack sound module
Other
141 stars 43 forks source link

Right channel output. Signal phase reversed by 180 #58

Closed Synthpatti closed 7 months ago

Synthpatti commented 2 years ago

Gives the input 2 x signal (L/R) sine of the same phase and at the output the right channel reverses phase by 180. There are with almost all Stereo Soft. Also at Chanel Strip. Applies to version V2 with QFN DAC WM8978 Old one with WM8731 works fine.

ctag-fh-kiel commented 2 years ago

Do you see this behaviour when "Void" plugin is assigned to CH0 and CH1?

Synthpatti commented 2 years ago

yes,

the second channel inverts the phase

ctag-fh-kiel commented 2 years ago

You could try to play with the ADC and DAC control registers of the WM8978. Pg. 89 of the data sheet https://www.mouser.de/datasheet/2/76/WM8978_v4_5-1141768.pdf, registers 0x0A and 0x0D have bits to invert the phases by 180°. You can add control of those registers in the firmware in this file: https://github.com/ctag-fh-kiel/ctag-tbd/blob/master/components/drivers/codec.cpp

Synthpatti commented 2 years ago

Hi,

thank you for the quick answer, I'm not good in programing. Could you please send me or share a ready .bin files

greetings

Nils

ctag-fh-kiel commented 2 years ago

I had a look at the code, in fact there were some config bits wrongly set. It should be fixed now. Please check out the current binaries. If everything works fine, I will amend the current release with the fix... Thanks for reporting the issue :)

Synthpatti commented 2 years ago

Hi, sorry for ma late answer, now the channel phase its correctly. The Module working good. Many thanks for updating firmware

greetings Nils