File tree 18 files changed +22
-17
lines changed
18 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 1
1
2
2
#pragma once
3
- #include " Common .h"
3
+ #include " DriverCommon .h"
4
4
#include " Driver/ac101/ac101.h"
5
5
#include " Driver/ad1938/ad1938.h"
6
6
#include " Driver/cs42448/cs42448.h"
@@ -261,6 +261,9 @@ class AudioDriver {
261
261
return true ;
262
262
}
263
263
264
+ // / Gets the number of I2S Interfaces
265
+ virtual int getI2SCount () { return 1 ;}
266
+
264
267
protected:
265
268
CodecConfig codec_cfg;
266
269
DriverPins *p_pins = nullptr ;
@@ -1323,6 +1326,8 @@ class AudioDriverLyratMiniClass : public AudioDriver {
1323
1326
bool setInputVolume (int volume) { return adc.setVolume (volume); }
1324
1327
int getInputVolume () { return adc.getVolume (); }
1325
1328
bool isInputVolumeSupported () { return true ; }
1329
+ // Separate ADC and DAC I2S
1330
+ int getI2SCount () override { return 2 ;}
1326
1331
1327
1332
protected:
1328
1333
AudioDriverES8311Class dac;
Original file line number Diff line number Diff line change 3
3
#pragma once
4
4
5
5
#include "stdbool.h"
6
- #include "Common .h"
6
+ #include "DriverCommon .h"
7
7
#include "Utils/I2C.h"
8
8
#include "Driver/DriverConstants.h"
9
9
Original file line number Diff line number Diff line change 25
25
26
26
#pragma once
27
27
#include < SPI.h>
28
- #include " Common .h"
28
+ #include " DriverCommon .h"
29
29
#include " Driver/DriverConstants.h"
30
30
31
31
/* *
Original file line number Diff line number Diff line change 24
24
*
25
25
*/
26
26
#pragma once
27
- #include " Common .h"
27
+ #include " DriverCommon .h"
28
28
#include " Driver/DriverConstants.h"
29
29
#include " Utils/I2C.h"
30
30
Original file line number Diff line number Diff line change 40
40
//#include "../Common/audio.h"
41
41
#include <stdint.h>
42
42
#include "stdbool.h"
43
- #include "Common .h"
43
+ #include "DriverCommon .h"
44
44
#include "Utils/I2C.h"
45
45
#include "Driver/DriverConstants.h"
46
46
Original file line number Diff line number Diff line change 25
25
#pragma once
26
26
27
27
#include "stdbool.h"
28
- #include "Common .h"
28
+ #include "DriverCommon .h"
29
29
#include "Utils/I2C.h"
30
30
#include "Driver/DriverConstants.h"
31
31
Original file line number Diff line number Diff line change 26
26
#define _ES7243_H_
27
27
28
28
#include "stdbool.h"
29
- #include "Common .h"
29
+ #include "DriverCommon .h"
30
30
#include "Utils/I2C.h"
31
31
#include "Driver/DriverConstants.h"
32
32
Original file line number Diff line number Diff line change 26
26
#define _ES7243E_H_
27
27
28
28
#include "stdbool.h"
29
- #include "Common .h"
29
+ #include "DriverCommon .h"
30
30
#include "Utils/I2C.h"
31
31
#include "Driver/DriverConstants.h"
32
32
Original file line number Diff line number Diff line change 24
24
#pragma once
25
25
26
26
#include "stdbool.h"
27
- #include "Common .h"
27
+ #include "DriverCommon .h"
28
28
#include "Utils/I2C.h"
29
29
#include "Driver/DriverConstants.h"
30
30
Original file line number Diff line number Diff line change 24
24
#pragma once
25
25
26
26
#include "stdbool.h"
27
- #include "Common .h"
27
+ #include "DriverCommon .h"
28
28
#include "Utils/I2C.h"
29
29
#include "Driver/DriverConstants.h"
30
30
Original file line number Diff line number Diff line change 25
25
#pragma once
26
26
27
27
#include "stdbool.h"
28
- #include "Common .h"
28
+ #include "DriverCommon .h"
29
29
#include "Utils/I2C.h"
30
30
#include "Driver/DriverConstants.h"
31
31
Original file line number Diff line number Diff line change 25
25
#pragma once
26
26
27
27
#include "stdbool.h"
28
- #include "Common .h"
28
+ #include "DriverCommon .h"
29
29
#include "Driver/DriverConstants.h"
30
30
#include "Utils/I2C.h"
31
31
Original file line number Diff line number Diff line change 25
25
#pragma once
26
26
27
27
#include "stdbool.h"
28
- #include "Common .h"
28
+ #include "DriverCommon .h"
29
29
#include "Driver/DriverConstants.h"
30
30
#include "Utils/I2C.h"
31
31
Original file line number Diff line number Diff line change 2
2
#define __WM8978_H
3
3
4
4
#include < stdio.h>
5
- #include " Common .h"
5
+ #include " DriverCommon .h"
6
6
#include " Utils/I2C.h"
7
7
#include " Wire.h"
8
8
Original file line number Diff line number Diff line change 44
44
//#include "../Common/audio.h"
45
45
#include <stdint.h>
46
46
#include "stdbool.h"
47
- #include "Common .h"
47
+ #include "DriverCommon .h"
48
48
#include "Driver/DriverConstants.h"
49
49
#include "Utils/I2C.h"
50
50
#include "Utils/etc.h"
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
2
2
#pragma once
3
- #include " Common .h"
3
+ #include " DriverCommon .h"
4
4
#include " SPI.h"
5
5
#include " Utils/Optional.h"
6
6
#include " Utils/Vector.h"
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include <stdint.h>
3
- #include "Common .h"
3
+ #include "DriverCommon .h"
4
4
5
5
6
6
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments