diff --git a/CHANGELOG.md b/CHANGELOG.md index 7572dbbc7..50283427f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/port/esp32/components/btstack/btstack_audio_esp32.c b/port/esp32/components/btstack/btstack_audio_esp32.c index a0d16eac8..7072433a0 100644 --- a/port/esp32/components/btstack/btstack_audio_esp32.c +++ b/port/esp32/components/btstack/btstack_audio_esp32.c @@ -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