From 1be678e9eecdccc979208ffaec8f99a9cd221f02 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 8 Sep 2023 15:30:18 +0200 Subject: [PATCH] hci: send bcm write pcm param --- src/hci.c | 8 ++++++++ src/hci.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/hci.c b/src/hci.c index efd84d239..da5a3f302 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2179,6 +2179,14 @@ static void hci_initializing_run(void){ #endif break; } + case HCI_INIT_BCM_WRITE_PCM_DATA_FORMAT_PARAM: + if (hci_classic_supported() && (hci_stack->manufacturer == BLUETOOTH_COMPANY_ID_BROADCOM_CORPORATION)){ + hci_stack->substate = HCI_INIT_W4_BCM_WRITE_PCM_DATA_FORMAT_PARAM; + log_info("BCM: Config PCM Data format"); + // msb first, fill bits 0, left justified + hci_send_cmd(&hci_bcm_write_pcm_data_format_param, 0, 0, 3, 3, 0); + break; + } #endif #endif diff --git a/src/hci.h b/src/hci.h index e37c9b343..ec0cf9197 100644 --- a/src/hci.h +++ b/src/hci.h @@ -852,6 +852,8 @@ typedef enum hci_init_state{ #ifdef ENABLE_SCO_OVER_PCM HCI_INIT_BCM_WRITE_I2SPCM_INTERFACE_PARAM, HCI_INIT_W4_BCM_WRITE_I2SPCM_INTERFACE_PARAM, + HCI_INIT_BCM_WRITE_PCM_DATA_FORMAT_PARAM, + HCI_INIT_W4_BCM_WRITE_PCM_DATA_FORMAT_PARAM, #endif #endif