* upgrade to IDF v5.1.1
* add new synchronization implementation, use sample stuffing / removal to keep up sync
* use big DMA buffer for I2S and improve sync
* Add DAC TAS5805M as custom board
* add wifi credential reset
o press reset button (nRESET pin) 3 times
but wait about 1s between button presses
the button press counter is reset 5s after boot
* Add support for PT8211 DAC (#78)
* upgrade ethernet interface to IDF v5 (#84)
* port official example of ethernet for IDF v5.x
* Fix cmake if guard for ethernet
Signed-off-by: Karl Osterseher <karli_o@gmx.at>
Co-authored-by: DerPicknicker <64746593+DerPicknicker@users.noreply.github.com>
Co-authored-by: whc2001 <ianwang0122@outlook.com>
50 lines
711 B
C
50 lines
711 B
C
/*
|
|
* Princeton Technology PT8211 audio hal
|
|
*/
|
|
|
|
#ifndef _PT8211_H_
|
|
#define _PT8211_H_
|
|
|
|
#include "audio_hal.h"
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Initialize PT8211 codec chip
|
|
*/
|
|
esp_err_t pt8211_init(audio_hal_codec_config_t *codec_cfg);
|
|
|
|
/**
|
|
* Deinitialize PT8211 codec chip
|
|
*/
|
|
esp_err_t pt8211_deinit(void);
|
|
|
|
/**
|
|
* Set volume - NOT AVAILABLE
|
|
*/
|
|
esp_err_t pt8211_set_volume(int vol);
|
|
|
|
/**
|
|
* Get volume - NOT AVAILABLE
|
|
*/
|
|
esp_err_t pt8211_get_volume(int *value);
|
|
|
|
/**
|
|
* Set PT8211 mute or not
|
|
*/
|
|
esp_err_t pt8211_set_mute(bool enable);
|
|
|
|
/**
|
|
* Get PT8211 mute status - NOT IMPLEMENTED
|
|
*/
|
|
esp_err_t pt8211_get_mute(bool *enabled);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|