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

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_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

View file

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

View file

@ -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 */