mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +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
|
- 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: 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
|
- SM: send security request on re-connect if bonded and `ENABLE_LE_PROACTIVE_AUTHENTICATION` is defined
|
||||||
|
- ESP32: fix audio sink driver
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- GAP: `gap_delete_bonding` removes device from LE Resolving List and from discards LE bonding information
|
- 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void btstack_audio_esp32_sink_gain(uint8_t gain) {
|
||||||
|
UNUSED(gain);
|
||||||
|
}
|
||||||
|
|
||||||
static void btstack_audio_esp32_sink_start_stream(void){
|
static void btstack_audio_esp32_sink_start_stream(void){
|
||||||
|
|
||||||
if (playback_callback){
|
if (playback_callback){
|
||||||
@ -192,8 +196,6 @@ static void btstack_audio_esp32_sink_start_stream(void){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: setup input
|
|
||||||
|
|
||||||
// start i2s
|
// start i2s
|
||||||
i2s_start(i2s_num);
|
i2s_start(i2s_num);
|
||||||
|
|
||||||
@ -214,7 +216,7 @@ static void btstack_audio_esp32_sink_stop_stream(void){
|
|||||||
btstack_run_loop_remove_timer(&driver_timer);
|
btstack_run_loop_remove_timer(&driver_timer);
|
||||||
|
|
||||||
// stop i2s
|
// stop i2s
|
||||||
i2s_stop(i2s_num);
|
i2s_stop(i2s_num);
|
||||||
|
|
||||||
// state
|
// state
|
||||||
sink_streaming = 0;
|
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 = {
|
static const btstack_audio_sink_t btstack_audio_sink_esp32 = {
|
||||||
/* int (*init)(..);*/ &btstack_audio_esp32_sink_init,
|
/* 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 (*start_stream(void));*/ &btstack_audio_esp32_sink_start_stream,
|
||||||
/* void (*stop_stream)(void) */ &btstack_audio_esp32_sink_stop_stream,
|
/* void (*stop_stream)(void) */ &btstack_audio_esp32_sink_stop_stream,
|
||||||
/* void (*close)(void); */ &btstack_audio_esp32_sink_close
|
/* void (*close)(void); */ &btstack_audio_esp32_sink_close
|
||||||
|
Loading…
x
Reference in New Issue
Block a user