diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 7c0f9c5..d2c2bec 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
case ECONNREFUSED:
return -perr;
default:
- /*
- * An unexpect error has occurred setup may be attempted again.
+ /* An unexpected error has occurred setup may be attempted
+ * again.
*/
return -EAGAIN;
}
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 831f1dc..df28bf0 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
len = 0;
/*
- * From sec. 5.7 of AVRCP 1.3 spec, we should igore non-existent IDs
+ * From sec. 5.7 of AVRCP 1.3 spec, we should ignore non-existent IDs
* and send a response with the existent ones. Only if all IDs are
* non-existent we should send an error.
*/
goto err;
/*
- * From sec. 5.7 of AVRCP 1.3 spec, we should igore non-existent IDs
+ * From sec. 5.7 of AVRCP 1.3 spec, we should ignore non-existent IDs
* and set the existent ones. Sec. 5.2.4 is not clear however how to
* indicate that a certain ID was not accepted. If at least one
* attribute is valid, we respond with no parameters. Otherwise an
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 66403fc..a1ca26b 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
entry; entry = entry->next) {
ent_setup = entry->data;
- /* Skip the curent stream form testing */
+ /* Skip the current stream form testing */
if (ent_setup == setup) {
stream_cnt++;
continue;
diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c
index 2cda00b..c853fbc 100644
--- a/profiles/audio/bass.c
+++ b/profiles/audio/bass.c
queue_push_tail(setup->dg->setups, setup);
- /* Only handle streams required by the Brodcast Assistant. */
+ /* Only handle streams required by the Broadcast Assistant. */
if (!bt_bass_check_bis(dg->src, bis))
return;
diff --git a/profiles/audio/micp.c b/profiles/audio/micp.c
index 3f0845d..4f0bde1 100644
--- a/profiles/audio/micp.c
+++ b/profiles/audio/micp.c
DBG("data %p", data);
if (queue_find(sessions, NULL, data)) {
- error("data %p allready added", data);
+ error("data %p already added", data);
return;
}
data = queue_find(sessions, match_data, micp);
if (!data) {
- error("unable to find sessio");
+ error("unable to find session");
return;
}
ba2str(device_get_address(device), addr);
DBG("%s", addr);
- /*Ignore, if we probed for this device allready */
+ /*Ignore, if we probed for this device already */
if (data) {
error("Profile probed twice for this device");
return -EINVAL;
diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index 5318d40..5be78ab 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
struct batt *batt = user_data;
if (!success) {
- DBG("Reading battery level failed with ATT errror: %u",
+ DBG("Reading battery level failed with ATT error: %u",
att_ecode);
return;
}
diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index 08aaf19..a4831d3 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
char *name;
if (!success) {
- DBG("Reading device name failed with ATT errror: %u",
+ DBG("Reading device name failed with ATT error: %u",
att_ecode);
return;
}
diff --git a/profiles/health/mcap.c b/profiles/health/mcap.c
index 2e4214a..74fffa7 100644
--- a/profiles/health/mcap.c
+++ b/profiles/health/mcap.c
/*
* FIXME: btd_adapter_read_clock(...) always return FALSE, current
* code doesn't support CSP (Clock Synchronization Protocol). To avoid
- * build dependancy on struct 'btd_adapter', removing this code.
+ * build dependency on struct 'btd_adapter', removing this code.
*/
return FALSE;
_caps.ts_acc = 20; /* ppm, estimated */
- /* A little exercise before measuing latency */
+ /* A little exercise before measuring latency */
clock_gettime(CLK, &t1);
read_btclock_retry(mcl, &btclock, &btaccuracy);
return;
}
- /* Convert to miliseconds */
+ /* Convert to milliseconds */
phase2_delay = bt2ms(phase2_delay);
if (phase2_delay > 61*1000) {
gpointer user_data;
if (mcl->csp->csp_req != MCAP_MD_SYNC_CAP_REQ) {
- DBG("CSP: got unexpected cap respose");
+ DBG("CSP: got unexpected cap response");
return;
}
if (!mcl->csp->csp_priv_data) {
- DBG("CSP: no priv data for cap respose");
+ DBG("CSP: no priv data for cap response");
return;
}
mcl->csp->csp_req = 0;
if (len != sizeof(mcap_md_sync_cap_rsp)) {
- DBG("CSP: got corrupted cap respose");
+ DBG("CSP: got corrupted cap response");
return;
}
gpointer user_data;
if (mcl->csp->csp_req != MCAP_MD_SYNC_SET_REQ) {
- DBG("CSP: got unexpected set respose");
+ DBG("CSP: got unexpected set response");
return;
}
if (!mcl->csp->csp_priv_data) {
- DBG("CSP: no priv data for set respose");
+ DBG("CSP: no priv data for set response");
return;
}
mcl->csp->csp_req = 0;
if (len != sizeof(mcap_md_sync_set_rsp)) {
- DBG("CSP: got corrupted set respose");
+ DBG("CSP: got corrupted set response");
return;
}
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 22599f7..dbf4dad 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
if (value == HOG_PROTO_MODE_BOOT) {
uint8_t nval = HOG_PROTO_MODE_REPORT;
- DBG("HoG is operating in Boot Procotol Mode");
+ DBG("HoG is operating in Boot Protocol Mode");
gatt_write_cmd(hog->attrib, hog->proto_mode_handle, &nval,
sizeof(nval), NULL, NULL);
diff --git a/profiles/midi/libmidi.c b/profiles/midi/libmidi.c
index 5b77cd3..6f2914a 100644
--- a/profiles/midi/libmidi.c
+++ b/profiles/midi/libmidi.c
snd_seq_ev_set_sysex(ev, parser->sysex_stream.len,
parser->sysex_stream.data);
- midi_size = 1; /* timestampLow was alredy processed */
+ midi_size = 1; /* timestampLow was already processed */
goto _finish;
case 0x80 ... 0xEF:
diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c
index bab309b..944887a 100644
--- a/profiles/midi/midi.c
+++ b/profiles/midi/midi.c
/* ALSA Sequencer Client and Port Setup */
err = snd_seq_open(&midi->seq_handle, "default", SND_SEQ_OPEN_DUPLEX, 0);
if (err < 0) {
- error("Could not open ALSA Sequencer: %s (%d)", snd_strerror(err), err);
+ error("Could not open ALSA Sequencer: %s (%d)",
+ snd_strerror(err), err);
return err;
}
err = snd_seq_nonblock(midi->seq_handle, SND_SEQ_NONBLOCK);
if (err < 0) {
- error("Could not set nonblock mode: %s (%d)", snd_strerror(err), err);
+ error("Could not set nonblock mode: %s (%d)",
+ snd_strerror(err), err);
goto _err_handle;
}
err = snd_seq_set_client_name(midi->seq_handle, device_name);
if (err < 0) {
- error("Could not configure ALSA client: %s (%d)", snd_strerror(err), err);
+ error("Could not configure ALSA client: %s (%d)",
+ snd_strerror(err), err);
goto _err_handle;
}
err = snd_seq_client_id(midi->seq_handle);
if (err < 0) {
- error("Could retreive ALSA client: %s (%d)", snd_strerror(err), err);
+ error("Could retrieve ALSA client: %s (%d)", snd_strerror(err),
+ err);
goto _err_handle;
}
midi->seq_client_id = err;
SND_SEQ_PORT_TYPE_MIDI_GENERIC |
SND_SEQ_PORT_TYPE_HARDWARE);
if (err < 0) {
- error("Could not create ALSA port: %s (%d)", snd_strerror(err), err);
+ error("Could not create ALSA port: %s (%d)", snd_strerror(err),
+ err);
goto _err_handle;
}
midi->seq_port_id = err;