@@ -22,7 +22,7 @@ use num_enum::IntoPrimitive;
22
22
23
23
// Process samples at 1000 Hz
24
24
// With a circular buffer(*2) in stereo (*2)
25
- pub const BLOCK_SIZE_MAX : usize = 512 ;
25
+ pub const BLOCK_SIZE_MAX : usize = 1024 ;
26
26
pub const DMA_BUFFER_SIZE : usize = BLOCK_SIZE_MAX * 2 * 2 ;
27
27
28
28
pub type DmaBuffer = [ u32 ; DMA_BUFFER_SIZE ] ;
@@ -66,7 +66,7 @@ type DmaOutputStream = dma::Transfer<
66
66
type StereoIteratorHandle = fn ( StereoIterator , & mut Output ) ;
67
67
68
68
#[ derive( Debug , Copy , Clone , PartialEq ) ]
69
- struct S24 ( i32 ) ;
69
+ pub struct S24 ( i32 ) ;
70
70
71
71
impl From < i32 > for S24 {
72
72
fn from ( x : i32 ) -> S24 {
@@ -463,11 +463,11 @@ const REGISTER_CONFIG: &[(Register, u8)] = &[
463
463
( Register :: ROUT1V , 0x00 ) ,
464
464
// set analog and digital routing
465
465
( Register :: APANA , 0x12 ) ,
466
- ( Register :: APDIGI , 0x01 ) ,
466
+ ( Register :: APDIGI , 0x00 ) ,
467
467
// configure power management
468
468
( Register :: PWR , 0x42 ) ,
469
469
// configure digital format
470
- ( Register :: IFACE , 0x0A ) ,
470
+ ( Register :: IFACE , 0b1001 ) ,
471
471
// set samplerate
472
472
( Register :: SRATE , 0x00 ) ,
473
473
( Register :: ACTIVE , 0x00 ) ,
0 commit comments