| 119 | } |
| 120 | |
| 121 | bool deinitMicroPhone() { |
| 122 | // Disable codec, if exists |
| 123 | _setup_codec_mic(false); |
| 124 | esp_err_t err = ESP_OK; |
| 125 | if (i2s_chan) { |
| 126 | i2s_channel_disable(i2s_chan); |
| 127 | err |= i2s_del_channel(i2s_chan); |
| 128 | i2s_chan = nullptr; |
| 129 | } |
| 130 | gpio_reset_pin(GPIO_NUM_0); |
| 131 | return err; |
| 132 | } |
| 133 | |
| 134 | bool InitI2SMicroPhone() { |
| 135 | // Enable codec, if exists |
no test coverage detected