File tree Expand file tree Collapse file tree 18 files changed +22
-17
lines changed Expand file tree Collapse file tree 18 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 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;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2525
2626#pragma once
2727#include < SPI.h>
28- #include " Common .h"
28+ #include " DriverCommon .h"
2929#include " Driver/DriverConstants.h"
3030
3131/* *
Original file line number Diff line number Diff line change 2424 *
2525 */
2626#pragma once
27- #include " Common .h"
27+ #include " DriverCommon .h"
2828#include " Driver/DriverConstants.h"
2929#include " Utils/I2C.h"
3030
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments