File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/AudioTools/CoreAudio/AudioAnalog Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
437
437
.freq_hz = (uint32_t )cfg.sample_rate ,
438
438
.offset = 0 ,
439
439
.clk_src = cfg.use_apll ? DAC_DIGI_CLK_SRC_APLL : DAC_DIGI_CLK_SRC_DEFAULT, // Using APLL as clock source to get a wider frequency range
440
- .chan_mode = DAC_CHANNEL_MODE_ALTER,
440
+ .chan_mode = cfg. channels == 1 ? DAC_CHANNEL_MODE_SIMUL : DAC_CHANNEL_MODE_ALTER,
441
441
};
442
442
// Allocate continuous channels
443
443
if (dac_continuous_new_channels (&cont_cfg, &dac_handle) != ESP_OK) {
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
277
277
.freq_hz = (uint32_t )cfg.sample_rate ,
278
278
.offset = 0 ,
279
279
.clk_src = cfg.use_apll ? DAC_DIGI_CLK_SRC_APLL : DAC_DIGI_CLK_SRC_DEFAULT, // Using APLL as clock source to get a wider frequency range
280
- .chan_mode = DAC_CHANNEL_MODE_ALTER,
280
+ .chan_mode = cfg. channels == 1 ? DAC_CHANNEL_MODE_SIMUL : DAC_CHANNEL_MODE_ALTER,
281
281
};
282
282
// Allocate continuous channels
283
283
if (dac_continuous_new_channels (&cont_cfg, &dac_handle) != ESP_OK) {
You can’t perform that action at this time.
0 commit comments