mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
esp32: fix audio sink driver
This commit is contained in:
parent
0b695730e4
commit
770186d106
@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- L2CAP: trigger pairing for outgoing LE Data Channels if security level insufficient
|
||||
- SM: fix update of sc flag for re-encrypted connection in peripheral role
|
||||
- SM: send security request on re-connect if bonded and `ENABLE_LE_PROACTIVE_AUTHENTICATION` is defined
|
||||
- ESP32: fix audio sink driver
|
||||
|
||||
### Added
|
||||
- GAP: `gap_delete_bonding` removes device from LE Resolving List and from discards LE bonding information
|
||||
|
@ -181,6 +181,10 @@ static int btstack_audio_esp32_sink_init(
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void btstack_audio_esp32_sink_gain(uint8_t gain) {
|
||||
UNUSED(gain);
|
||||
}
|
||||
|
||||
static void btstack_audio_esp32_sink_start_stream(void){
|
||||
|
||||
if (playback_callback){
|
||||
@ -192,8 +196,6 @@ static void btstack_audio_esp32_sink_start_stream(void){
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: setup input
|
||||
|
||||
// start i2s
|
||||
i2s_start(i2s_num);
|
||||
|
||||
@ -214,7 +216,7 @@ static void btstack_audio_esp32_sink_stop_stream(void){
|
||||
btstack_run_loop_remove_timer(&driver_timer);
|
||||
|
||||
// stop i2s
|
||||
i2s_stop(i2s_num);
|
||||
i2s_stop(i2s_num);
|
||||
|
||||
// state
|
||||
sink_streaming = 0;
|
||||
@ -232,6 +234,7 @@ static void btstack_audio_esp32_sink_close(void){
|
||||
|
||||
static const btstack_audio_sink_t btstack_audio_sink_esp32 = {
|
||||
/* int (*init)(..);*/ &btstack_audio_esp32_sink_init,
|
||||
/* void (*set_gain)(uint8_t gain); */ &btstack_audio_esp32_sink_gain,
|
||||
/* void (*start_stream(void));*/ &btstack_audio_esp32_sink_start_stream,
|
||||
/* void (*stop_stream)(void) */ &btstack_audio_esp32_sink_stop_stream,
|
||||
/* void (*close)(void); */ &btstack_audio_esp32_sink_close
|
||||
|
Loading…
Reference in New Issue
Block a user