Run codespell on the entire codebase

This tool detects and fixes common English spelling mistakes, with
generally very few mistakes.

Here is the command I used to generate this commit.  There were a few
changes that had to be done manually, and of course adding the ignore
file:
```shell
codespell -I .codespell-ignore -x .codespell-ignore -w
```

I didn’t add it to the CI, but this would be a good place for it.
This commit is contained in:
Emmanuel Gil Peyrot 2020-07-22 20:54:06 +02:00 committed by Wim Taymans
parent 688a1ab082
commit 14fdf07e8f
56 changed files with 152 additions and 141 deletions

View file

@ -145,7 +145,7 @@ struct acp_port {
uint32_t priority;
enum acp_direction direction;
enum acp_available available;
char *available_group; /* a string indentifier which determine the group of devices
char *available_group; /* a string identifier which determine the group of devices
* handling the available state simultaneously */
enum acp_port_type type;

View file

@ -123,7 +123,7 @@ static struct ucm_items item[] = {
{NULL, NULL},
};
/* UCM verb info - this should eventually be part of policy manangement */
/* UCM verb info - this should eventually be part of policy management */
static struct ucm_info verb_info[] = {
{SND_USE_CASE_VERB_INACTIVE, 0},
{SND_USE_CASE_VERB_HIFI, 8000},
@ -676,7 +676,7 @@ static char *modifier_name_to_role(const char *mod_name, bool *is_sink) {
if (!sub || !*sub) {
pa_xfree(sub);
pa_log_warn("Can't match media roles for modifer %s", mod_name);
pa_log_warn("Can't match media roles for modifier %s", mod_name);
return NULL;
}

View file

@ -254,7 +254,7 @@ int pa_alsa_set_hw_params(
(id = snd_pcm_info_get_id(pcm_info))) {
/* This horrible hack makes sure we don't disable tsched on USB
* devices, which have a low enough transfer size for timer-based
* scheduling to work. This can go away when the ALSA API supprots
* scheduling to work. This can go away when the ALSA API supports
* querying the block transfer size. */
if (pa_streq(id, "USB Audio"))
is_usb = true;

View file

@ -255,7 +255,7 @@ static DBusHandlerResult ofono_audio_card_found(struct spa_bt_backend *backend,
d = spa_bt_device_find_by_address(backend->monitor, remote_address, local_address);
if (!d) {
spa_log_error(backend->log, "Device doesnt exist for %s", path);
spa_log_error(backend->log, "Device doesnt exist for %s", path);
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}