Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbfa1a55 authored by Myles Watson's avatar Myles Watson
Browse files

Fix asterisks in block quotes

Remove double asterisks from block quotes.

git grep -lP '^[*][*]'  | xargs  sed 's/^[*][*]/ \*/' -i

Fix asterisk line lengths

 git grep -l '^[ /][*]\{79,\}[*/]' | \
   xargs sed -i s,"^\([ /]\)[*]\([*]\{78\}\)[*]*\([*/]\)","\1\2\3",

Test: mma -j32
Change-Id: Ie3fd375ac2f804cb0f53bf1314a005e85973b3d7
parent 29e54406
Loading
Loading
Loading
Loading
+30 −30
Original line number Original line Diff line number Diff line
@@ -50,8 +50,8 @@
#include "osi/include/socket_utils/sockets.h"
#include "osi/include/socket_utils/sockets.h"


/*****************************************************************************
/*****************************************************************************
**  Constants & Macros
 *  Constants & Macros
******************************************************************************/
 *****************************************************************************/


#define CTRL_CHAN_RETRY_COUNT 3
#define CTRL_CHAN_RETRY_COUNT 3
#define USEC_PER_SEC 1000000L
#define USEC_PER_SEC 1000000L
@@ -70,8 +70,8 @@
#define ASSERTC(cond, msg, val) if (!(cond)) {ERROR("### ASSERT : %s line %d %s (%d) ###", __FILE__, __LINE__, msg, val);}
#define ASSERTC(cond, msg, val) if (!(cond)) {ERROR("### ASSERT : %s line %d %s (%d) ###", __FILE__, __LINE__, msg, val);}


/*****************************************************************************
/*****************************************************************************
**  Local type definitions
 *  Local type definitions
******************************************************************************/
 *****************************************************************************/


typedef enum {
typedef enum {
    AUDIO_A2DP_STATE_STARTING,
    AUDIO_A2DP_STATE_STARTING,
@@ -121,27 +121,27 @@ struct a2dp_stream_in {
};
};


/*****************************************************************************
/*****************************************************************************
**  Static variables
 *  Static variables
******************************************************************************/
 *****************************************************************************/


/*****************************************************************************
/*****************************************************************************
**  Static functions
 *  Static functions
******************************************************************************/
 *****************************************************************************/


static size_t out_get_buffer_size(const struct audio_stream *stream);
static size_t out_get_buffer_size(const struct audio_stream *stream);


/*****************************************************************************
/*****************************************************************************
**  Externs
 *  Externs
******************************************************************************/
 *****************************************************************************/


/*****************************************************************************
/*****************************************************************************
**  Functions
 *  Functions
******************************************************************************/
 *****************************************************************************/
static void a2dp_open_ctrl_path(struct a2dp_stream_common *common);
static void a2dp_open_ctrl_path(struct a2dp_stream_common *common);


/*****************************************************************************
/*****************************************************************************
**   Miscellaneous helper functions
 *   Miscellaneous helper functions
******************************************************************************/
 *****************************************************************************/


/* logs timestamp with microsec precision
/* logs timestamp with microsec precision
   pprev is optional in case a dedicated diff is required */
   pprev is optional in case a dedicated diff is required */
@@ -181,10 +181,10 @@ static int calc_audiotime(struct a2dp_config cfg, int bytes)
}
}


/*****************************************************************************
/*****************************************************************************
**
 *
**   bluedroid stack adaptation
 *   bluedroid stack adaptation
**
 *
*****************************************************************************/
 ****************************************************************************/


