Fix typos

This commit is contained in:
Andrea Gelmini 2021-04-28 20:29:44 +02:00 committed by Wim Taymans
parent 379068c31d
commit 47ef2b6b09
35 changed files with 53 additions and 53 deletions

View file

@ -549,7 +549,7 @@ static pa_available_t calc_port_state(pa_device_port *p, pa_card *impl)
break;
}
/* If the current availablility is unknown go the more precise no,
/* If the current availability is unknown go the more precise no,
* but otherwise don't change state */
if (pa == PA_AVAILABLE_UNKNOWN)
pa = cpa;

View file

@ -72,7 +72,7 @@ struct pa_device_port {
unsigned priority;
pa_available_t available; /* PA_AVAILABLE_UNKNOWN, PA_AVAILABLE_NO or PA_AVAILABLE_YES */
char *availability_group; /* a string identifier which determine the group of devices handling the available state simulteneously */
char *availability_group; /* a string identifier which determine the group of devices handling the available state simultaneously */
pa_direction_t direction;
int64_t latency_offset;

View file

@ -206,7 +206,7 @@ static inline void pa_hashmap_sort(pa_hashmap *h,
for ((state) = NULL, (e) = pa_hashmap_iterate((h), &(state), NULL); \
(e); (e) = pa_hashmap_iterate((h), &(state), NULL))
/* A macro to ease itration through all key, value pairs */
/* A macro to ease iteration through all key, value pairs */
#define PA_HASHMAP_FOREACH_KV(k, e, h, state) \
for ((state) = NULL, (e) = pa_hashmap_iterate((h), &(state), (const void **) &(k)); \
(e); (e) = pa_hashmap_iterate((h), &(state), (const void **) &(k)))

View file

@ -155,7 +155,7 @@ static int make_matrix(struct channelmix *mix)
spa_log_debug(mix->log, "src-mask:%08"PRIx64" dst-mask:%08"PRIx64,
src_mask, dst_mask);
/* move the MONO mask to FC so that the lower bits can be shifed
/* move the MONO mask to FC so that the lower bits can be shifted
* away. */
if ((src_mask & (1Ull << SPA_AUDIO_CHANNEL_MONO)) != 0)
src_mask |= (1ULL << SPA_AUDIO_CHANNEL_FC);
@ -179,7 +179,7 @@ static int make_matrix(struct channelmix *mix)
matrix[0][i]= 1.0f / mix->src_chan;
} else {
/* just pair channels */
spa_log_debug(mix->log, "paring channels");
spa_log_debug(mix->log, "pairing channels");
for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++)
matrix[i][i]= 1.0f;
}

View file

@ -373,7 +373,7 @@ again:
if (errno == EINTR)
goto again;
/* return socked has no data */
/* return socket has no data */
if (errno == EAGAIN || errno == EWOULDBLOCK)
return 0;

View file

