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 {
291291 */
292292class AudioDriverCS43l22Class : public AudioDriver {
293293public:
294- AudioDriverCS43l22Class (uint16_t deviceAddr = 0x94 ) {
294+ AudioDriverCS43l22Class (uint16_t deviceAddr = 0x4A ) {
295295 this ->deviceAddr = deviceAddr;
296296 }
297297
@@ -829,7 +829,7 @@ class AudioDriverWM8960Class : public AudioDriver {
829829 */
830830class AudioDriverWM8994Class : public AudioDriver {
831831public:
832- AudioDriverWM8994Class (uint16_t deviceAddr = 0x34 ) {
832+ AudioDriverWM8994Class (uint16_t deviceAddr = 0x1A ) {
833833 this ->deviceAddr = deviceAddr;
834834 }
835835
Original file line number Diff line number Diff line change 1111#define I2C_MASTER_READ 1
1212
1313
14- #define AC101_ADDR 0x34 /*!< Device address 0x1a/0x34 */
14+ #define AC101_ADDR 0x1A /*!< Device address 0x1a/0x34 */
1515
1616#undef READ_BIT
1717#define WRITE_BIT I2C_MASTER_WRITE /*!< I2C master write */
Original file line number Diff line number Diff line change 3030#define TAG_ES7210 "ES7210"
3131
3232/* ES7210 address*/
33- #define ES7210_ADDR ES7210_AD1_AD0_00
33+ #define ES7210_ADDR ES7210_AD1_AD0_00>>1
3434#define ES7210_MCLK_SOURCE FROM_CLOCK_DOUBLE_PIN /* In master mode, 0 : MCLK from pad 1 : MCLK from clock doubler */
3535#define FROM_PAD_PIN 0
3636#define FROM_CLOCK_DOUBLE_PIN 1
Original file line number Diff line number Diff line change 3535 }
3636
3737static i2c_bus_handle_t i2c_handle ;
38- static int es7243_addr = 0x26 ;
38+ static int es7243_addr = 0x13 ; // 0x26>>1 ;
3939static int mclk_gpio = 0 ;
4040
4141// func_t AUDIO_CODEC_ES7243_DEFAULT_HANDLE = {
Original file line number Diff line number Diff line change 2727
2828//static char *TAG = "DRV7243E";
2929static i2c_bus_handle_t i2c_handle ;
30- static int es7243e_addr = 0x20 ;
30+ static int es7243e_addr = 0x10 ; // 0x20 >> 1 ;
3131
3232// func_t AUDIO_CODEC_ES7243E_DEFAULT_HANDLE = {
3333// .audio_codec_initialize = es7243e_adc_init,
Original file line number Diff line number Diff line change 2727#include "es8156.h"
2828
2929#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) */
3233
3334//static const char *TAG = "DRV8156";
3435static bool codec_init_flag = 0 ;
Original file line number Diff line number Diff line change 3030
3131/* ES8311 address
3232 * 0x32:CE=1;0x30:CE=0
33+ * 0x30>>1 = 0x18
3334 */
34- #define ES8311_ADDR 0x30
35+ #define ES8311_ADDR 0x18
3536
3637/*
3738 * to define the clock soure of MCLK
Original file line number Diff line number Diff line change 3333extern "C" {
3434#endif
3535
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
3838
3939/**
4040 * @brief Initialize ES8374 codec chip
Original file line number Diff line number Diff line change 3333extern "C" {
3434#endif
3535
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
3938/* ES8388 register */
4039#define ES8388_CONTROL1 0x00
4140#define ES8388_CONTROL2 0x01
Original file line number Diff line number Diff line change 2626#include "tas5805m.h"
2727#include "tas5805m_reg_cfg.h"
2828#include "Utils/etc.h"
29+ // 0x5c>>1 = 0x2E
2930
30- #define TAS5805M_ADDR 0x5c
31+ #define TAS5805M_ADDR 0x2E
3132//#define TAS5805M_RST_GPIO get_pa_enable_gpio()
3233#define TAS5805M_VOLUME_MAX 100
3334#define TAS5805M_VOLUME_MIN 0
You can’t perform that action at this time.
0 commit comments