Skip to content

Commit

Permalink
Fix another instance of dma_desc for 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacut committed Sep 22, 2023
1 parent 0b2dcd5 commit e8c35d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/i2s/pdm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ pub(super) mod config {
channel_format: chan_fmt,
communication_format: 0, // ?
intr_alloc_flags: 1 << 1, // ESP_INTR_FLAG_LEVEL1
dma_buf_count: self.channel_cfg.dma_desc as i32,
dma_buf_len: self.channel_cfg.frames as i32,
dma_buf_count: self.channel_cfg.dma_buffer_count as i32,
dma_buf_len: self.channel_cfg.frames_per_buffer as i32,
#[cfg(any(esp32, esp32s2))]
use_apll: matches!(self.clk_cfg.clk_src, ClockSource::Apll),
#[cfg(not(any(esp32, esp32s2)))]
Expand Down

0 comments on commit e8c35d7

Please sign in to comment.