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

@ -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;