Skip to content

Commit 0e1fc6c

Browse files
committed
Rename Common. to DriverCommon.h
1 parent 6acd7e1 commit 0e1fc6c

File tree

18 files changed

+22
-17
lines changed

18 files changed

+22
-17
lines changed

src/Driver.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#pragma once
3-
#include "Common.h"
3+
#include "DriverCommon.h"
44
#include "Driver/ac101/ac101.h"
55
#include "Driver/ad1938/ad1938.h"
66
#include "Driver/cs42448/cs42448.h"
@@ -261,6 +261,9 @@ class AudioDriver {
261261
return true;
262262
}
263263

264+
/// Gets the number of I2S Interfaces
265+
virtual int getI2SCount() { return 1;}
266+
264267
protected:
265268
CodecConfig codec_cfg;
266269
DriverPins *p_pins = nullptr;
@@ -1323,6 +1326,8 @@ class AudioDriverLyratMiniClass : public AudioDriver {
13231326
bool setInputVolume(int volume) { return adc.setVolume(volume); }
13241327
int getInputVolume() { return adc.getVolume(); }
13251328
bool isInputVolumeSupported() { return true; }
1329+
// Separate ADC and DAC I2S
1330+
int getI2SCount() override { return 2;}
13261331

13271332
protected:
13281333
AudioDriverES8311Class dac;

src/Driver/ac101/ac101.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#pragma once
44

55
#include "stdbool.h"
6-
#include "Common.h"
6+
#include "DriverCommon.h"
77
#include "Utils/I2C.h"
88
#include "Driver/DriverConstants.h"
99

src/Driver/ad1938/ad1938.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#pragma once
2727
#include <SPI.h>
28-
#include "Common.h"
28+
#include "DriverCommon.h"
2929
#include "Driver/DriverConstants.h"
3030

3131
/**

src/Driver/cs42448/cs42448.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
*/
2626
#pragma once
27-
#include "Common.h"
27+
#include "DriverCommon.h"
2828
#include "Driver/DriverConstants.h"
2929
#include "Utils/I2C.h"
3030

src/Driver/cs43l22/cs43l22.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//#include "../Common/audio.h"
4141
#include <stdint.h>
4242
#include "stdbool.h"
43-
#include "Common.h"
43+
#include "DriverCommon.h"
4444
#include "Utils/I2C.h"
4545
#include "Driver/DriverConstants.h"
4646

src/Driver/es7210/es7210.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#pragma once
2626

2727
#include "stdbool.h"
28-
#include "Common.h"
28+
#include "DriverCommon.h"
2929
#include "Utils/I2C.h"
3030
#include "Driver/DriverConstants.h"
3131

src/Driver/es7243/es7243.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define _ES7243_H_
2727

2828
#include "stdbool.h"
29-
#include "Common.h"
29+
#include "DriverCommon.h"
3030
#include "Utils/I2C.h"
3131
#include "Driver/DriverConstants.h"
3232

src/Driver/es7243e/es7243e.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define _ES7243E_H_
2727

2828
#include "stdbool.h"
29-
#include "Common.h"
29+
#include "DriverCommon.h"
3030
#include "Utils/I2C.h"
3131
#include "Driver/DriverConstants.h"
3232

src/Driver/es8156/es8156.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#pragma once
2525

2626
#include "stdbool.h"
27-
#include "Common.h"
27+
#include "DriverCommon.h"
2828
#include "Utils/I2C.h"
2929
#include "Driver/DriverConstants.h"
3030

src/Driver/es8311/es8311.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#pragma once
2525

2626
#include "stdbool.h"
27-
#include "Common.h"
27+
#include "DriverCommon.h"
2828
#include "Utils/I2C.h"
2929
#include "Driver/DriverConstants.h"
3030

src/Driver/es8374/es8374.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#pragma once
2626

2727
#include "stdbool.h"
28-
#include "Common.h"
28+
#include "DriverCommon.h"
2929
#include "Utils/I2C.h"
3030
#include "Driver/DriverConstants.h"
3131

src/Driver/es8388/es8388.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#pragma once
2626

2727
#include "stdbool.h"
28-
#include "Common.h"
28+
#include "DriverCommon.h"
2929
#include "Driver/DriverConstants.h"
3030
#include "Utils/I2C.h"
3131

src/Driver/tas5805m/tas5805m.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#pragma once
2626

2727
#include "stdbool.h"
28-
#include "Common.h"
28+
#include "DriverCommon.h"
2929
#include "Driver/DriverConstants.h"
3030
#include "Utils/I2C.h"
3131

src/Driver/wm8978/WM8978.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __WM8978_H
33

44
#include <stdio.h>
5-
#include "Common.h"
5+
#include "DriverCommon.h"
66
#include "Utils/I2C.h"
77
#include "Wire.h"
88

src/Driver/wm8994/wm8994.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
//#include "../Common/audio.h"
4545
#include <stdint.h>
4646
#include "stdbool.h"
47-
#include "Common.h"
47+
#include "DriverCommon.h"
4848
#include "Driver/DriverConstants.h"
4949
#include "Utils/I2C.h"
5050
#include "Utils/etc.h"
File renamed without changes.

src/DriverPins.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#pragma once
3-
#include "Common.h"
3+
#include "DriverCommon.h"
44
#include "SPI.h"
55
#include "Utils/Optional.h"
66
#include "Utils/Vector.h"

src/Utils/I2C.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include <stdint.h>
3-
#include "Common.h"
3+
#include "DriverCommon.h"
44

55

66
#ifdef __cplusplus

0 commit comments

Comments
 (0)