hfp_ag.c (dc6af3796045ded348784cb3ed458c443159f35a) hfp_ag.c (6decf019d63037940febd2492a7c2498b9ecd9fc)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 639 unchanged lines hidden (view full) ---

648 hfp_connection->codecs_state = HFP_CODECS_EXCHANGED;
649 log_info("hfp: codec confirmed: %s", (hfp_connection->negotiated_codec == HFP_CODEC_MSBC) ? "mSBC" : "CVSD");
650 hfp_ag_send_ok(hfp_connection->rfcomm_cid);
651 // now, pick link settings
652 hfp_init_link_settings(hfp_connection, hfp_ag_esco_s4_supported(hfp_connection));
653#ifdef ENABLE_CC256X_ASSISTED_HFP
654 hfp_cc256x_prepare_for_sco(hfp_connection);
655#endif
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 639 unchanged lines hidden (view full) ---

648 hfp_connection->codecs_state = HFP_CODECS_EXCHANGED;
649 log_info("hfp: codec confirmed: %s", (hfp_connection->negotiated_codec == HFP_CODEC_MSBC) ? "mSBC" : "CVSD");
650 hfp_ag_send_ok(hfp_connection->rfcomm_cid);
651 // now, pick link settings
652 hfp_init_link_settings(hfp_connection, hfp_ag_esco_s4_supported(hfp_connection));
653#ifdef ENABLE_CC256X_ASSISTED_HFP
654 hfp_cc256x_prepare_for_sco(hfp_connection);
655#endif
656#ifdef ENABLE_BCM_PCM_WBS
657 hfp_bcm_prepare_for_sco(hfp_connection);
658#endif
656#ifdef ENABLE_RTK_PCM_WBS
657 hfp_connection->rtk_send_sco_config = true;
658#endif
659 return 1;
660 default:
661 break;
662 }
663 return 0;

--- 2601 unchanged lines hidden ---
659#ifdef ENABLE_RTK_PCM_WBS
660 hfp_connection->rtk_send_sco_config = true;
661#endif
662 return 1;
663 default:
664 break;
665 }
666 return 0;

--- 2601 unchanged lines hidden ---