static int skt_connect(const char *path, size_t buffer_sz)
static int skt_connect(const char *path, size_t buffer_sz)
{
{
@@ -304,10 +304,10 @@ static int skt_disconnect(int fd)




/*****************************************************************************
/*****************************************************************************
**
 *
**  AUDIO CONTROL PATH
 *  AUDIO CONTROL PATH
**
 *
*****************************************************************************/
 ****************************************************************************/


static int a2dp_ctrl_receive(struct a2dp_stream_common *common, void* buffer, int length)
static int a2dp_ctrl_receive(struct a2dp_stream_common *common, void* buffer, int length)
{
{
@@ -447,10 +447,10 @@ static void a2dp_open_ctrl_path(struct a2dp_stream_common *common)
}
}


/*****************************************************************************
/*****************************************************************************
**
 *
** AUDIO DATA PATH
 * AUDIO DATA PATH
**
 *
*****************************************************************************/
 ****************************************************************************/


static void a2dp_stream_common_init(struct a2dp_stream_common *common)
static void a2dp_stream_common_init(struct a2dp_stream_common *common)
{
{
@@ -558,10 +558,10 @@ static int suspend_audio_datapath(struct a2dp_stream_common *common, bool standb




/*****************************************************************************
/*****************************************************************************
**
 *
**  audio output callbacks
 *  audio output callbacks
**
 *
*****************************************************************************/
 ****************************************************************************/


static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
                         size_t bytes)
                         size_t bytes)
+10 −10
Original line number Original line Diff line number Diff line
@@ -28,8 +28,8 @@
#define AUDIO_A2DP_HW_H
#define AUDIO_A2DP_HW_H


/*****************************************************************************
/*****************************************************************************
**  Constants & Macros
 *  Constants & Macros
******************************************************************************/
 *****************************************************************************/


#define A2DP_AUDIO_HARDWARE_INTERFACE "audio.a2dp"
#define A2DP_AUDIO_HARDWARE_INTERFACE "audio.a2dp"
#define A2DP_CTRL_PATH "/data/misc/bluedroid/.a2dp_ctrl"
#define A2DP_CTRL_PATH "/data/misc/bluedroid/.a2dp_ctrl"
@@ -96,20 +96,20 @@ typedef enum {




/*****************************************************************************
/*****************************************************************************
**  Type definitions for callback functions
 *  Type definitions for callback functions
******************************************************************************/
 *****************************************************************************/


/*****************************************************************************
/*****************************************************************************
**  Type definitions and return values
 *  Type definitions and return values
******************************************************************************/
 *****************************************************************************/


/*****************************************************************************
/*****************************************************************************
**  Extern variables and functions
 *  Extern variables and functions
******************************************************************************/
 *****************************************************************************/


/*****************************************************************************
/*****************************************************************************
**  Functions
 *  Functions
******************************************************************************/
 *****************************************************************************/


#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
+2 −2
Original line number Original line Diff line number Diff line
@@ -845,7 +845,7 @@ void BTA_DmSetBleAdvParams(uint16_t adv_int_min, uint16_t adv_int_max,


/*******************************************************************************
/*******************************************************************************
 *                      BLE ADV data management API
 *                      BLE ADV data management API
 *******************************************************************************/
 ******************************************************************************/


/*******************************************************************************
/*******************************************************************************
 *
 *
@@ -1001,7 +1001,7 @@ extern void BTA_DmBleTrackAdvertiser(


/*******************************************************************************
/*******************************************************************************
 *                      BLE ADV data management API
 *                      BLE ADV data management API
 *******************************************************************************/
 ******************************************************************************/


/*******************************************************************************
/*******************************************************************************
 *
 *
+2 −2
Original line number Original line Diff line number Diff line
@@ -625,7 +625,7 @@ void BTA_DmPcmInitSamples(uint32_t src_sps, uint32_t bits,
#endif
#endif
}
}


/**************************************************************************************
/*******************************************************************************
 * Function         BTA_DmPcmResample
 * Function         BTA_DmPcmResample
 *
 *
 * Description      Down sampling utility to convert higher sampling rate into
 * Description      Down sampling utility to convert higher sampling rate into
@@ -640,7 +640,7 @@ void BTA_DmPcmInitSamples(uint32_t src_sps, uint32_t bits,
 *
 *
 * Returns          int32_t: number of samples converted.
 * Returns          int32_t: number of samples converted.
 *
 *
 *************************************************************************************/
 ******************************************************************************/
int32_t BTA_DmPcmResample(void* p_src, uint32_t in_bytes, void* p_dst) {
int32_t BTA_DmPcmResample(void* p_src, uint32_t in_bytes, void* p_dst) {
  uint32_t out_sample;
  uint32_t out_sample;


+3 −3
Original line number Original line Diff line number Diff line
@@ -958,7 +958,7 @@ void bta_gattc_read(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
 * Description      read multiple
 * Description      read multiple
 *
 *
 * Returns          None.
 * Returns          None.
 ********************************************************************************/
 ******************************************************************************/
void bta_gattc_read_multi(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
void bta_gattc_read_multi(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
  tBTA_GATT_STATUS status = BTA_GATT_OK;
  tBTA_GATT_STATUS status = BTA_GATT_OK;
  tGATT_READ_PARAM read_param;
  tGATT_READ_PARAM read_param;
@@ -1028,7 +1028,7 @@ void bta_gattc_write(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
 * Description      send execute write
 * Description      send execute write
 *
 *
 * Returns          None.
 * Returns          None.
 ********************************************************************************/
 ******************************************************************************/
void bta_gattc_execute(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
void bta_gattc_execute(tBTA_GATTC_CLCB* p_clcb, tBTA_GATTC_DATA* p_data) {
  tBTA_GATT_STATUS status;
  tBTA_GATT_STATUS status;


@@ -1695,7 +1695,7 @@ static void bta_gattc_cmpl_sendmsg(uint16_t conn_id, tGATTC_OPTYPE op,
 *
 *
 * Returns          void
 * Returns          void
 *
 *
 *******************************************************************************/
 ******************************************************************************/
static void bta_gattc_cong_cback(uint16_t conn_id, bool congested) {
static void bta_gattc_cong_cback(uint16_t conn_id, bool congested) {
  tBTA_GATTC_CLCB* p_clcb;
  tBTA_GATTC_CLCB* p_clcb;
  tBTA_GATTC cb_data;
  tBTA_GATTC cb_data;
Loading