@ -705,7 +705,7 @@ static bool rfcomm_hfp_hf(struct spa_source *source, char* buf)
selected_codec = atoi(token);
if (selected_codec != HFP_AUDIO_CODEC_CVSD && selected_codec != HFP_AUDIO_CODEC_MSBC) {
spa_log_warn(backend->log, NAME": unsupported codec negociation: %d", selected_codec);
spa_log_warn(backend->log, NAME": unsupported codec negotiation: %d", selected_codec);
} else {
spa_log_debug(backend->log, NAME": RFCOMM selected_codec = %i", selected_codec);

View file

@ -268,7 +268,7 @@ static void battery_update(struct spa_bt_device *device)
dbus_message_unref(msg);
}
// Create ney virtual battery with value stored in current device object
// Create new virtual battery with value stored in current device object
static void battery_create(struct spa_bt_device *device) {
DBusMessage *msg;
DBusMessageIter iter, entry, dict;
@ -1043,8 +1043,8 @@ int spa_bt_device_check_profiles(struct spa_bt_device *device, bool force)
device_stop_timer(device);
device_connected(monitor, device, BT_DEVICE_CONNECTED);
} else {
/* The initial reconnect event has not been triggred,
* the connecting is triggred by bluez. */
/* The initial reconnect event has not been triggered,
* the connecting is triggered by bluez. */
if (device->reconnect_state == BT_DEVICE_RECONNECT_INIT)
device->reconnect_state = BT_DEVICE_RECONNECT_PROFILE;
device_start_timer(device);
@ -2390,7 +2390,7 @@ int spa_bt_device_ensure_a2dp_codec(struct spa_bt_device *device, const struct a
/* Check if we already have an enabled transport for the most preferred codec.
* However, if there already was a codec switch running, these transports may
* disapper soon. In that case, we have to do the full thing.
* disappear soon. In that case, we have to do the full thing.
*/
if (spa_list_is_empty(&device->codec_switch_list) && preferred_codec != NULL) {
spa_list_for_each(t, &device->transport_list, device_link) {
@ -3916,7 +3916,7 @@ const struct spa_handle_factory spa_bluez5_dbus_factory = {
impl_enum_interface_info,
};
// Report battery percentage to BlueZ using experimental (BlueZ 5.56) Battery Provider API. No-op if no changes occured.
// Report battery percentage to BlueZ using experimental (BlueZ 5.56) Battery Provider API. No-op if no changes occurred.
int spa_bt_device_report_battery_level(struct spa_bt_device *device, uint8_t percentage)
{
if (percentage == SPA_BT_NO_BATTERY) {

View file

@ -316,8 +316,8 @@ static void volume_changed(void *userdata)
impl->params[IDX_Route].flags ^= SPA_PARAM_INFO_SERIAL;
emit_info(impl, false);
/* It sometimes flips volume to over 100% in pavucontrol silder
* if volume is emited before route info emitting while node
/* It sometimes flips volume to over 100% in pavucontrol slider
* if volume is emitted before route info emitting while node
* volumes are not identical to route volumes. Not sure why. */
emit_volume(impl, node);
}

View file

@ -424,7 +424,7 @@ struct spa_bt_device {
int has_battery;
uint32_t hw_volume_profiles;
/* Even tought A2DP volume is exposed on transport interface, the
/* Even though A2DP volume is exposed on transport interface, the
* volume activation info would not be variate between transports
* under same device. So it's safe to cache activation info here. */
bool a2dp_volume_active[2];

View file

@ -529,14 +529,14 @@ static int do_start(struct impl *this)
/* Do accept if Gateway; otherwise do connect for Head Unit */
do_accept = this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY;
/* acquire the socked fd (false -> connect | true -> accept) */
/* acquire the socket fd (false -> connect | true -> accept) */
if ((res = spa_bt_transport_acquire(this->transport, do_accept)) < 0)
return res;
/* Init mSBC if needed */
if (this->transport->codec == HFP_AUDIO_CODEC_MSBC) {
sbc_init_msbc(&this->msbc, 0);
/* Libsbc expects audio samples by default in host endianity, mSBC requires little endian */
/* Libsbc expects audio samples by default in host endianness, mSBC requires little endian */
this->msbc.endian = SBC_LE;
/* write_mtu might not be correct at this point, so we'll throw

View file

@ -606,7 +606,7 @@ static int do_start(struct impl *this)
/* Do accept if Gateway; otherwise do connect for Head Unit */
do_accept = this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY;
/* acquire the socked fd (false -> connect | true -> accept) */
/* acquire the socket fd (false -> connect | true -> accept) */
if ((res = spa_bt_transport_acquire(this->transport, do_accept)) < 0)
return res;
@ -616,7 +616,7 @@ static int do_start(struct impl *this)
/* Init mSBC if needed */
if (this->transport->codec == HFP_AUDIO_CODEC_MSBC) {
sbc_init_msbc(&this->msbc, 0);
/* Libsbc expects audio samples by default in host endianity, mSBC requires little endian */
/* Libsbc expects audio samples by default in host endianness, mSBC requires little endian */
this->msbc.endian = SBC_LE;
this->msbc_seq_initialized = false;