btfmcodec: Update bearer response instead of ind

This change will send bearer response instead of transport
failed indications.
Update correct codeid and smaple rate for seamles transitions

Change-Id: I4b91f5e158c02d4f2dc1852cc58cec959d028497
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
This commit is contained in:
Balakrishna Godavarthi
2023-06-12 21:11:10 +05:30
committed by Gerrit - the friendly Code Review server
parent f42a9a1f35
commit c49fc215ed
3 changed files with 22 additions and 33 deletions

View File

@@ -155,6 +155,7 @@ int btfmcodec_initiate_hwep_configuration(struct btfmcodec_char_device *btfmcode
schedule_work(&btfmcodec_dev->wq_hwep_configure);
*status = BTM_WAITING_RSP;
ret = wait_event_interruptible_timeout(*rsp_wait_q,
*status != BTM_WAITING_RSP,
msecs_to_jiffies(BTM_MASTER_CONFIG_RSP_TIMEOUT));
@@ -190,8 +191,8 @@ void btfmcodec_configure_hwep(struct btfmcodec_char_device *btfmcodec_dev)
btfmcodec_revert_current_state(state);
}
ret = btfmcodec_frame_transport_switch_ind_pkt(btfmcodec_dev,
btfmcodec_get_current_transport(state), status);
ret = btfmcodec_frame_prepare_bearer_rsp_pkt(btfmcodec_dev,
btfmcodec_get_current_transport(state), status);
if (status != MSG_SUCCESS)
return;