Lines Matching refs:selected_codec_id
1104 if (ag->selected_codec_id == 0) { in bt_hfp_ag_codec_select()
1110 if (!(ag->hf_codec_ids & BIT(ag->selected_codec_id))) { in bt_hfp_ag_codec_select()
1111 LOG_ERR("Codec is unsupported (codec id %d)", ag->selected_codec_id); in bt_hfp_ag_codec_select()
1117 err = hfp_ag_send_data(ag, NULL, NULL, "\r\n+BCS:%d\r\n", ag->selected_codec_id); in bt_hfp_ag_codec_select()
1251 if ((ag->selected_codec_id == 0) || in bt_hfp_ag_bcc_handler()
1252 (!(ag->hf_codec_ids & BIT(ag->selected_codec_id))) || in bt_hfp_ag_bcc_handler()
1297 if (ag->selected_codec_id != number) { in bt_hfp_ag_bcs_handler()
1299 number, ag->selected_codec_id); in bt_hfp_ag_bcs_handler()
1301 } else if (!(ag->hf_codec_ids & BIT(ag->selected_codec_id))) { in bt_hfp_ag_bcs_handler()
1303 ag->selected_codec_id, ag->hf_codec_ids); in bt_hfp_ag_bcs_handler()
1806 _ag->selected_codec_id = BT_HFP_AG_CODEC_CVSD; in bt_hfp_ag_connect()
2351 ag->selected_codec_id = id; in bt_hfp_ag_select_codec()