fix some compile issue & add TAS5713

This commit is contained in:
Philippe G
2020-08-03 13:19:47 -07:00
parent 0865496d76
commit 05e3c59a46
8 changed files with 48 additions and 65 deletions

View File

@@ -16,7 +16,7 @@ typedef enum { ADAC_ON = 0, ADAC_STANDBY, ADAC_OFF } adac_power_e;
struct adac_s {
char *model;
bool (*init)(char *config, int i2c_port_num);
bool (*init)(char *config, int i2c_port_num, i2s_config_t *i2s_config);
void (*deinit)(void);
void (*power)(adac_power_e mode);
void (*speaker)(bool active);
@@ -25,5 +25,6 @@ struct adac_s {
};
extern const struct adac_s dac_tas57xx;
extern const struct adac_s dac_tas5713;
extern const struct adac_s dac_ac101;
extern const struct adac_s dac_external;