Pārlūkot izejas kodu

Be more careful when configuring MCLK

dds
PaulStoffregen pirms 8 gadiem
vecāks
revīzija
833a7e27a7
3 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      output_i2s.cpp
  2. +1
    -0
      output_i2s_quad.cpp
  3. +1
    -0
      output_spdif.cpp

+ 1
- 0
output_i2s.cpp Parādīt failu

@@ -298,6 +298,7 @@ void AudioOutputI2S::config_i2s(void)

// enable MCLK output
I2S0_MCR = I2S_MCR_MICS(MCLK_SRC) | I2S_MCR_MOE;
while (I2S0_MCR & I2S_MCR_DUF) ;
I2S0_MDR = I2S_MDR_FRACT((MCLK_MULT-1)) | I2S_MDR_DIVIDE((MCLK_DIV-1));

// configure transmitter

+ 1
- 0
output_i2s_quad.cpp Parādīt failu

@@ -293,6 +293,7 @@ void AudioOutputI2SQuad::config_i2s(void)

// enable MCLK output
I2S0_MCR = I2S_MCR_MICS(MCLK_SRC) | I2S_MCR_MOE;
while (I2S0_MCR & I2S_MCR_DUF) ;
I2S0_MDR = I2S_MDR_FRACT((MCLK_MULT-1)) | I2S_MDR_DIVIDE((MCLK_DIV-1));

// configure transmitter

+ 1
- 0
output_spdif.cpp Parādīt failu

@@ -343,6 +343,7 @@ void AudioOutputSPDIF::config_SPDIF(void)

// enable MCLK output
I2S0_MCR = I2S_MCR_MICS(MCLK_SRC) | I2S_MCR_MOE;
while (I2S0_MCR & I2S_MCR_DUF) ;
I2S0_MDR = I2S_MDR_FRACT((MCLK_MULT-1)) | I2S_MDR_DIVIDE((MCLK_DIV-1));

// configure transmitter

Notiek ielāde…
Atcelt
Saglabāt