diff options
| -rw-r--r-- | embassy-nrf/src/i2s.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/embassy-nrf/src/i2s.rs b/embassy-nrf/src/i2s.rs index d5815160a..bc90dbc98 100644 --- a/embassy-nrf/src/i2s.rs +++ b/embassy-nrf/src/i2s.rs | |||
| @@ -645,7 +645,8 @@ pub struct OutputStream<'d, T: Instance> { | |||
| 645 | 645 | ||
| 646 | impl<'d, T: Instance> OutputStream<'d, T> { | 646 | impl<'d, T: Instance> OutputStream<'d, T> { |
| 647 | /// Prepare the initial buffer and start the I2S transfer. | 647 | /// Prepare the initial buffer and start the I2S transfer. |
| 648 | pub async fn start<S>(&self, buffer: &[S]) -> Result<(), Error> | 648 | #[allow(unused_mut)] |
| 649 | pub async fn start<S>(&mut self, buffer: &[S]) -> Result<(), Error> | ||
| 649 | where | 650 | where |
| 650 | S: Sample, | 651 | S: Sample, |
| 651 | { | 652 | { |
| @@ -694,7 +695,8 @@ pub struct InputStream<'d, T: Instance> { | |||
| 694 | 695 | ||
| 695 | impl<'d, T: Instance> InputStream<'d, T> { | 696 | impl<'d, T: Instance> InputStream<'d, T> { |
| 696 | /// Prepare the initial buffer and start the I2S transfer. | 697 | /// Prepare the initial buffer and start the I2S transfer. |
| 697 | pub async fn start<S>(&self, buffer: &mut [S]) -> Result<(), Error> | 698 | #[allow(unused_mut)] |
| 699 | pub async fn start<S>(&mut self, buffer: &mut [S]) -> Result<(), Error> | ||
| 698 | where | 700 | where |
| 699 | S: Sample, | 701 | S: Sample, |
| 700 | { | 702 | { |
| @@ -743,7 +745,8 @@ pub struct FullDuplexStream<'d, T: Instance> { | |||
| 743 | 745 | ||
| 744 | impl<'d, T: Instance> FullDuplexStream<'d, T> { | 746 | impl<'d, T: Instance> FullDuplexStream<'d, T> { |
| 745 | /// Prepare the initial buffers and start the I2S transfer. | 747 | /// Prepare the initial buffers and start the I2S transfer. |
| 746 | pub async fn start<S>(&self, buffer_out: &[S], buffer_in: &mut [S]) -> Result<(), Error> | 748 | #[allow(unused_mut)] |
| 749 | pub async fn start<S>(&mut self, buffer_out: &[S], buffer_in: &mut [S]) -> Result<(), Error> | ||
| 747 | where | 750 | where |
| 748 | S: Sample, | 751 | S: Sample, |
| 749 | { | 752 | { |
