diff --git a/docs/html/_audio_board_8h_source.html b/docs/html/_audio_board_8h_source.html
index ba60363..63a83c7 100644
--- a/docs/html/_audio_board_8h_source.html
+++ b/docs/html/_audio_board_8h_source.html
@@ -170,8 +170,8 @@
Abstract Driver API for codec chips.
Definition: Driver.h:169
virtual bool setMute(bool enable)=0
virtual bool end(void)
Definition: Driver.h:207
-virtual bool setInputVolume(int volume)
Definition: Driver.h:212
-bool setPAPower(bool enable)
Sets the PA Power pin to active or inactive.
Definition: Driver.h:219
+virtual bool setInputVolume(int volume)
Definition: Driver.h:218
+bool setPAPower(bool enable)
Sets the PA Power pin to active or inactive.
Definition: Driver.h:225
virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:171
virtual bool setVolume(int volume)=0
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:183
@@ -184,22 +184,22 @@
void setSPIActiveForSD(bool active)
Defines if SPI for SD should be started (by default true)
Definition: DriverPins.h:388
static PinsLyratMiniClass PinsLyratMini
Definition: DriverPins.h:696
static AudioBoard LyratV43
Definition: AudioBoard.h:80
-static AudioDriverLyratMiniClass AudioDriverLyratMini
Definition: Driver.h:1165
+static AudioDriverLyratMiniClass AudioDriverLyratMini
Definition: Driver.h:1171
static AudioBoard AudioKitEs8388V2
Definition: AudioBoard.h:76
-static NoDriverClass NoDriver
Definition: Driver.h:1167
+static NoDriverClass NoDriver
Definition: Driver.h:1173
static AudioBoard GenericCS43l22
Definition: AudioBoard.h:90
static PinsLyrat42Class PinsLyrat42
Definition: DriverPins.h:694
static PinsAudioKitAC101Class PinsAudioKitAC101
Definition: DriverPins.h:702
static AudioBoard GenericWM8960
Definition: AudioBoard.h:88
static PinsLyrat43Class PinsLyrat43
Definition: DriverPins.h:692
-static AudioDriverAC101Class AudioDriverAC101
Definition: Driver.h:1143
+static AudioDriverAC101Class AudioDriverAC101
Definition: Driver.h:1149
static AudioBoard AudioKitEs8388V1
Definition: AudioBoard.h:74
-static AudioDriverCS43l22Class AudioDriverCS43l22
Definition: Driver.h:1145
+static AudioDriverCS43l22Class AudioDriverCS43l22
Definition: Driver.h:1151
static AudioBoard LyratV42
Definition: AudioBoard.h:82
-static AudioDriverWM8960Class AudioDriverWM8960
Definition: Driver.h:1161
+static AudioDriverWM8960Class AudioDriverWM8960
Definition: Driver.h:1167
static PinsAudioKitEs8388v1Class PinsAudioKitEs8388v1
Definition: DriverPins.h:698
static AudioBoard LyratMini
Definition: AudioBoard.h:84
-static AudioDriverES8388Class AudioDriverES8388
Definition: Driver.h:1159
+static AudioDriverES8388Class AudioDriverES8388
Definition: Driver.h:1165
static DriverPins NoPins
Pins need to be set up in the sketch.
Definition: DriverPins.h:690
static AudioBoard AudioKitAC101
Definition: AudioBoard.h:78
static PinsAudioKitEs8388v2Class PinsAudioKitEs8388v2
Definition: DriverPins.h:700
diff --git a/docs/html/_driver_8h_source.html b/docs/html/_driver_8h_source.html
index 9292cc8..47681e7 100644
--- a/docs/html/_driver_8h_source.html
+++ b/docs/html/_driver_8h_source.html
@@ -258,860 +258,865 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 224 AD_LOGI(
"setPAPower pin %d -> %d", pin, enable);
-
-
-
-
-
-
-
-
-
- 235 if (
p_pins ==
nullptr)
return &Wire;
-
-
-
-
- 240 return i2c.value().p_wire;
-
-
-
- 244 if (
p_pins ==
nullptr)
return -1;
-
-
- 247 return i2c.value().port;
-
-
-
-
-
-
-
-
-
-
-
-
- 263 if (volume > max) volume = max;
- 264 if (volume < min) volume = min;
-
-
-
-
-
-
-
-
-
-
-
- 282 virtual bool end(
void) {
return true; }
- 283 virtual bool setMute(
bool enable) {
return false; }
-
-
-
-
-
-
-
-
-
-
-
- 300 bool setMute(
bool mute) {
return ac101_set_voice_mute(mute); }
-
- 302 return ac101_set_voice_volume(
limitValue(volume));
-
-
-
- 306 ac101_get_voice_volume(&vol);
-
-
-
-
-
-
-
-
-
- 316 return ac101_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 319 return ac101_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
- 332 if (clatch < 0)
return false;
-
- 334 if (reset < 0)
return false;
-
- 336 SPIClass *p_spi =
nullptr;
-
- 338 p_spi = spi_opt.value().p_spi;
-
-
-
-
-
-
-
- 346 ad1938.begin(codecCfg, clatch, reset, *p_spi);
-
-
-
-
-
-
-
-
-
-
-
-
- 359 if (line > 7)
return false;
- 360 return ad1938.setVolumeDAC(line, mute ? 0.0 : (
static_cast<float>(
volumes[line]) / 100.0f));
-
-
-
-
- 366 for (
int j=0;j<8;j++){
-
-
- 369 return ad1938.setVolume(
static_cast<float>(
volume) / 100.0f);
-
-
- 373 if (line > 7)
return false;
-
- 375 return ad1938.setVolumeDAC(
static_cast<float>(
volume) / 100.0f, line);
+
+ 211 AD_LOGE(
"setMute not supported on line level");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 230 AD_LOGI(
"setPAPower pin %d -> %d", pin, enable);
+
+
+
+
+
+
+
+
+
+ 241 if (
p_pins ==
nullptr)
return &Wire;
+
+
+
+
+ 246 return i2c.value().p_wire;
+
+
+
+ 250 if (
p_pins ==
nullptr)
return -1;
+
+
+ 253 return i2c.value().port;
+
+
+
+
+
+
+
+
+
+
+
+
+ 269 if (volume > max) volume = max;
+ 270 if (volume < min) volume = min;
+
+
+
+
+
+
+
+
+
+
+
+ 288 virtual bool end(
void) {
return true; }
+ 289 virtual bool setMute(
bool enable) {
return false; }
+
+
+
+
+
+
+
+
+
+
+
+ 306 bool setMute(
bool mute) {
return ac101_set_voice_mute(mute); }
+
+ 308 return ac101_set_voice_volume(
limitValue(volume));
+
+
+
+ 312 ac101_get_voice_volume(&vol);
+
+
+
+
+
+
+
+
+
+ 322 return ac101_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 325 return ac101_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+ 338 if (clatch < 0)
return false;
+
+ 340 if (reset < 0)
return false;
+
+ 342 SPIClass *p_spi =
nullptr;
+
+ 344 p_spi = spi_opt.value().p_spi;
+
+
+
+
+
+
+
+ 352 ad1938.begin(codecCfg, clatch, reset, *p_spi);
+
+
+
+
+
+
+
+
+
+
+
+
+ 365 if (line > 7)
return false;
+ 366 return ad1938.setVolumeDAC(line, mute ? 0.0 : (
static_cast<float>(
volumes[line]) / 100.0f));
+
+
+
+
+ 372 for (
int j=0;j<8;j++){
+
+
+ 375 return ad1938.setVolume(
static_cast<float>(
volume) / 100.0f);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 407 AD_LOGD(
"AudioDriverCS43l22Class::begin");
-
-
-
-
-
-
-
-
-
-
-
-
- 420 AD_LOGE(
"error: cs43l22_Init");
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 379 if (line > 7)
return false;
+
+ 381 return ad1938.setVolumeDAC(
static_cast<float>(
volume) / 100.0f, line);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 413 AD_LOGD(
"AudioDriverCS43l22Class::begin");
+
+
+
+
+
+
+
+
+
+
+
+
+ 426 AD_LOGE(
"error: cs43l22_Init");
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 450 int cnt = cs43l22_Stop(
deviceAddr, AUDIO_MUTE_ON);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 479 switch (output_device) {
-
-
-
- 483 return OUTPUT_DEVICE_SPEAKER;
-
- 485 return OUTPUT_DEVICE_HEADPHONE;
-
- 487 return OUTPUT_DEVICE_BOTH;
-
- 489 return OUTPUT_DEVICE_BOTH;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 526 return cs42448.setMuteDAC(line, enable);
-
-
-
-
-
-
-
-
-
-
-
- 539 int vol = map(
volume, 0, 100, -128, 127);
- 540 return cs42448.setVolumeADC(vol);
+
+
+
+
+
+
+
+
+
+
+
+ 456 int cnt = cs43l22_Stop(
deviceAddr, AUDIO_MUTE_ON);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 485 switch (output_device) {
+
+
+
+ 489 return OUTPUT_DEVICE_SPEAKER;
+
+ 491 return OUTPUT_DEVICE_HEADPHONE;
+
+ 493 return OUTPUT_DEVICE_BOTH;
+
+ 495 return OUTPUT_DEVICE_BOTH;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 532 return cs42448.setMuteDAC(line, enable);
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 578 return es7210_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 581 return es7210_adc_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
- 593 return es7243_adc_set_voice_mute(mute) ==
RESULT_OK;
-
-
-
-
-
-
- 600 es7243_adc_get_voice_volume(&vol);
-
-
-
-
-
-
-
-
+
+
+
+ 545 int vol = map(
volume, 0, 100, -128, 127);
+ 546 return cs42448.setVolumeADC(vol);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 584 return es7210_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 587 return es7210_adc_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+ 599 return es7243_adc_set_voice_mute(mute) ==
RESULT_OK;
+
+
+
+
+
+
+ 606 es7243_adc_get_voice_volume(&vol);
+
+
-
- 611 return es7243_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 614 return es7243_adc_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 635 es7243e_adc_get_voice_volume(&vol);
-
-
-
-
-
-
-
-
-
-
-
-
- 648 return es7243e_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 651 return es7243e_adc_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
- 663 return es8156_codec_set_voice_mute(mute) ==
RESULT_OK;
-
-
-
-
-
-
-
- 671 es8156_codec_get_voice_volume(&vol);
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 617 return es7243_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 620 return es7243_adc_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 641 es7243e_adc_get_voice_volume(&vol);
+
+
+
+
+
+
+
+
+
+
+
+
+ 654 return es7243e_adc_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 657 return es7243e_adc_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+ 669 return es8156_codec_set_voice_mute(mute) ==
RESULT_OK;
+
+
+
+
+
+
+
+ 677 es8156_codec_get_voice_volume(&vol);
+
+
-
- 682 return es8156_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 685 return es8156_codec_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
-
-
-
-
-
- 703 es8311_codec_get_voice_volume(&vol);
-
-
-
-
-
-
-
-
- 712 if (mclk_src == -1)
return false;
-
-
-
-
-
-
-
-
-
-
- 723 return es8311_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 726 return es8311_codec_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
-
-
-
-
-
-
- 745 es8374_codec_get_voice_volume(&vol);
-
-
-
-
-
-
-
- 753 auto codec_mode = this->codec_cfg.get_mode();
-
-
-
-
-
-
-
-
-
- 763 return es8374_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 766 return es8374_codec_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
-
- 780 return es8388_set_voice_mute(mute) ==
RESULT_OK;
-
-
-
-
- 785 AD_LOGD(
"invalid line %d", line);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 808 es8388_get_voice_volume(&vol);
-
-
-
-
-
-
- 815 AD_LOGD(
"input volume: %d -> gain %d", volume, gain);
-
-
-
-
- 820 return es8388_set_mic_gain(gain) ==
RESULT_OK;
-
-
-
+
+
+
+
+
+
+
+ 688 return es8156_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 691 return es8156_codec_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+
+
+
+
+ 709 es8311_codec_get_voice_volume(&vol);
+
+
+
+
+
+
+
+
+ 718 if (mclk_src == -1)
return false;
+
+
+
+
+
+
+
+
+
+
+ 729 return es8311_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 732 return es8311_codec_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 751 es8374_codec_get_voice_volume(&vol);
+
+
+
+
+
+
+
+ 759 auto codec_mode = this->codec_cfg.get_mode();
+
+
+
+
+
+
+
+
+
+ 769 return es8374_codec_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 772 return es8374_codec_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+ 786 return es8388_set_voice_mute(mute) ==
RESULT_OK;
+
+
+
+
+ 791 AD_LOGD(
"invalid line %d", line);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 814 es8388_get_voice_volume(&vol);
+
+
+
+
+
+
+ 821 AD_LOGD(
"input volume: %d -> gain %d", volume, gain);
+
+
-
-
-
-
-
-
-
-
-
- 834 return es8388_ctrl_state_active(mode,
true) ==
RESULT_OK;
-
-
- 837 return es8388_config_i2s(mode, &iface) ==
RESULT_OK;
-
-
-
-
-
-
-
-
-
-
-
-
- 855 tas5805m_get_volume(&vol);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 877 mtb_wm8960_set_wire(
getI2C());
-
-
-
-
- 882 if (!mtb_wm8960_init(features)) {
-
-
-
-
- 887 if (!mtb_wm8960_activate()) {
- 888 AD_LOGE(
"mtb_wm8960_activate");
-
-
-
-
-
-
-
-
-
- 898 mtb_wm8960_deactivate();
-
-
-
-
-
-
-
-
-
-
-
-
-
- 913 return mtb_wm8960_set_output_volume(vol_int);
-
-
-
-
-
-
- 920 int vol_int = map(
volume_in, 0, 100, 0, 30);
- 921 return mtb_wm8960_adjust_input_volume(vol_int);
-
-
-
-
-
-
-
-
+
+ 826 return es8388_set_mic_gain(gain) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 840 return es8388_ctrl_state_active(mode,
true) ==
RESULT_OK;
+
+
+ 843 return es8388_config_i2s(mode, &iface) ==
RESULT_OK;
+
+
+
+
+
+
+
+
+
+
+
+
+ 861 tas5805m_get_volume(&vol);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 883 mtb_wm8960_set_wire(
getI2C());
+
+
+
+
+ 888 if (!mtb_wm8960_init(features)) {
+
+
+
+
+ 893 if (!mtb_wm8960_activate()) {
+ 894 AD_LOGE(
"mtb_wm8960_activate");
+
+
+
+
+
+
+
+
+
+ 904 mtb_wm8960_deactivate();
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 919 return mtb_wm8960_set_output_volume(vol_int);
+
+
+
+
+
+
+ 926 int vol_int = map(
volume_in, 0, 100, 0, 30);
+ 927 return mtb_wm8960_adjust_input_volume(vol_int);
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 949 features = features | WM8960_FEATURE_SPEAKER;
-
-
- 952 features = features | WM8960_FEATURE_HEADPHONE;
-
-
- 955 features = features | WM8960_FEATURE_SPEAKER | WM8960_FEATURE_HEADPHONE;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 955 features = features | WM8960_FEATURE_SPEAKER;
-
-
-
-
-
- 962 features = features | WM8960_FEATURE_MICROPHONE1;
-
-
- 965 features = features | WM8960_FEATURE_MICROPHONE2;
-
-
- 968 features = features | WM8960_FEATURE_MICROPHONE1 |
- 969 WM8960_FEATURE_MICROPHONE2 | WM8960_FEATURE_MICROPHONE3;
-
-
+
+ 958 features = features | WM8960_FEATURE_HEADPHONE;
+
+
+ 961 features = features | WM8960_FEATURE_SPEAKER | WM8960_FEATURE_HEADPHONE;
+
+
+
+
+
+
+ 968 features = features | WM8960_FEATURE_MICROPHONE1;
+
+
+ 971 features = features | WM8960_FEATURE_MICROPHONE2;
-
- 974 AD_LOGI(
"features: %d", features);
-
-
-
-
-
-
-
-
- 983 if (!mtb_wm8960_configure_clocking(
-
-
-
-
- 988 AD_LOGE(
"mtb_wm8960_configure_clocking");
-
-
-
-
-
-
-
-
- 997 return WM8960_ADC_DAC_SAMPLE_RATE_48_KHZ;
-
- 999 return WM8960_ADC_DAC_SAMPLE_RATE_44_1_KHZ;
-
- 1001 return WM8960_ADC_DAC_SAMPLE_RATE_32_KHZ;
-
- 1003 return WM8960_ADC_DAC_SAMPLE_RATE_24_KHZ;
-
- 1005 return WM8960_ADC_DAC_SAMPLE_RATE_22_05_KHZ;
-
- 1007 return WM8960_ADC_DAC_SAMPLE_RATE_16_KHZ;
-
- 1009 return WM8960_ADC_DAC_SAMPLE_RATE_12_KHZ;
-
- 1011 return WM8960_ADC_DAC_SAMPLE_RATE_11_025_KHZ;
-
- 1013 return WM8960_ADC_DAC_SAMPLE_RATE_8_018_KHZ;
-
- 1015 return WM8960_ADC_DAC_SAMPLE_RATE_8_KHZ;
-
- 1017 AD_LOGE(
"Unsupported rate: %d", rate);
- 1018 return WM8960_ADC_DAC_SAMPLE_RATE_44_1_KHZ;
-
-
-
-
-
-
- 1025 return WM8960_WL_16BITS;
-
- 1027 return WM8960_WL_20BITS;
-
- 1029 return WM8960_WL_24BITS;
-
- 1031 return WM8960_WL_32BITS;
-
- 1033 AD_LOGE(
"Unsupported bits: %d", bits);
- 1034 return WM8960_WL_16BITS;
-
-
-
-
- 1040 return is_master ? WM8960_MODE_MASTER : WM8960_MODE_SLAVE;
-
-
+
+ 974 features = features | WM8960_FEATURE_MICROPHONE1 |
+ 975 WM8960_FEATURE_MICROPHONE2 | WM8960_FEATURE_MICROPHONE3;
+
+
+
+
+ 980 AD_LOGI(
"features: %d", features);
+
+
+
+
+
+
+
+
+ 989 if (!mtb_wm8960_configure_clocking(
+
+
+
+
+ 994 AD_LOGE(
"mtb_wm8960_configure_clocking");
+
+
+
+
+
+
+
+
+ 1003 return WM8960_ADC_DAC_SAMPLE_RATE_48_KHZ;
+
+ 1005 return WM8960_ADC_DAC_SAMPLE_RATE_44_1_KHZ;
+
+ 1007 return WM8960_ADC_DAC_SAMPLE_RATE_32_KHZ;
+
+ 1009 return WM8960_ADC_DAC_SAMPLE_RATE_24_KHZ;
+
+ 1011 return WM8960_ADC_DAC_SAMPLE_RATE_22_05_KHZ;
+
+ 1013 return WM8960_ADC_DAC_SAMPLE_RATE_16_KHZ;
+
+ 1015 return WM8960_ADC_DAC_SAMPLE_RATE_12_KHZ;
+
+ 1017 return WM8960_ADC_DAC_SAMPLE_RATE_11_025_KHZ;
+
+ 1019 return WM8960_ADC_DAC_SAMPLE_RATE_8_018_KHZ;
+
+ 1021 return WM8960_ADC_DAC_SAMPLE_RATE_8_KHZ;
+
+ 1023 AD_LOGE(
"Unsupported rate: %d", rate);
+ 1024 return WM8960_ADC_DAC_SAMPLE_RATE_44_1_KHZ;
+
+
+
+
+
+
+ 1031 return WM8960_WL_16BITS;
+
+ 1033 return WM8960_WL_20BITS;
+
+ 1035 return WM8960_WL_24BITS;
+
+ 1037 return WM8960_WL_32BITS;
+
+ 1039 AD_LOGE(
"Unsupported bits: %d", bits);
+ 1040 return WM8960_WL_16BITS;
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1063 int vol = map(
volume, 0, 100, DEFAULT_VOLMIN, DEFAULT_VOLMAX);
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1077 int vol = map(
volume, 0, 100, DEFAULT_VOLMIN, DEFAULT_VOLMAX);
- 1078 return wm8994_SetVolume(
deviceAddr, vol) == 0;
+
+ 1046 return is_master ? WM8960_MODE_MASTER : WM8960_MODE_SLAVE;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1069 int vol = map(
volume, 0, 100, DEFAULT_VOLMIN, DEFAULT_VOLMAX);
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- 1087 int cnt = wm8994_Stop(
deviceAddr, AUDIO_MUTE_ON);
-
-
-
-
-
-
- 1094 switch (output_device) {
-
-
-
- 1098 return OUTPUT_DEVICE_SPEAKER;
-
- 1100 return OUTPUT_DEVICE_HEADPHONE;
-
- 1102 return OUTPUT_DEVICE_BOTH;
-
- 1104 return OUTPUT_DEVICE_BOTH;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 1083 int vol = map(
volume, 0, 100, DEFAULT_VOLMIN, DEFAULT_VOLMAX);
+ 1084 return wm8994_SetVolume(
deviceAddr, vol) == 0;
+
+
+
+
+
+
+
+
+ 1093 int cnt = wm8994_Stop(
deviceAddr, AUDIO_MUTE_ON);
+
+
+
+
+
+
+ 1100 switch (output_device) {
+
+
+
+ 1104 return OUTPUT_DEVICE_SPEAKER;
+
+ 1106 return OUTPUT_DEVICE_HEADPHONE;
+
+ 1108 return OUTPUT_DEVICE_BOTH;
+
+ 1110 return OUTPUT_DEVICE_BOTH;
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#define DRIVER_DEFAULT_VOLUME
Definition: Common.h:20
#define RESULT_OK
Fixed Definitions.
Definition: Common.h:31
@@ -1154,203 +1159,204 @@
void AD_LOGE(const char *fmr,...)
Definition: Logger.c:46
void AD_LOGD(const char *fmr,...)
Definition: Logger.c:10
void AD_LOGI(const char *fmr,...)
Definition: Logger.c:22
-Driver API for AC101 codec chip.
Definition: Driver.h:298
-bool deinit()
Definition: Driver.h:314
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:311
-bool setMute(bool mute)
Definition: Driver.h:300
-int getVolume()
Definition: Driver.h:304
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:301
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:318
-bool controlState(codec_mode_t mode)
Definition: Driver.h:315
-Driver API for AD1938 TDS DAC/ADC.
Definition: Driver.h:328
-int getVolume() override
Definition: Driver.h:378
-bool isInputVolumeSupported() override
Definition: Driver.h:381
-bool setMute(bool mute) override
Definition: Driver.h:356
-int volumes[8]
Definition: Driver.h:390
-DriverPins & pins()
Definition: Driver.h:383
-bool isVolumeSupported() override
Definition: Driver.h:380
-bool setMute(bool mute, int line)
Definition: Driver.h:358
-virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:351
-AD1938 & driver()
Definition: Driver.h:384
-bool end(void) override
Definition: Driver.h:355
-bool begin(CodecConfig codecCfg, DriverPins &pins) override
Definition: Driver.h:330
-bool setVolume(int volume, int line)
Defines the Volume per DAC (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:372
-bool setInputVolume(int volume) override
Definition: Driver.h:379
-bool setVolume(int volume) override
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:364
-DriverPins * p_pins
Definition: Driver.h:388
-int volume
Definition: Driver.h:389
-AD1938 ad1938
Definition: Driver.h:387
-Driver API for CS42448 TDS DAC/ADC.
Definition: Driver.h:498
-int getVolume() override
Definition: Driver.h:537
-CS42448 & driver()
Definition: Driver.h:546
-bool isInputVolumeSupported() override
Definition: Driver.h:543
-DriverPins & pins()
Definition: Driver.h:545
-bool isVolumeSupported() override
Definition: Driver.h:542
-CS42448 cs42448
Definition: Driver.h:549
-bool setMute(bool enable) override
Definition: Driver.h:524
-virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:509
-bool setVolume(int dac, int volume)
Definition: Driver.h:533
-bool end(void) override
Definition: Driver.h:523
-bool begin(CodecConfig codecCfg, DriverPins &pins) override
Definition: Driver.h:500
-bool setInputVolume(int volume) override
Definition: Driver.h:538
-bool setVolume(int volume) override
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:529
-CodecConfig cfg
Definition: Driver.h:552
-bool setMute(bool enable, int line)
Definition: Driver.h:525
-DriverPins * p_pins
Definition: Driver.h:550
-int volume
Definition: Driver.h:551
-Driver API for the CS43l22 codec chip on 0x94 (0x4A<<1)
Definition: Driver.h:398
-virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:406
-uint16_t deviceAddr
Definition: Driver.h:446
-bool deinit()
Definition: Driver.h:449
-virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:426
-bool setMute(bool mute)
Definition: Driver.h:434
-void setI2CAddress(uint16_t adr)
Definition: Driver.h:404
-int getVolume()
Definition: Driver.h:443
-uint32_t getFrequency(samplerate_t rateNum)
Definition: Driver.h:456
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:439
-int volume
Definition: Driver.h:447
-uint16_t getOutput(output_device_t output_device)
Definition: Driver.h:478
-AudioDriverCS43l22Class(uint16_t deviceAddr=0x4A)
Definition: Driver.h:400
-Driver API for ES7210 codec chip.
Definition: Driver.h:560
-bool deinit()
Definition: Driver.h:575
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:572
-bool setMute(bool mute)
Definition: Driver.h:562
-int getVolume()
Definition: Driver.h:567
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:563
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:580
-bool controlState(codec_mode_t mode)
Definition: Driver.h:577
-int volume
Definition: Driver.h:570
-Driver API for Lyrat ES7243 codec chip.
Definition: Driver.h:590
-bool deinit()
Definition: Driver.h:608
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:605
-bool setMute(bool mute)
Definition: Driver.h:592
-int getVolume()
Definition: Driver.h:598
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:595
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:613
-bool controlState(codec_mode_t mode)
Definition: Driver.h:610
-Driver API for ES7243e codec chip.
Definition: Driver.h:624
-bool deinit()
Definition: Driver.h:645
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:642
-bool setMute(bool mute)
Definition: Driver.h:626
-int getVolume()
Definition: Driver.h:633
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:629
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:650
-bool controlState(codec_mode_t mode)
Definition: Driver.h:647
-int volume
Definition: Driver.h:640
-Driver API for ES8156 codec chip.
Definition: Driver.h:660
-bool deinit()
Definition: Driver.h:679
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:676
-bool setMute(bool mute)
Definition: Driver.h:662
-int getVolume()
Definition: Driver.h:669
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:665
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:684
-bool controlState(codec_mode_t mode)
Definition: Driver.h:681
-Driver API for Lyrat ES8311 codec chip.
Definition: Driver.h:694
-AudioDriverES8311Class(int i2cAddr=0)
Definition: Driver.h:696
-bool deinit()
Definition: Driver.h:720
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:710
-int i2c_address
Definition: Driver.h:708
-bool setMute(bool mute)
Definition: Driver.h:697
-int getVolume()
Definition: Driver.h:701
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:698
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:725
-bool controlState(codec_mode_t mode)
Definition: Driver.h:722
-Driver API for ES8374 codec chip.
Definition: Driver.h:735
-bool deinit()
Definition: Driver.h:760
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:752
-int i2c_address
Definition: Driver.h:750
-bool setMute(bool mute)
Definition: Driver.h:738
-AudioDriverES8374Class(int i2cAddr=0)
Definition: Driver.h:737
-int getVolume()
Definition: Driver.h:743
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:739
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:765
-bool controlState(codec_mode_t mode)
Definition: Driver.h:762
-Driver API for ES8388 codec chip.
Definition: Driver.h:775
-bool deinit()
Definition: Driver.h:831
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:828
-bool setMute(bool mute, int line)
Definition: Driver.h:783
-bool line_active[2]
Definition: Driver.h:826
-bool isInputVolumeSupported()
Definition: Driver.h:823
-bool setMute(bool mute)
Definition: Driver.h:777
-int getVolume()
Definition: Driver.h:806
-bool setMicrophoneGain(es_mic_gain_t gain)
Definition: Driver.h:819
-bool setInputVolume(int volume)
Definition: Driver.h:812
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:802
-bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:836
-bool controlState(codec_mode_t mode)
Definition: Driver.h:833
+Driver API for AC101 codec chip.
Definition: Driver.h:304
+bool deinit()
Definition: Driver.h:320
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:317
+bool setMute(bool mute)
Definition: Driver.h:306
+int getVolume()
Definition: Driver.h:310
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:307
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:324
+bool controlState(codec_mode_t mode)
Definition: Driver.h:321
+Driver API for AD1938 TDS DAC/ADC.
Definition: Driver.h:334
+int getVolume() override
Definition: Driver.h:384
+bool isInputVolumeSupported() override
Definition: Driver.h:387
+bool setMute(bool mute) override
Definition: Driver.h:362
+int volumes[8]
Definition: Driver.h:396
+DriverPins & pins()
Definition: Driver.h:389
+bool isVolumeSupported() override
Definition: Driver.h:386
+bool setMute(bool mute, int line)
Mute individual lines: only supported for some rare DACs.
Definition: Driver.h:364
+virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:357
+AD1938 & driver()
Definition: Driver.h:390
+bool end(void) override
Definition: Driver.h:361
+bool begin(CodecConfig codecCfg, DriverPins &pins) override
Definition: Driver.h:336
+bool setVolume(int volume, int line)
Defines the Volume per DAC (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:378
+bool setInputVolume(int volume) override
Definition: Driver.h:385
+bool setVolume(int volume) override
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:370
+DriverPins * p_pins
Definition: Driver.h:394
+int volume
Definition: Driver.h:395
+AD1938 ad1938
Definition: Driver.h:393
+Driver API for CS42448 TDS DAC/ADC.
Definition: Driver.h:504
+int getVolume() override
Definition: Driver.h:543
+CS42448 & driver()
Definition: Driver.h:552
+bool isInputVolumeSupported() override
Definition: Driver.h:549
+DriverPins & pins()
Definition: Driver.h:551
+bool isVolumeSupported() override
Definition: Driver.h:548
+CS42448 cs42448
Definition: Driver.h:555
+bool setMute(bool enable) override
Definition: Driver.h:530
+virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:515
+bool setVolume(int dac, int volume)
Definition: Driver.h:539
+bool end(void) override
Definition: Driver.h:529
+bool begin(CodecConfig codecCfg, DriverPins &pins) override
Definition: Driver.h:506
+bool setInputVolume(int volume) override
Definition: Driver.h:544
+bool setVolume(int volume) override
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:535
+CodecConfig cfg
Definition: Driver.h:558
+bool setMute(bool enable, int line)
Mute individual lines: only supported for some rare DACs.
Definition: Driver.h:531
+DriverPins * p_pins
Definition: Driver.h:556
+int volume
Definition: Driver.h:557
+Driver API for the CS43l22 codec chip on 0x94 (0x4A<<1)
Definition: Driver.h:404
+virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:412
+uint16_t deviceAddr
Definition: Driver.h:452
+bool deinit()
Definition: Driver.h:455
+virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:432
+bool setMute(bool mute)
Definition: Driver.h:440
+void setI2CAddress(uint16_t adr)
Definition: Driver.h:410
+int getVolume()
Definition: Driver.h:449
+uint32_t getFrequency(samplerate_t rateNum)
Definition: Driver.h:462
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:445
+int volume
Definition: Driver.h:453
+uint16_t getOutput(output_device_t output_device)
Definition: Driver.h:484
+AudioDriverCS43l22Class(uint16_t deviceAddr=0x4A)
Definition: Driver.h:406
+Driver API for ES7210 codec chip.
Definition: Driver.h:566
+bool deinit()
Definition: Driver.h:581
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:578
+bool setMute(bool mute)
Definition: Driver.h:568
+int getVolume()
Definition: Driver.h:573
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:569
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:586
+bool controlState(codec_mode_t mode)
Definition: Driver.h:583
+int volume
Definition: Driver.h:576
+Driver API for Lyrat ES7243 codec chip.
Definition: Driver.h:596
+bool deinit()
Definition: Driver.h:614
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:611
+bool setMute(bool mute)
Definition: Driver.h:598
+int getVolume()
Definition: Driver.h:604
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:601
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:619
+bool controlState(codec_mode_t mode)
Definition: Driver.h:616
+Driver API for ES7243e codec chip.
Definition: Driver.h:630
+bool deinit()
Definition: Driver.h:651
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:648
+bool setMute(bool mute)
Definition: Driver.h:632
+int getVolume()
Definition: Driver.h:639
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:635
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:656
+bool controlState(codec_mode_t mode)
Definition: Driver.h:653
+int volume
Definition: Driver.h:646
+Driver API for ES8156 codec chip.
Definition: Driver.h:666
+bool deinit()
Definition: Driver.h:685
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:682
+bool setMute(bool mute)
Definition: Driver.h:668
+int getVolume()
Definition: Driver.h:675
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:671
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:690
+bool controlState(codec_mode_t mode)
Definition: Driver.h:687
+Driver API for Lyrat ES8311 codec chip.
Definition: Driver.h:700
+AudioDriverES8311Class(int i2cAddr=0)
Definition: Driver.h:702
+bool deinit()
Definition: Driver.h:726
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:716
+int i2c_address
Definition: Driver.h:714
+bool setMute(bool mute)
Definition: Driver.h:703
+int getVolume()
Definition: Driver.h:707
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:704
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:731
+bool controlState(codec_mode_t mode)
Definition: Driver.h:728
+Driver API for ES8374 codec chip.
Definition: Driver.h:741
+bool deinit()
Definition: Driver.h:766
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:758
+int i2c_address
Definition: Driver.h:756
+bool setMute(bool mute)
Definition: Driver.h:744
+AudioDriverES8374Class(int i2cAddr=0)
Definition: Driver.h:743
+int getVolume()
Definition: Driver.h:749
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:745
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:771
+bool controlState(codec_mode_t mode)
Definition: Driver.h:768
+Driver API for ES8388 codec chip.
Definition: Driver.h:781
+bool deinit()
Definition: Driver.h:837
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:834
+bool setMute(bool mute, int line)
Mute individual lines: only supported for some rare DACs.
Definition: Driver.h:789
+bool line_active[2]
Definition: Driver.h:832
+bool isInputVolumeSupported()
Definition: Driver.h:829
+bool setMute(bool mute)
Definition: Driver.h:783
+int getVolume()
Definition: Driver.h:812
+bool setMicrophoneGain(es_mic_gain_t gain)
Definition: Driver.h:825
+bool setInputVolume(int volume)
Definition: Driver.h:818
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:808
+bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:842
+bool controlState(codec_mode_t mode)
Definition: Driver.h:839
Abstract Driver API for codec chips.
Definition: Driver.h:169
virtual bool setMute(bool enable)=0
-virtual bool isInputVolumeSupported()
Definition: Driver.h:214
+virtual bool isInputVolumeSupported()
Definition: Driver.h:220
virtual bool end(void)
Definition: Driver.h:207
-virtual bool setInputVolume(int volume)
Definition: Driver.h:212
-bool setPAPower(bool enable)
Sets the PA Power pin to active or inactive.
Definition: Driver.h:219
+virtual bool setInputVolume(int volume)
Definition: Driver.h:218
+bool setPAPower(bool enable)
Sets the PA Power pin to active or inactive.
Definition: Driver.h:225
virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:171
-virtual bool isVolumeSupported()
Definition: Driver.h:213
-CodecConfig codec_cfg
Definition: Driver.h:230
-DriverPins & pins()
Definition: Driver.h:216
+virtual bool isVolumeSupported()
Definition: Driver.h:219
+CodecConfig codec_cfg
Definition: Driver.h:236
+DriverPins & pins()
Definition: Driver.h:222
virtual bool setVolume(int volume)=0
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
-int getI2CAddress()
Definition: Driver.h:243
-virtual bool deinit()
Definition: Driver.h:253
+virtual bool setMute(bool mute, int line)
Mute individual lines: only supported for some rare DACs.
Definition: Driver.h:210
+int getI2CAddress()
Definition: Driver.h:249
+virtual bool deinit()
Definition: Driver.h:259
virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:183
-int limitValue(int volume, int min=0, int max=100)
Definition: Driver.h:262
-virtual bool controlState(codec_mode_t mode)
Definition: Driver.h:254
+int limitValue(int volume, int min=0, int max=100)
Definition: Driver.h:268
+virtual bool controlState(codec_mode_t mode)
Definition: Driver.h:260
virtual int getVolume()=0
-TwoWire * getI2C()
Determine the TwoWire object from the I2C config or use Wire.
Definition: Driver.h:234
-DriverPins * p_pins
Definition: Driver.h:231
-virtual bool init(codec_config_t codec_cfg)
Definition: Driver.h:252
-virtual bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:255
-Driver API for Lyrat Mini with a ES8311 and a ES7243 codec chip.
Definition: Driver.h:1113
-bool end(void)
Definition: Driver.h:1123
-AudioDriverES7243Class adc
Definition: Driver.h:1138
-AudioDriverES8311Class dac
Definition: Driver.h:1137
-bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:1115
-bool setMute(bool enable)
Definition: Driver.h:1129
-bool isInputVolumeSupported()
Definition: Driver.h:1134
-int getVolume()
Definition: Driver.h:1131
-bool setInputVolume(int volume)
Definition: Driver.h:1132
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:1130
-int getInputVolume()
Definition: Driver.h:1133
-Driver API for TAS5805M codec chip.
Definition: Driver.h:846
-bool deinit()
Definition: Driver.h:863
-bool init(codec_config_t codec_cfg)
Definition: Driver.h:860
-bool setMute(bool mute)
Definition: Driver.h:848
-int getVolume()
Definition: Driver.h:853
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:849
-Driver API for WM8990 codec chip.
Definition: Driver.h:871
-mtb_wm8960_mode_t modeMasterSlave(bool is_master)
if microcontroller is master then module is slave
Definition: Driver.h:1039
-int volume_in
Definition: Driver.h:939
-bool end(void)
Definition: Driver.h:897
-void setI2CRetryCount(int cnt)
Configuration: define retry count (default : 0)
Definition: Driver.h:928
-void setMclkHz(uint32_t hz)
Configuration: define master clock frequency (default: 0)
Definition: Driver.h:934
-mtb_wm8960_word_length_t wordLength(int bits)
Definition: Driver.h:1022
-bool isVolumeSupported()
Definition: Driver.h:923
-bool vs1053_enable_pll
Definition: Driver.h:943
-int i2c_retry_count
Definition: Driver.h:941
-bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:873
-virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:902
-bool setMute(bool enable)
Definition: Driver.h:907
-mtb_wm8960_adc_dac_sample_rate_t sampleRate(int rate)
Definition: Driver.h:994
-void setEnablePLL(bool active)
Configuration: enable/disable PLL (active by default)
Definition: Driver.h:931
-bool isInputVolumeSupported()
Definition: Driver.h:925
-int getFeatures(CodecConfig cfg)
Definition: Driver.h:945
-void dumpRegisters()
Definition: Driver.h:936
-int getVolume()
Definition: Driver.h:916
-int volume_out
Definition: Driver.h:940
-bool configure_clocking()
Definition: Driver.h:978
-bool setInputVolume(int volume)
Definition: Driver.h:918
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:910
-uint32_t vs1053_mclk_hz
Definition: Driver.h:942
-Driver API for the wm8994 codec chip.
Definition: Driver.h:1049
-virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:1057
-uint16_t deviceAddr
Definition: Driver.h:1083
-bool deinit()
Definition: Driver.h:1086
-AudioDriverWM8994Class(uint16_t deviceAddr=0x1A)
Definition: Driver.h:1051
-bool setMute(bool mute)
Definition: Driver.h:1070
-void setI2CAddress(uint16_t adr)
Definition: Driver.h:1055
-int getVolume()
Definition: Driver.h:1080
-bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:1075
-int volume
Definition: Driver.h:1084
-uint16_t getOutput(output_device_t output_device)
Definition: Driver.h:1093
+TwoWire * getI2C()
Determine the TwoWire object from the I2C config or use Wire.
Definition: Driver.h:240
+DriverPins * p_pins
Definition: Driver.h:237
+virtual bool init(codec_config_t codec_cfg)
Definition: Driver.h:258
+virtual bool configInterface(codec_mode_t mode, I2SDefinition iface)
Definition: Driver.h:261
+Driver API for Lyrat Mini with a ES8311 and a ES7243 codec chip.
Definition: Driver.h:1119
+bool end(void)
Definition: Driver.h:1129
+AudioDriverES7243Class adc
Definition: Driver.h:1144
+AudioDriverES8311Class dac
Definition: Driver.h:1143
+bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:1121
+bool setMute(bool enable)
Definition: Driver.h:1135
+bool isInputVolumeSupported()
Definition: Driver.h:1140
+int getVolume()
Definition: Driver.h:1137
+bool setInputVolume(int volume)
Definition: Driver.h:1138
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:1136
+int getInputVolume()
Definition: Driver.h:1139
+Driver API for TAS5805M codec chip.
Definition: Driver.h:852
+bool deinit()
Definition: Driver.h:869
+bool init(codec_config_t codec_cfg)
Definition: Driver.h:866
+bool setMute(bool mute)
Definition: Driver.h:854
+int getVolume()
Definition: Driver.h:859
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:855
+Driver API for WM8990 codec chip.
Definition: Driver.h:877
+mtb_wm8960_mode_t modeMasterSlave(bool is_master)
if microcontroller is master then module is slave
Definition: Driver.h:1045
+int volume_in
Definition: Driver.h:945
+bool end(void)
Definition: Driver.h:903
+void setI2CRetryCount(int cnt)
Configuration: define retry count (default : 0)
Definition: Driver.h:934
+void setMclkHz(uint32_t hz)
Configuration: define master clock frequency (default: 0)
Definition: Driver.h:940
+mtb_wm8960_word_length_t wordLength(int bits)
Definition: Driver.h:1028
+bool isVolumeSupported()
Definition: Driver.h:929
+bool vs1053_enable_pll
Definition: Driver.h:949
+int i2c_retry_count
Definition: Driver.h:947
+bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:879
+virtual bool setConfig(CodecConfig codecCfg)
Definition: Driver.h:908
+bool setMute(bool enable)
Definition: Driver.h:913
+mtb_wm8960_adc_dac_sample_rate_t sampleRate(int rate)
Definition: Driver.h:1000
+void setEnablePLL(bool active)
Configuration: enable/disable PLL (active by default)
Definition: Driver.h:937
+bool isInputVolumeSupported()
Definition: Driver.h:931
+int getFeatures(CodecConfig cfg)
Definition: Driver.h:951
+void dumpRegisters()
Definition: Driver.h:942
+int getVolume()
Definition: Driver.h:922
+int volume_out
Definition: Driver.h:946
+bool configure_clocking()
Definition: Driver.h:984
+bool setInputVolume(int volume)
Definition: Driver.h:924
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:916
+uint32_t vs1053_mclk_hz
Definition: Driver.h:948
+Driver API for the wm8994 codec chip.
Definition: Driver.h:1055
+virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:1063
+uint16_t deviceAddr
Definition: Driver.h:1089
+bool deinit()
Definition: Driver.h:1092
+AudioDriverWM8994Class(uint16_t deviceAddr=0x1A)
Definition: Driver.h:1057
+bool setMute(bool mute)
Definition: Driver.h:1076
+void setI2CAddress(uint16_t adr)
Definition: Driver.h:1061
+int getVolume()
Definition: Driver.h:1086
+bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:1081
+int volume
Definition: Driver.h:1090
+uint16_t getOutput(output_device_t output_device)
Definition: Driver.h:1099
I2S configuration and definition of input and output with default values.
Definition: Driver.h:35
CodecConfig()
setup default values
Definition: Driver.h:38
int getRateNumeric()
get the sample rate as number
Definition: Driver.h:94
@@ -1368,35 +1374,35 @@
Optional< PinsSPI > getSPIPins(PinFunction function)
Finds the SPI pin info with the help of the function.
Definition: DriverPins.h:323
void setSPIActiveForSD(bool active)
Defines if SPI for SD should be started (by default true)
Definition: DriverPins.h:388
Optional< PinsI2C > getI2CPins(PinFunction function)
Finds the I2C pin info with the help of the function.
Definition: DriverPins.h:316
-Dummy Driver which does nothing.
Definition: Driver.h:275
-virtual bool isInputVolumeSupported()
Definition: Driver.h:290
-virtual bool end(void)
Definition: Driver.h:282
-virtual bool setInputVolume(int volume)
Definition: Driver.h:286
-virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:277
-virtual bool isVolumeSupported()
Definition: Driver.h:287
-virtual int getVolume()
Definition: Driver.h:285
-virtual bool setMute(bool enable)
Definition: Driver.h:283
-virtual bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:284
+Dummy Driver which does nothing.
Definition: Driver.h:281
+virtual bool isInputVolumeSupported()
Definition: Driver.h:296
+virtual bool end(void)
Definition: Driver.h:288
+virtual bool setInputVolume(int volume)
Definition: Driver.h:292
+virtual bool begin(CodecConfig codecCfg, DriverPins &pins)
Definition: Driver.h:283
+virtual bool isVolumeSupported()
Definition: Driver.h:293
+virtual int getVolume()
Definition: Driver.h:291
+virtual bool setMute(bool enable)
Definition: Driver.h:289
+virtual bool setVolume(int volume)
Defines the Volume (in %) if volume is 0, mute is enabled,range is 0-100.
Definition: Driver.h:290
#define HIGH
Definition: etc.h:7
void delay(unsigned long)
#define LOW
Definition: etc.h:10
void digitalWrite(int, int)
-static AudioDriverES8311Class AudioDriverES8311
Definition: Driver.h:1155
-static AudioDriverWM8994Class AudioDriverWM8994
Definition: Driver.h:1163
-static AudioDriverLyratMiniClass AudioDriverLyratMini
Definition: Driver.h:1165
-static NoDriverClass NoDriver
Definition: Driver.h:1167
-static AudioDriverES7210Class AudioDriverES7210
Definition: Driver.h:1147
-static AudioDriverES8156Class AudioDriverES8156
Definition: Driver.h:1153
-static AudioDriverES7243Class AudioDriverES7243
Definition: Driver.h:1149
-static AudioDriverAC101Class AudioDriverAC101
Definition: Driver.h:1143
-static AudioDriverCS42448Class AudioDriverCS42448
Definition: Driver.h:1171
+static AudioDriverES8311Class AudioDriverES8311
Definition: Driver.h:1161
+static AudioDriverWM8994Class AudioDriverWM8994
Definition: Driver.h:1169
+static AudioDriverLyratMiniClass AudioDriverLyratMini
Definition: Driver.h:1171
+static NoDriverClass NoDriver
Definition: Driver.h:1173
+static AudioDriverES7210Class AudioDriverES7210
Definition: Driver.h:1153
+static AudioDriverES8156Class AudioDriverES8156
Definition: Driver.h:1159
+static AudioDriverES7243Class AudioDriverES7243
Definition: Driver.h:1155
+static AudioDriverAC101Class AudioDriverAC101
Definition: Driver.h:1149
+static AudioDriverCS42448Class AudioDriverCS42448
Definition: Driver.h:1177
output_device_t
Select individual dac for dac output. If the device has only one DAC this might provide the functiona...
Definition: Common.h:67
-static AudioDriverES7243eClass AudioDriverES7243e
Definition: Driver.h:1151
-static AudioDriverCS43l22Class AudioDriverCS43l22
Definition: Driver.h:1145
-static AudioDriverWM8960Class AudioDriverWM8960
Definition: Driver.h:1161
-static AudioDriverES8388Class AudioDriverES8388
Definition: Driver.h:1159
-static AudioDriverES8374Class AudioDriverES8374
Definition: Driver.h:1157
-static AudioDriverAD1938Class AudioDriverAD1938
Definition: Driver.h:1169
+static AudioDriverES7243eClass AudioDriverES7243e
Definition: Driver.h:1157
+static AudioDriverCS43l22Class AudioDriverCS43l22
Definition: Driver.h:1151
+static AudioDriverWM8960Class AudioDriverWM8960
Definition: Driver.h:1167
+static AudioDriverES8388Class AudioDriverES8388
Definition: Driver.h:1165
+static AudioDriverES8374Class AudioDriverES8374
Definition: Driver.h:1163
+static AudioDriverAD1938Class AudioDriverAD1938
Definition: Driver.h:1175
codec_mode_t
Select media hal codec mode.
Definition: Common.h:159
samplerate_t
Select I2S interface samples per second.
Definition: Common.h:90
es_mic_gain_t
Microphone Gain.
Definition: Common.h:140
diff --git a/docs/html/classaudio__driver_1_1_audio_driver-members.html b/docs/html/classaudio__driver_1_1_audio_driver-members.html
index 5c958cf..3cc0158 100644
--- a/docs/html/classaudio__driver_1_1_audio_driver-members.html
+++ b/docs/html/classaudio__driver_1_1_audio_driver-members.html
@@ -90,8 +90,9 @@
setConfig(CodecConfig codecCfg) | AudioDriver | inlinevirtual |
setInputVolume(int volume) | AudioDriver | inlinevirtual |
setMute(bool enable)=0 | AudioDriver | pure virtual |
- setPAPower(bool enable) | AudioDriver | inline |
- setVolume(int volume)=0 | AudioDriver | pure virtual |
+ setMute(bool mute, int line) | AudioDriver | inlinevirtual |
+ setPAPower(bool enable) | AudioDriver | inline |
+ setVolume(int volume)=0 | AudioDriver | pure virtual |