File tree Expand file tree Collapse file tree 12 files changed +21
-19
lines changed Expand file tree Collapse file tree 12 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ class AudioDriverAC101Class : public AudioDriver {
291
291
*/
292
292
class AudioDriverCS43l22Class : public AudioDriver {
293
293
public:
294
- AudioDriverCS43l22Class (uint16_t deviceAddr = 0x94 ) {
294
+ AudioDriverCS43l22Class (uint16_t deviceAddr = 0x4A ) {
295
295
this ->deviceAddr = deviceAddr;
296
296
}
297
297
@@ -829,7 +829,7 @@ class AudioDriverWM8960Class : public AudioDriver {
829
829
*/
830
830
class AudioDriverWM8994Class : public AudioDriver {
831
831
public:
832
- AudioDriverWM8994Class (uint16_t deviceAddr = 0x34 ) {
832
+ AudioDriverWM8994Class (uint16_t deviceAddr = 0x1A ) {
833
833
this ->deviceAddr = deviceAddr;
834
834
}
835
835
Original file line number Diff line number Diff line change 11
11
#define I2C_MASTER_READ 1
12
12
13
13
14
- #define AC101_ADDR 0x34 /*!< Device address 0x1a/0x34 */
14
+ #define AC101_ADDR 0x1A /*!< Device address 0x1a/0x34 */
15
15
16
16
#undef READ_BIT
17
17
#define WRITE_BIT I2C_MASTER_WRITE /*!< I2C master write */
Original file line number Diff line number Diff line change 30
30
#define TAG_ES7210 "ES7210"
31
31
32
32
/* ES7210 address*/
33
- #define ES7210_ADDR ES7210_AD1_AD0_00
33
+ #define ES7210_ADDR ES7210_AD1_AD0_00>>1
34
34
#define ES7210_MCLK_SOURCE FROM_CLOCK_DOUBLE_PIN /* In master mode, 0 : MCLK from pad 1 : MCLK from clock doubler */
35
35
#define FROM_PAD_PIN 0
36
36
#define FROM_CLOCK_DOUBLE_PIN 1
Original file line number Diff line number Diff line change 35
35
}
36
36
37
37
static i2c_bus_handle_t i2c_handle ;
38
- static int es7243_addr = 0x26 ;
38
+ static int es7243_addr = 0x13 ; // 0x26>>1 ;
39
39
static int mclk_gpio = 0 ;
40
40
41
41
// func_t AUDIO_CODEC_ES7243_DEFAULT_HANDLE = {
Original file line number Diff line number Diff line change 27
27
28
28
//static char *TAG = "DRV7243E";
29
29
static i2c_bus_handle_t i2c_handle ;
30
- static int es7243e_addr = 0x20 ;
30
+ static int es7243e_addr = 0x10 ; // 0x20 >> 1 ;
31
31
32
32
// func_t AUDIO_CODEC_ES7243E_DEFAULT_HANDLE = {
33
33
// .audio_codec_initialize = es7243e_adc_init,
Original file line number Diff line number Diff line change 27
27
#include "es8156.h"
28
28
29
29
#define BIT (nr ) (1 << (nr))
30
- #define ES8156_ADDR 0x10
31
- #define BOARD_PA_GAIN (0) /* Power amplifier gain defined by board (dB) */
30
+ // 0x8 = 0x10>>1
31
+ #define ES8156_ADDR 0x8
32
+ #define BOARD_PA_GAIN (0) /* Power amplifier gain defined by board (dB) */
32
33
33
34
//static const char *TAG = "DRV8156";
34
35
static bool codec_init_flag = 0 ;
Original file line number Diff line number Diff line change 30
30
31
31
/* ES8311 address
32
32
* 0x32:CE=1;0x30:CE=0
33
+ * 0x30>>1 = 0x18
33
34
*/
34
- #define ES8311_ADDR 0x30
35
+ #define ES8311_ADDR 0x18
35
36
36
37
/*
37
38
* to define the clock soure of MCLK
Original file line number Diff line number Diff line change 33
33
extern "C" {
34
34
#endif
35
35
36
- /* ES8374 address */
37
- #define ES8374_ADDR 0x20 // 0x22:CE=1;0x20:CE=0
36
+ /* ES8374 address 0x22:CE=1;0x20:CE=0 / 0x20>>1 = 0x10 */
37
+ #define ES8374_ADDR 0x10
38
38
39
39
/**
40
40
* @brief Initialize ES8374 codec chip
Original file line number Diff line number Diff line change 33
33
extern "C" {
34
34
#endif
35
35
36
- /* ES8388 address */
37
- #define ES8388_ADDR 0x20 /*!< 0x22:CE=1;0x20:CE=0*/
38
-
36
+ /* ES8388 address 0x22:CE=1;0x20:CE=0 */
37
+ #define ES8388_ADDR 0x10
39
38
/* ES8388 register */
40
39
#define ES8388_CONTROL1 0x00
41
40
#define ES8388_CONTROL2 0x01
Original file line number Diff line number Diff line change 26
26
#include "tas5805m.h"
27
27
#include "tas5805m_reg_cfg.h"
28
28
#include "Utils/etc.h"
29
+ // 0x5c>>1 = 0x2E
29
30
30
- #define TAS5805M_ADDR 0x5c
31
+ #define TAS5805M_ADDR 0x2E
31
32
//#define TAS5805M_RST_GPIO get_pa_enable_gpio()
32
33
#define TAS5805M_VOLUME_MAX 100
33
34
#define TAS5805M_VOLUME_MIN 0
You can’t perform that action at this time.
0 commit comments