codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
break;
case AUDIO_FORMAT_PCM_8_24_BIT:
- // FALLTHROUGH
- // All 24-bit audio is expected in AUDIO_FORMAT_PCM_24_BIT_PACKED format
+ // All 24-bit audio is expected in AUDIO_FORMAT_PCM_24_BIT_PACKED format
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
ERROR("Invalid audio format: 0x%x", common->cfg.format);
return -1;
codec_config.bits_per_sample = BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32;
break;
case AUDIO_FORMAT_PCM_8_24_BIT:
- // FALLTHROUGH
- // All 24-bit audio is expected in AUDIO_FORMAT_PCM_24_BIT_PACKED format
+ // All 24-bit audio is expected in AUDIO_FORMAT_PCM_24_BIT_PACKED format
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
ERROR("Invalid audio format: 0x%x", common->cfg.format);
return -1;
/* GET_ transsaction, handshake indicate unsupported request */
case BTA_HH_GET_PROTO_EVT:
bta_hh.hs_data.rsp_data.proto_mode = BTA_HH_PROTO_UNKNOWN;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case BTA_HH_GET_RPT_EVT:
case BTA_HH_GET_IDLE_EVT:
bta_hh.hs_data.handle = p_cb->hid_handle;
break;
/* should not expect control DATA for SET_ transaction */
case BTA_HH_SET_PROTO_EVT:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case BTA_HH_SET_RPT_EVT:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case BTA_HH_SET_IDLE_EVT:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
#if (BTA_HH_DEBUG == TRUE)
APPL_TRACE_DEBUG("invalid transaction type for DATA payload: 4_evt[%s]",
} else {
switch (p_data->api_sndcmd.t_type) {
case HID_TRANS_SET_PROTOCOL:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_GET_REPORT:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_SET_REPORT:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_GET_PROTOCOL:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_GET_IDLE:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_SET_IDLE: /* set w4_handsk event name for callback
function use */
p_cb->w4_evt = event;
break;
case HID_TRANS_DATA: /* output report */
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HID_TRANS_CONTROL:
/* no handshake event will be generated */
/* if VC_UNPLUG is issued, set flag */
case GATT_UUID_BATTERY_LEVEL: /* battery level clt cfg registered */
hid_inst_id = bta_hh_le_find_service_inst_by_battery_inst_id(
p_dev_cb, srvc_inst_id);
- /* FALLTHROUGH */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_UUID_HID_BT_KB_INPUT:
case GATT_UUID_HID_BT_MOUSE_INPUT:
case GATT_UUID_HID_REPORT:
case BT_EVT_TO_LM_HCI_SCO:
case BT_EVT_TO_BTU_HCI_SCO:
- // We're not logging SCO packets at this time since they are not currently
- // used.
- // FALLTHROUGH
+ // We're not logging SCO packets at this time since they are not currently
+ // used.
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
return 0;
}
btif_dm_cb_create_bond(bd_addr, BTA_TRANSPORT_UNKNOWN);
return;
}
- /* Fall-through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HCI_ERR_CONNECTION_TOUT:
status = BT_STATUS_RMT_DEV_DOWN;
break;
Uuid::From16Bit(UUID_SERVCLASS_AG_HANDSFREE);
num_uuids++;
}
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
/* intentional fall through: Send both BFP & HSP UUIDs if HFP is
* enabled */
case BTA_HSP_SERVICE_ID: {
ms = kAdvertisingIntervalLowMs;
break;
case AdvertiseSettings::MODE_LOW_POWER:
- // Fall through
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
ms = kAdvertisingIntervalHighMs;
break;
power = -7;
break;
case AdvertiseSettings::TX_POWER_LEVEL_HIGH:
- // Fall through
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
power = 1;
break;
p_a2dp_offload->codec_info[6] =
A2DP_LDAC_QUALITY_LOW; // Low birate
break;
- case 3: // fall through
+ case 3:
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
default:
p_a2dp_offload->codec_info[6] =
A2DP_LDAC_QUALITY_ABR_OFFLOAD; // ABR in offload
switch (p_encoder_params->s16ChannelMode) {
case SBC_MONO:
- /* FALLTHROUGH */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case SBC_DUAL:
frame_len = A2DP_SBC_FRAME_HEADER_SIZE_BYTES +
((uint32_t)(A2DP_SBC_SCALE_FACTOR_BITS *
}
/* if salve role then fall through to call SMP_Pair below which will send a
sec_request to request the master to encrypt the link */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case BTM_BLE_SEC_ENCRYPT_NO_MITM:
case BTM_BLE_SEC_ENCRYPT_MITM:
auth_req = (sec_act == BTM_BLE_SEC_ENCRYPT_NO_MITM)
case SMP_OOB_REQ_EVT:
case SMP_NC_REQ_EVT:
case SMP_SC_OOB_REQ_EVT:
- /* fall through */
p_dev_rec->sec_flags |= BTM_SEC_LE_AUTHENTICATED;
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case SMP_SEC_REQUEST_EVT:
if (event == SMP_SEC_REQUEST_EVT &&
btm_cb.pairing_bda = bd_addr;
p_dev_rec->sec_state = BTM_SEC_STATE_AUTHENTICATING;
btm_cb.pairing_flags |= BTM_PAIR_FLAGS_LE_ACTIVE;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case SMP_COMPLT_EVT:
if (btm_cb.api.p_le_callback) {
}
}
#endif
- /* Case Falls Through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case HCI_HOLD_MODE:
case HCI_SNIFF_MODE:
"ATT_RSP_READ_BLOB/GATT_RSP_PREPARE_WRITE: len = %d offset = %d",
p_msg->attr_value.len, p_msg->attr_value.offset);
offset = p_msg->attr_value.offset;
- /* Coverity: [FALSE-POSITIVE error] intended fall through */
- /* Missing break statement between cases in switch statement */
- /* fall through */
+ /* Coverity: [FALSE-POSITIVE error] intended fall through */
+ /* Missing break statement between cases in switch statement */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_RSP_READ_BY_TYPE:
case GATT_RSP_READ:
case GATT_HANDLE_VALUE_NOTIF:
case GATT_REQ_READ_BLOB:
offset = p_msg->read_blob.offset;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_REQ_READ:
handle =
(op_code == GATT_REQ_READ) ? p_msg->handle : p_msg->read_blob.handle;
case GATT_REQ_PREPARE_WRITE:
offset = p_msg->attr_value.offset;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_REQ_WRITE:
case GATT_CMD_WRITE:
case GATT_SIGN_CMD_WRITE:
break;
case GATT_UUID_CHAR_CLIENT_CONFIG:
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_UUID_CHAR_SRVR_CONFIG:
max_size = 2;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_UUID_CHAR_DESCRIPTION:
default: /* any other must be character value declaration */
status = GATT_SUCCESS;
sr_data.write_req.is_prep = true;
STREAM_TO_UINT16(sr_data.write_req.offset, p);
len -= 2;
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_SIGN_CMD_WRITE:
if (op_code == GATT_SIGN_CMD_WRITE) {
VLOG(1) << "Write CMD with data sigining";
len -= GATT_AUTH_SIGN_LEN;
}
- /* fall through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case GATT_CMD_WRITE:
case GATT_REQ_WRITE:
if (op_code == GATT_REQ_WRITE || op_code == GATT_REQ_PREPARE_WRITE)
case RFC_EVENT_DM:
rfc_timer_stop(p_mcb);
- /* Case falls through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case RFC_MX_EVENT_CONF_IND: /* workaround: we don't support reconfig */
case RFC_MX_EVENT_CONF_CNF: /* workaround: we don't support reconfig */
case RFC_EVENT_UA:
p_port->rfc.p_mcb->is_disc_initiator = true;
- /* Case falls through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case RFC_EVENT_DM:
RFCOMM_TRACE_WARNING("%s, RFC_EVENT_DM|RFC_EVENT_UA[%d], index=%d",
break;
}
}
- /* Case falls through */
+ FALLTHROUGH_INTENDED; /* FALLTHROUGH */
case TWO_COMP_INT_DESC_TYPE:
switch (attr_len) {