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

@ -71,7 +71,7 @@ struct spa_meta {
* timestamps.
*/
struct spa_meta_header {
#define SPA_META_HEADER_FLAG_DISCONT (1 << 0) /**< data is not continous with previous buffer */
#define SPA_META_HEADER_FLAG_DISCONT (1 << 0) /**< data is not continuous with previous buffer */
#define SPA_META_HEADER_FLAG_CORRUPTED (1 << 1) /**< data might be corrupted */
#define SPA_META_HEADER_FLAG_MARKER (1 << 2) /**< media specific marker */
#define SPA_META_HEADER_FLAG_HEADER (1 << 3) /**< data contains a codec specific header */
@ -105,7 +105,7 @@ struct spa_meta_region {
*
* This metadata contains a bitmap image in the given format and size.
* It is typically used for cursor images or other small images that are
* better transfered inline.
* better transferred inline.
*/
struct spa_meta_bitmap {
uint32_t format; /**< bitmap video format, one of enum spa_video_format. 0 is

View file

@ -107,7 +107,7 @@ struct spa_result_device_params {
/**
* spa_device_events:
*
* Events are always emited from the main thread
* Events are always emitted from the main thread
*/
struct spa_device_events {
/** version of the structure */
@ -194,7 +194,7 @@ struct spa_device_methods {
* This function must be called from the main thread.
*
* \param device a \ref spa_device
* \param seq a sequence numeber to pass to the result function
* \param seq a sequence number to pass to the result function
* \param id the param id to enumerate
* \param index the index of enumeration, pass 0 for the first item.
* \param max the maximum number of items to iterate
@ -255,7 +255,7 @@ struct spa_device_methods {
#define SPA_KEY_DEVICE_API "device.api" /**< the api used by the device
* Ex. "udev", "alsa", "v4l2". */
#define SPA_KEY_DEVICE_NAME "device.name" /**< the name of the device */
#define SPA_KEY_DEVICE_ALIAS "device.alias" /**< altenative name of the device */
#define SPA_KEY_DEVICE_ALIAS "device.alias" /**< alternative name of the device */
#define SPA_KEY_DEVICE_NICK "device.nick" /**< the device short name */
#define SPA_KEY_DEVICE_DESCRIPTION "device.description" /**< a device description */
#define SPA_KEY_DEVICE_ICON "device.icon" /**< icon for the device. A base64 blob

View file

@ -74,7 +74,7 @@ enum spa_io_type {
* the buffer in buffer_id and set the state to
* SPA_STATUS_NEED_DATA when new data is requested.
*
* If status is SPA_STATUS_STOPPED, some error occured on the
* If status is SPA_STATUS_STOPPED, some error occurred on the
* port.
*
* If status is SPA_STATUS_DRAINED, data from the io area was
@ -137,7 +137,7 @@ struct spa_io_clock {
int64_t delay; /**< delay between position and hardware,
* positive for capture, negative for playback */
double rate_diff; /**< rate difference between clock and monotonic time */
uint64_t next_nsec; /**< extimated next wakup time in nanoseconds */
uint64_t next_nsec; /**< extimated next wakeup time in nanoseconds */
uint32_t padding[8];
};
@ -235,7 +235,7 @@ struct spa_io_segment {
* backwards time reporting. */
uint64_t position; /**< The position when the running time == start.
* can be invalid when the owner of the extra segment
* infomation has not yet made the mapping. */
* information has not yet made the mapping. */
struct spa_io_segment_bar bar;
struct spa_io_segment_video video;

View file

@ -146,10 +146,10 @@ struct spa_node_events {
#define SPA_VERSION_NODE_EVENTS 0
uint32_t version; /**< version of this structure */
/** Emited when info changes */
/** Emitted when info changes */
void (*info) (void *data, const struct spa_node_info *info);
/** Emited when port info changes, NULL when port is removed */
/** Emitted when port info changes, NULL when port is removed */
void (*port_info) (void *data,
enum spa_direction direction, uint32_t port,
const struct spa_port_info *info);
@ -175,7 +175,7 @@ struct spa_node_events {
/**
* \param node a spa_node
* \param event the event that was emited
* \param event the event that was emitted
*
* This will be called when an out-of-bound event is notified
* on \a node.
@ -335,7 +335,7 @@ struct spa_node_methods {
* The function will emit the result event up to \a max times with
* the result value. The seq in the result will either be the \a seq
* number when executed synchronously or the async return value of
* this function when executed asynchrnously.
* this function when executed asynchronously.
*
* This function must be called from the main thread.
*
@ -353,7 +353,7 @@ struct spa_node_methods {
* -ENOTSUP when there are no parameters
* implemented on \a node
* an async return value when the result event will be
* emited later.
* emitted later.
*/
int (*enum_params) (void *object, int seq,
uint32_t id, uint32_t start, uint32_t max,
@ -482,7 +482,7 @@ struct spa_node_methods {
* -EINVAL when invalid parameters are given
* -ENOENT when \a id is unknown
* an async return value when the result event will be
* emited later.
* emitted later.
*/
int (*port_enum_params) (void *object, int seq,
enum spa_direction direction, uint32_t port_id,

View file

@ -46,7 +46,7 @@ struct spa_dbus_connection {
#define SPA_VERSION_DBUS_CONNECTION 0
uint32_t version;
/**
* Get the DBusConnection from a wraper
* Get the DBusConnection from a wrapper
*
* \param conn the spa_dbus_connection wrapper
* \return a pointer of type DBusConnection

View file

@ -153,7 +153,7 @@ struct spa_loop_control_methods {
/** Enter a loop
* \param ctrl the control
*
* Start an interation of the loop. This function should be called
* Start an iteration of the loop. This function should be called
* before calling iterate and is typically used to capture the thread
* that this loop will run in.
*/
@ -169,7 +169,7 @@ struct spa_loop_control_methods {
/** Perform one iteration of the loop.
* \param ctrl the control
* \param timeout an optional timeout in milliseconds.
* 0 for no timeout, -1 for infinte timeout.
* 0 for no timeout, -1 for infinite timeout.
*
* This function will block
* up to \a timeout milliseconds and then dispatch the fds with activity.

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