treewide: fix issues found by codespell

This commit is contained in:
Björn Daase 2021-03-16 18:09:38 +01:00 committed by Wim Taymans
parent 4d94ba843c
commit 5913eb098c
10 changed files with 26 additions and 26 deletions

2
NEWS
View file

@ -541,7 +541,7 @@ with previous 0.3.x releases.
- Highlights - Highlights
- Fix screensharing for old 0.2 clients - Fix screensharing for old 0.2 clients
- Many pulse-server improvements. There is now a - 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 PulseAudio compatibility. The replacement libpulse
libraries are now deprecated. This also makes audio in libraries are now deprecated. This also makes audio in
Flatpak work. Flatpak work.

View file

@ -35,9 +35,9 @@ extern "C" {
enum spa_node_command { enum spa_node_command {
SPA_NODE_COMMAND_Suspend, /**< suspend a node, this removes all configured SPA_NODE_COMMAND_Suspend, /**< suspend a node, this removes all configured
* formats and closes any devices */ * 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 */ * 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 */ * scheduling events */
SPA_NODE_COMMAND_Enable, SPA_NODE_COMMAND_Enable,
SPA_NODE_COMMAND_Disable, SPA_NODE_COMMAND_Disable,

View file

@ -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_TYPE "port.type" /**< a Port type, like "aux", "speaker", ... */
#define ACP_KEY_PORT_AVAILABILITY_GROUP "port.availability-group" #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 * 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 * 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 * that something was plugged in but not what exactly. In this situation the ports for

View file

@ -72,7 +72,7 @@ struct pa_device_port {
unsigned priority; unsigned priority;
pa_available_t available; /* PA_AVAILABLE_UNKNOWN, PA_AVAILABLE_NO or PA_AVAILABLE_YES */ 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; pa_direction_t direction;
int64_t latency_offset; int64_t latency_offset;

View file

@ -55,7 +55,7 @@ struct device {
struct udev_device *dev; struct udev_device *dev;
unsigned int accessible:1; unsigned int accessible:1;
unsigned int ignored:1; unsigned int ignored:1;
unsigned int emited:1; unsigned int emitted:1;
}; };
struct impl { 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); info.props = &SPA_DICT_INIT(items, n_items);
spa_device_emit_object_info(&this->hooks, id, &info); spa_device_emit_object_info(&this->hooks, id, &info);
device->emited = true; device->emitted = true;
free(cn); free(cn);
free(cln); free(cln);
@ -387,7 +387,7 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
{ {
uint32_t id; uint32_t id;
struct device *device; struct device *device;
bool emited; bool emitted;
if ((id = get_card_id(this, dev)) == SPA_ID_INVALID) if ((id = get_card_id(this, dev)) == SPA_ID_INVALID)
return; return;
@ -410,9 +410,9 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
case ACTION_REMOVE: case ACTION_REMOVE:
if (device == NULL) if (device == NULL)
return; return;
emited = device->emited; emitted = device->emitted;
remove_device(this, device); remove_device(this, device);
if (emited) if (emitted)
spa_device_emit_object_info(&this->hooks, id, NULL); spa_device_emit_object_info(&this->hooks, id, NULL);
break; break;
} }
@ -463,7 +463,7 @@ static void impl_on_notify_events(struct spa_source *source)
continue; continue;
if ((device = find_device(this, id)) == NULL) if ((device = find_device(this, id)) == NULL)
continue; continue;
if (!device->emited) if (!device->emitted)
process_device(this, ACTION_ADD, device->dev); process_device(this, ACTION_ADD, device->dev);
} }
/* /dev/snd/ might have been removed */ /* /dev/snd/ might have been removed */

View file

@ -298,13 +298,13 @@ static bool device_supports_required_mSBC_transport_modes(
hci_close_dev(sock); hci_close_dev(sock);
if (!(features[2] & LMP_TRSP_SCO)) { 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, spa_log_info(backend->log,
NAME": bluetooth host adapter not capable of Transparent SCO LMP_TRSP_SCO" ); NAME": bluetooth host adapter not capable of Transparent SCO LMP_TRSP_SCO" );
return false; return false;
} else if (!(features[3] & LMP_ESCO)) { } 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, spa_log_info(backend->log,
NAME": bluetooth host adapter not capable of eSCO link mode (LMP_ESCO)" ); NAME": bluetooth host adapter not capable of eSCO link mode (LMP_ESCO)" );
return false; return false;
@ -372,9 +372,9 @@ static bool rfcomm_hfp_ag(struct spa_source *source, char* buf)
/* response has the form AT+BAC=<codecID1>,<codecID2>,<codecIDx> /* response has the form AT+BAC=<codecID1>,<codecID2>,<codecIDx>
strategy: split the string into tokens */ strategy: split the string into tokens */
char* token; char* token;
char seperators[] = "=,"; char separators[] = "=,";
int cntr = 0; int cntr = 0;
token = strtok (buf, seperators); token = strtok (buf, separators);
while (token != NULL) while (token != NULL)
{ {
/* skip token 0 i.e. the "AT+BAC=" part */ /* 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 */ /* get next token */
token = strtok (NULL, seperators); token = strtok (NULL, separators);
cntr++; 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) { } else if (sscanf(buf, "AT+BCS=%u", &selected_codec) == 1) {
/* parse BCS(=Bluetooth Codec Selection) reply */ /* parse BCS(=Bluetooth Codec Selection) reply */
if (selected_codec != HFP_AUDIO_CODEC_CVSD && selected_codec != HFP_AUDIO_CODEC_MSBC) { 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"); rfcomm_send_reply(source, "ERROR");
return true; return true;
} }

View file

@ -526,7 +526,7 @@ static int do_start(struct impl *this)
bool do_accept; bool do_accept;
int res; int res;
/* Dont do anything if the node has already started */ /* Don't do anything if the node has already started */
if (this->started) if (this->started)
return 0; return 0;

View file

@ -580,7 +580,7 @@ static int do_start(struct impl *this)
bool do_accept; bool do_accept;
int res; int res;
/* Dont do anything if the node has already started */ /* Don't do anything if the node has already started */
if (this->started) if (this->started)
return 0; return 0;

View file

@ -55,7 +55,7 @@ struct device {
struct udev_device *dev; struct udev_device *dev;
unsigned int accessible:1; unsigned int accessible:1;
unsigned int ignored:1; unsigned int ignored:1;
unsigned int emited:1; unsigned int emitted:1;
}; };
struct impl { 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); info.props = &SPA_DICT_INIT(items, n_items);
spa_device_emit_object_info(&this->hooks, id, &info); spa_device_emit_object_info(&this->hooks, id, &info);
device->emited = true; device->emitted = true;
return 1; return 1;
} }
@ -334,7 +334,7 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
{ {
uint32_t id; uint32_t id;
struct device *device; struct device *device;
bool emited; bool emitted;
if ((id = get_device_id(this, dev)) == SPA_ID_INVALID) if ((id = get_device_id(this, dev)) == SPA_ID_INVALID)
return; return;
@ -357,9 +357,9 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
case ACTION_REMOVE: case ACTION_REMOVE:
if (device == NULL) if (device == NULL)
return; return;
emited = device->emited; emitted = device->emitted;
remove_device(this, device); remove_device(this, device);
if (emited) if (emitted)
spa_device_emit_object_info(&this->hooks, id, NULL); spa_device_emit_object_info(&this->hooks, id, NULL);
break; break;
} }
@ -410,7 +410,7 @@ static void impl_on_notify_events(struct spa_source *source)
continue; continue;
if ((device = find_device(this, id)) == NULL) if ((device = find_device(this, id)) == NULL)
continue; continue;
if (!device->emited) if (!device->emitted)
process_device(this, ACTION_ADD, device->dev); process_device(this, ACTION_ADD, device->dev);
} }
/* /dev/ might have been removed */ /* /dev/ might have been removed */

View file

@ -98,7 +98,7 @@ int pw_manager_sync(struct pw_manager *manager);
void pw_manager_destroy(struct pw_manager *manager); void pw_manager_destroy(struct pw_manager *manager);
int pw_manager_set_metadata(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, uint32_t subject, const char *key, const char *type,
const char *format, ...) SPA_PRINTF_FUNC(6,7); const char *format, ...) SPA_PRINTF_FUNC(6,7);