mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
esp32: allow to disable default audio i2s driver via component config
This commit is contained in:
parent
862392e5a3
commit
cf0d4b9803
@ -15,8 +15,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
- example: gatt_streamer_server and le_streamer_client report DLE and PHY changes
|
- example: gatt_streamer_server and le_streamer_client report DLE and PHY changes
|
||||||
- gatt_client: queue requests with gatt_client_request_to_send_gatt_query and gatt_client_request_to_write_without_response
|
- gatt_client: queue requests with gatt_client_request_to_send_gatt_query and gatt_client_request_to_write_without_response
|
||||||
- esp32: warn about unsuitable sdkconfig
|
- esp32: warn about unsuitable sdkconfig
|
||||||
- esp32: drop support for Makefile projects from esp-idf 3.x
|
- esp32: add BTstack component config options via menuconfig
|
||||||
|
- esp32: allow to disable default audio i2s driver via component config
|
||||||
|
-
|
||||||
## Fixed
|
## Fixed
|
||||||
- hci: fix set extended scan response
|
- hci: fix set extended scan response
|
||||||
- btstack_stdin_embedded: use timer to poll RTT input, fix for tickless RTOS
|
- btstack_stdin_embedded: use timer to poll RTT input, fix for tickless RTOS
|
||||||
@ -28,7 +29,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
- bluetooth: indicated identity address in resolved address type names
|
- bluetooth: indicated identity address in resolved address type names
|
||||||
- btstack_audio: added get_samplerate function to help with audio sample rate synchronization
|
- btstack_audio: added get_samplerate function to help with audio sample rate synchronization
|
||||||
- btstack_flash_bank: write empty tag instead of overwriting existing tag with ENABLE_TLV_FLASH_WRITE_ONCE
|
- btstack_flash_bank: write empty tag instead of overwriting existing tag with ENABLE_TLV_FLASH_WRITE_ONCE
|
||||||
|
- esp32: drop support for Makefile projects from esp-idf 3.x
|
||||||
|
|
||||||
## Release v1.5.5
|
## Release v1.5.5
|
||||||
|
|
||||||
|
9
port/esp32/components/btstack/Kconfig
Normal file
9
port/esp32/components/btstack/Kconfig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
menu "BTstack Configuration"
|
||||||
|
|
||||||
|
config BTSTACK_AUDIO
|
||||||
|
bool "I2S Audio driver"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Select this option to enable BTstack's default audio driver
|
||||||
|
|
||||||
|
endmenu
|
@ -413,9 +413,11 @@ uint8_t btstack_init(void){
|
|||||||
hci_event_callback_registration.callback = &packet_handler;
|
hci_event_callback_registration.callback = &packet_handler;
|
||||||
hci_add_event_handler(&hci_event_callback_registration);
|
hci_add_event_handler(&hci_event_callback_registration);
|
||||||
|
|
||||||
|
#if CONFIG_BTSTACK_AUDIO
|
||||||
// setup i2s audio for sink and source
|
// setup i2s audio for sink and source
|
||||||
btstack_audio_sink_set_instance(btstack_audio_esp32_sink_get_instance());
|
btstack_audio_sink_set_instance(btstack_audio_esp32_sink_get_instance());
|
||||||
btstack_audio_source_set_instance(btstack_audio_esp32_source_get_instance());
|
btstack_audio_source_set_instance(btstack_audio_esp32_source_get_instance());
|
||||||
|
#endif
|
||||||
|
|
||||||
return ERROR_CODE_SUCCESS;
|
return ERROR_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user