From 5913eb098c30dda9d455a6a807d34868b98fa90c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Daase?= Date: Tue, 16 Mar 2021 18:09:38 +0100 Subject: [PATCH] treewide: fix issues found by codespell --- NEWS | 2 +- spa/include/spa/node/command.h | 4 ++-- spa/plugins/alsa/acp/acp.h | 2 +- spa/plugins/alsa/acp/device-port.h | 2 +- spa/plugins/alsa/alsa-udev.c | 12 ++++++------ spa/plugins/bluez5/backend-native.c | 12 ++++++------ spa/plugins/bluez5/sco-sink.c | 2 +- spa/plugins/bluez5/sco-source.c | 2 +- spa/plugins/v4l2/v4l2-udev.c | 12 ++++++------ src/modules/module-protocol-pulse/manager.h | 2 +- 10 files changed, 26 insertions(+), 26 deletions(-) diff --git a/NEWS b/NEWS index 71c5de296..2f5c88567 100644 --- a/NEWS +++ b/NEWS @@ -541,7 +541,7 @@ with previous 0.3.x releases. - Highlights - Fix screensharing for old 0.2 clients - Many pulse-server improvements. There is now a - pipewire-pulse binary that is the prefered solution for + pipewire-pulse binary that is the preferred solution for PulseAudio compatibility. The replacement libpulse libraries are now deprecated. This also makes audio in Flatpak work. diff --git a/spa/include/spa/node/command.h b/spa/include/spa/node/command.h index f630a6412..3addce55f 100644 --- a/spa/include/spa/node/command.h +++ b/spa/include/spa/node/command.h @@ -35,9 +35,9 @@ extern "C" { enum spa_node_command { SPA_NODE_COMMAND_Suspend, /**< suspend a node, this removes all configured * formats and closes any devices */ - SPA_NODE_COMMAND_Pause, /**< pause a node. this makes it stop emiting + SPA_NODE_COMMAND_Pause, /**< pause a node. this makes it stop emitting * scheduling events */ - SPA_NODE_COMMAND_Start, /**< start a node, this makes it start emiting + SPA_NODE_COMMAND_Start, /**< start a node, this makes it start emitting * scheduling events */ SPA_NODE_COMMAND_Enable, SPA_NODE_COMMAND_Disable, diff --git a/spa/plugins/alsa/acp/acp.h b/spa/plugins/alsa/acp/acp.h index d8adfdce9..0679eba5c 100644 --- a/spa/plugins/alsa/acp/acp.h +++ b/spa/plugins/alsa/acp/acp.h @@ -136,7 +136,7 @@ const char *acp_available_str(enum acp_available status); #define ACP_KEY_PORT_TYPE "port.type" /**< a Port type, like "aux", "speaker", ... */ #define ACP_KEY_PORT_AVAILABILITY_GROUP "port.availability-group" - /**< An indentifier for the group of ports that share their availability status with + /**< An identifier for the group of ports that share their availability status with * each other. This is meant especially for handling cases where one 3.5 mm connector * is used for headphones, headsets and microphones, and the hardware can only tell * that something was plugged in but not what exactly. In this situation the ports for diff --git a/spa/plugins/alsa/acp/device-port.h b/spa/plugins/alsa/acp/device-port.h index ee640b38f..3855ad306 100644 --- a/spa/plugins/alsa/acp/device-port.h +++ b/spa/plugins/alsa/acp/device-port.h @@ -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 indentifier 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 simulteneously */ pa_direction_t direction; int64_t latency_offset; diff --git a/spa/plugins/alsa/alsa-udev.c b/spa/plugins/alsa/alsa-udev.c index b378ff19d..d80331f82 100644 --- a/spa/plugins/alsa/alsa-udev.c +++ b/spa/plugins/alsa/alsa-udev.c @@ -55,7 +55,7 @@ struct device { struct udev_device *dev; unsigned int accessible:1; unsigned int ignored:1; - unsigned int emited:1; + unsigned int emitted:1; }; struct impl { @@ -365,7 +365,7 @@ static int emit_object_info(struct impl *this, struct device *device) info.props = &SPA_DICT_INIT(items, n_items); spa_device_emit_object_info(&this->hooks, id, &info); - device->emited = true; + device->emitted = true; free(cn); free(cln); @@ -387,7 +387,7 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic { uint32_t id; struct device *device; - bool emited; + bool emitted; if ((id = get_card_id(this, dev)) == SPA_ID_INVALID) return; @@ -410,9 +410,9 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic case ACTION_REMOVE: if (device == NULL) return; - emited = device->emited; + emitted = device->emitted; remove_device(this, device); - if (emited) + if (emitted) spa_device_emit_object_info(&this->hooks, id, NULL); break; } @@ -463,7 +463,7 @@ static void impl_on_notify_events(struct spa_source *source) continue; if ((device = find_device(this, id)) == NULL) continue; - if (!device->emited) + if (!device->emitted) process_device(this, ACTION_ADD, device->dev); } /* /dev/snd/ might have been removed */ diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 06a565338..6cee44533 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -298,13 +298,13 @@ static bool device_supports_required_mSBC_transport_modes( hci_close_dev(sock); if (!(features[2] & LMP_TRSP_SCO)) { - /* When adapater support, then the LMP_TRSP_SCO bit in features[2] is set*/ + /* When adapter support, then the LMP_TRSP_SCO bit in features[2] is set*/ spa_log_info(backend->log, NAME": bluetooth host adapter not capable of Transparent SCO LMP_TRSP_SCO" ); return false; } else if (!(features[3] & LMP_ESCO)) { - /* When adapater support, then the LMP_ESCO bit in features[3] is set*/ + /* When adapter support, then the LMP_ESCO bit in features[3] is set*/ spa_log_info(backend->log, NAME": bluetooth host adapter not capable of eSCO link mode (LMP_ESCO)" ); return false; @@ -372,9 +372,9 @@ static bool rfcomm_hfp_ag(struct spa_source *source, char* buf) /* response has the form AT+BAC=,, strategy: split the string into tokens */ char* token; - char seperators[] = "=,"; + char separators[] = "=,"; int cntr = 0; - token = strtok (buf, seperators); + token = strtok (buf, separators); while (token != NULL) { /* skip token 0 i.e. the "AT+BAC=" part */ @@ -388,7 +388,7 @@ static bool rfcomm_hfp_ag(struct spa_source *source, char* buf) } } /* get next token */ - token = strtok (NULL, seperators); + token = strtok (NULL, separators); cntr++; } @@ -424,7 +424,7 @@ static bool rfcomm_hfp_ag(struct spa_source *source, char* buf) } else if (sscanf(buf, "AT+BCS=%u", &selected_codec) == 1) { /* parse BCS(=Bluetooth Codec Selection) reply */ 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); rfcomm_send_reply(source, "ERROR"); return true; } diff --git a/spa/plugins/bluez5/sco-sink.c b/spa/plugins/bluez5/sco-sink.c index 4f2dee5ef..40da60c19 100644 --- a/spa/plugins/bluez5/sco-sink.c +++ b/spa/plugins/bluez5/sco-sink.c @@ -526,7 +526,7 @@ static int do_start(struct impl *this) bool do_accept; int res; - /* Dont do anything if the node has already started */ + /* Don't do anything if the node has already started */ if (this->started) return 0; diff --git a/spa/plugins/bluez5/sco-source.c b/spa/plugins/bluez5/sco-source.c index 36f0d474e..25fb91809 100644 --- a/spa/plugins/bluez5/sco-source.c +++ b/spa/plugins/bluez5/sco-source.c @@ -580,7 +580,7 @@ static int do_start(struct impl *this) bool do_accept; int res; - /* Dont do anything if the node has already started */ + /* Don't do anything if the node has already started */ if (this->started) return 0; diff --git a/spa/plugins/v4l2/v4l2-udev.c b/spa/plugins/v4l2/v4l2-udev.c index 874a9074d..2c581780c 100644 --- a/spa/plugins/v4l2/v4l2-udev.c +++ b/spa/plugins/v4l2/v4l2-udev.c @@ -55,7 +55,7 @@ struct device { struct udev_device *dev; unsigned int accessible:1; unsigned int ignored:1; - unsigned int emited:1; + unsigned int emitted:1; }; struct impl { @@ -314,7 +314,7 @@ static int emit_object_info(struct impl *this, struct device *device) } info.props = &SPA_DICT_INIT(items, n_items); spa_device_emit_object_info(&this->hooks, id, &info); - device->emited = true; + device->emitted = true; return 1; } @@ -334,7 +334,7 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic { uint32_t id; struct device *device; - bool emited; + bool emitted; if ((id = get_device_id(this, dev)) == SPA_ID_INVALID) return; @@ -357,9 +357,9 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic case ACTION_REMOVE: if (device == NULL) return; - emited = device->emited; + emitted = device->emitted; remove_device(this, device); - if (emited) + if (emitted) spa_device_emit_object_info(&this->hooks, id, NULL); break; } @@ -410,7 +410,7 @@ static void impl_on_notify_events(struct spa_source *source) continue; if ((device = find_device(this, id)) == NULL) continue; - if (!device->emited) + if (!device->emitted) process_device(this, ACTION_ADD, device->dev); } /* /dev/ might have been removed */ diff --git a/src/modules/module-protocol-pulse/manager.h b/src/modules/module-protocol-pulse/manager.h index dbf8228de..5d79c293a 100644 --- a/src/modules/module-protocol-pulse/manager.h +++ b/src/modules/module-protocol-pulse/manager.h @@ -98,7 +98,7 @@ int pw_manager_sync(struct pw_manager *manager); void pw_manager_destroy(struct pw_manager *manager); int pw_manager_set_metadata(struct pw_manager *manager, - struct pw_manager_object *metdata, + struct pw_manager_object *metadata, uint32_t subject, const char *key, const char *type, const char *format, ...) SPA_PRINTF_FUNC(6,7);