diff --git a/doxygen/doxygen.conf.in b/doxygen/doxygen.conf.in index 107961abf..091b6f5f8 100644 --- a/doxygen/doxygen.conf.in +++ b/doxygen/doxygen.conf.in @@ -957,7 +957,7 @@ HTML_STYLESHEET = # user-defined cascading style sheet that is included after the standard # style sheets created by doxygen. Using this option one can overrule # certain style aspects. This is preferred over using HTML_STYLESHEET -# since it does not replace the standard style sheet and is therefor more +# since it does not replace the standard style sheet and is therefore more # robust against future updates. Doxygen will copy the style sheet file to # the output directory. diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c index bb9438f79..478873c38 100644 --- a/src/modules/alsa/alsa-ucm.c +++ b/src/modules/alsa/alsa-ucm.c @@ -137,7 +137,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}, diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index d3c092f52..73c21185c 100644 --- a/src/modules/alsa/alsa-util.c +++ b/src/modules/alsa/alsa-util.c @@ -271,7 +271,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; diff --git a/src/modules/bluetooth/a2dp-codec-sbc.c b/src/modules/bluetooth/a2dp-codec-sbc.c index 1306c79f2..63b9e6ca5 100644 --- a/src/modules/bluetooth/a2dp-codec-sbc.c +++ b/src/modules/bluetooth/a2dp-codec-sbc.c @@ -1447,7 +1447,7 @@ const pa_a2dp_endpoint_conf pa_a2dp_endpoint_conf_sbc = { * SBC codec in Dual Channel mode, 8 bands, block length 16, allocation method Loudness, * with bitpool adjusted to match target bitrates. * - * Most commonly choosen bitrates and reasons are: + * Most commonly chosen bitrates and reasons are: * 453000 - this yields most efficient packing of frames on Android for bluetooth EDR 2mbps * 512000 - this looks to be old limit stated in bluetooth documents * 552000 - this yields most efficient packing of frames on Android for bluetooth EDR 3mbps diff --git a/src/modules/bluetooth/backend-native.c b/src/modules/bluetooth/backend-native.c index 829d7bf82..39721a1b3 100644 --- a/src/modules/bluetooth/backend-native.c +++ b/src/modules/bluetooth/backend-native.c @@ -1367,7 +1367,7 @@ pa_bluetooth_backend *pa_bluetooth_native_backend_new(pa_core *c, pa_bluetooth_d backend->upower = pa_upower_backend_new(c, y); - /* All CIND indicators are enabled by default until overriden by AT+BIA */ + /* All CIND indicators are enabled by default until overridden by AT+BIA */ for (i = 1; i < CIND_INDICATOR_MAX; i++) backend->cind_enabled_indicators |= (1 << i); diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 2431b3831..51606d76c 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -2,7 +2,7 @@ This file is part of PulseAudio. Copyright 2008-2013 João Paulo Rechi Vita - Copyrigth 2018-2019 Pali Rohár + Copyright 2018-2019 Pali Rohár PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as diff --git a/src/modules/bluetooth/bluez5-util.h b/src/modules/bluetooth/bluez5-util.h index fff3d573c..36ee5a6de 100644 --- a/src/modules/bluetooth/bluez5-util.h +++ b/src/modules/bluetooth/bluez5-util.h @@ -5,7 +5,7 @@ This file is part of PulseAudio. Copyright 2008-2013 João Paulo Rechi Vita - Copyrigth 2018-2019 Pali Rohár + Copyright 2018-2019 Pali Rohár PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as diff --git a/src/modules/dbus/iface-core.c b/src/modules/dbus/iface-core.c index 5229c0467..a13c1e614 100644 --- a/src/modules/dbus/iface-core.c +++ b/src/modules/dbus/iface-core.c @@ -2047,7 +2047,7 @@ static pa_hook_result_t sink_put_cb(void *hook_data, void *call_data, void *slot pa_assert(c); pa_assert(s); - /* We may have alredy encountered this sink, because if the new sink was + /* We may have already encountered this sink, because if the new sink was * chosen as the default sink, the default sink change hook was fired * first, and we saw the sink in default_sink_changed_cb(). */ if (pa_hashmap_get(c->sinks_by_index, PA_UINT32_TO_PTR(s->index))) @@ -2092,7 +2092,7 @@ static pa_hook_result_t source_put_cb(void *hook_data, void *call_data, void *sl pa_assert(c); pa_assert(s); - /* We may have alredy encountered this source, because if the new source + /* We may have already encountered this source, because if the new source * was chosen as the default source, the default source change hook was * fired first, and we saw the source in default_source_changed_cb(). */ if (pa_hashmap_get(c->sources_by_index, PA_UINT32_TO_PTR(s->index))) diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index fc2ce236a..2a5546b27 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -121,7 +121,7 @@ struct userdata { int64_t next_latency_with_drift; int64_t next_latency_at_optimum_rate_with_drift; - /* Filter varables used for 2nd order filter */ + /* Filter variables used for 2nd order filter */ double drift_filter; double drift_compensation_rate; @@ -945,7 +945,7 @@ static void source_output_moving_cb(pa_source_output *o, pa_source *dest) { u->log_counter = u->log_interval; u->latency_error = 0; - /* Send a mesage to the output thread that the source has changed. + /* Send a message to the output thread that the source has changed. * If the sink is invalid here during a profile switching situation * we can safely set push_called to false directly. */ if (u->sink_input->sink) diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index 7d1a0f80c..305ec1b62 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -1579,7 +1579,7 @@ static void update_preferred_device(struct userdata *u, const char *name, const send_new_entry_signal(de); } else { /* We send a D-Bus signal when the device changes, but not when the - * card changes. That's becaues the D-Bus interface doesn't expose the + * card changes. That's because the D-Bus interface doesn't expose the * card field to clients at all. */ if (!created_new_entry && !pa_safe_streq(entry->device, old->device)) send_device_updated_signal(de, entry); diff --git a/src/modules/module-tunnel-source-new.c b/src/modules/module-tunnel-source-new.c index d75fe9e6b..ba3c5d7fd 100644 --- a/src/modules/module-tunnel-source-new.c +++ b/src/modules/module-tunnel-source-new.c @@ -673,7 +673,7 @@ static int do_init(pa_module *m) { u->msg = pa_msgobject_new(tunnel_msg); u->msg->parent.process_msg = tunnel_process_msg; - /* The rtpoll created here must curently only exist to avoid crashes when + /* The rtpoll created here must currently only exist to avoid crashes when * the module is used together with module-loopback. Because module-loopback * runs pa_asyncmsgq_process_one() from the pop callback, the rtpoll need not * be run. We will do so anyway for potential modules similar to diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c index 7a107c44d..e29ee7b19 100644 --- a/src/modules/module-udev-detect.c +++ b/src/modules/module-udev-detect.c @@ -45,7 +45,7 @@ PA_MODULE_USAGE( "tsched_buffer_size= " "fixed_latency_range= " "ignore_dB= " - "deferred_volume= " + "deferred_volume= " "use_ucm= " "avoid_resampling="); diff --git a/src/modules/raop/module-raop-discover.c b/src/modules/raop/module-raop-discover.c index 2bbf46657..d4e6bedf1 100644 --- a/src/modules/raop/module-raop-discover.c +++ b/src/modules/raop/module-raop-discover.c @@ -225,7 +225,7 @@ static void resolver_cb( else et = pa_xstrdup("none"); } else if (pa_streq(key, "cn")) { - /* Suported audio codecs: + /* Supported audio codecs: * - 0 = PCM, * - 1 = ALAC, * - 2 = AAC, diff --git a/src/modules/raop/raop-sink.c b/src/modules/raop/raop-sink.c index 4f62b29ad..8df541200 100644 --- a/src/modules/raop/raop-sink.c +++ b/src/modules/raop/raop-sink.c @@ -350,7 +350,7 @@ static int sink_set_state_in_io_thread_cb(pa_sink *s, pa_sink_state_t new_state, /* Connecting will trigger a RECORD and start streaming */ pa_raop_client_announce(u->raop); } else if (!pa_raop_client_is_recording(u->raop)) { - /* RECORD alredy sent, simply start streaming */ + /* RECORD already sent, simply start streaming */ pa_raop_client_stream(u->raop); pa_rtpoll_set_timer_absolute(u->rtpoll, now); u->write_count = 0; diff --git a/src/modules/reserve-monitor.h b/src/modules/reserve-monitor.h index 85a7ebb18..5a858a36b 100644 --- a/src/modules/reserve-monitor.h +++ b/src/modules/reserve-monitor.h @@ -45,7 +45,7 @@ typedef void (*rm_change_cb_t)(rm_monitor *m); * DBus error might be set as well if the error was caused D-Bus. */ int rm_watch( rm_monitor **m, /* On success a pointer to the newly allocated rm_device object will be filled in here */ - DBusConnection *connection, /* Session bus (when D-Bus learns about user busses we should switch to user busses) */ + DBusConnection *connection, /* Session bus (when D-Bus learns about user buses we should switch to user buses) */ const char *device_name, /* The device to monitor, e.g. "Audio0" */ rm_change_cb_t change_cb, /* Will be called whenever the lock status changes. May be NULL */ DBusError *error); /* If we fail due to a D-Bus related issue the error will be filled in here. May be NULL. */ diff --git a/src/modules/reserve.h b/src/modules/reserve.h index 6527bd7fa..d3f18bb7d 100644 --- a/src/modules/reserve.h +++ b/src/modules/reserve.h @@ -51,7 +51,7 @@ typedef int (*rd_request_cb_t)( * the error was caused D-Bus. */ int rd_acquire( rd_device **d, /* On success a pointer to the newly allocated rd_device object will be filled in here */ - DBusConnection *connection, /* Session bus (when D-Bus learns about user busses we should switch to user busses) */ + DBusConnection *connection, /* Session bus (when D-Bus learns about user buses we should switch to user buses) */ const char *device_name, /* The device to lock, e.g. "Audio0" */ const char *application_name, /* A human readable name of the application, e.g. "PulseAudio Sound Server" */ int32_t priority, /* The priority for this application. If unsure use 0 */ diff --git a/src/modules/rtp/module-rtp-send.c b/src/modules/rtp/module-rtp-send.c index ce05360d5..5ca94922f 100644 --- a/src/modules/rtp/module-rtp-send.c +++ b/src/modules/rtp/module-rtp-send.c @@ -87,7 +87,7 @@ static const char* const valid_modargs[] = { "format", "channels", "rate", - "destination", /* Compatbility */ + "destination", /* Compatibility */ "destination_ip", "source_ip", "port", diff --git a/src/modules/rtp/rtp-gstreamer.c b/src/modules/rtp/rtp-gstreamer.c index 94ea56971..0b5fef4e5 100644 --- a/src/modules/rtp/rtp-gstreamer.c +++ b/src/modules/rtp/rtp-gstreamer.c @@ -275,7 +275,7 @@ int pa_rtp_send(pa_rtp_context *c, pa_memblockq *q) { return -1; /* - * While we check here for atleast MTU worth of data being available in + * While we check here for at least MTU worth of data being available in * memblockq, we might not have exact equivalent to MTU. Hence, we walk * over the memchunks in memblockq and accumulate MTU bytes next. */ diff --git a/src/pulse/def.h b/src/pulse/def.h index 4097bd89c..7a4a84cc8 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -845,7 +845,7 @@ typedef enum pa_sink_flags { * sinks). */ PA_SINK_DEFERRED_VOLUME = 0x2000000U, - /**< The HW volume changes are syncronized with SW volume. */ + /**< The HW volume changes are synchronized with SW volume. */ /** \endcond */ #endif @@ -964,7 +964,7 @@ typedef enum pa_source_flags { * sources). */ PA_SOURCE_DEFERRED_VOLUME = 0x2000000U, - /**< The HW volume changes are syncronized with SW volume. */ + /**< The HW volume changes are synchronized with SW volume. */ #endif } pa_source_flags_t; diff --git a/src/pulse/format.h b/src/pulse/format.h index 5f97929c2..c18f68c46 100644 --- a/src/pulse/format.h +++ b/src/pulse/format.h @@ -62,7 +62,7 @@ typedef enum pa_encoding { PA_ENCODING_DTSHD_IEC61937, /**< DTS-HD Master Audio encapsulated in IEC 61937 header/padding. \since 13.0 */ - /* Remeber to update + /* Remember to update * https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SupportedAudioFormats/ * when adding new encodings! */ diff --git a/src/pulse/introspect.h b/src/pulse/introspect.h index 2c3c4acf4..67a8d24f6 100644 --- a/src/pulse/introspect.h +++ b/src/pulse/introspect.h @@ -235,7 +235,7 @@ typedef struct pa_sink_port_info { const char *description; /**< Description of this port */ uint32_t priority; /**< The higher this value is, the more useful this port is as a default. */ int available; /**< A flags (see #pa_port_available), indicating availability status of this port. \since 2.0 */ - const char *availability_group; /**< An indentifier for the group of ports that share their availability status with + const char *availability_group; /**< 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 @@ -339,7 +339,7 @@ typedef struct pa_source_port_info { const char *description; /**< Description of this port */ uint32_t priority; /**< The higher this value is, the more useful this port is as a default. */ int available; /**< A flags (see #pa_port_available), indicating availability status of this port. \since 2.0 */ - const char *availability_group; /**< An indentifier for the group of ports that share their availability status with + const char *availability_group; /**< 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 @@ -575,7 +575,7 @@ typedef struct pa_card_port_info { pa_proplist *proplist; /**< Property list */ int64_t latency_offset; /**< Latency offset of the port that gets added to the sink/source latency when the port is active. \since 3.0 */ pa_card_profile_info2** profiles2; /**< Array of pointers to available profiles, or NULL. Array is terminated by an entry set to NULL. \since 5.0 */ - const char *availability_group; /**< An indentifier for the group of ports that share their availability status with + const char *availability_group; /**< 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/src/pulse/sample.h b/src/pulse/sample.h index 65c0c5d6b..7d3caa7b2 100644 --- a/src/pulse/sample.h +++ b/src/pulse/sample.h @@ -171,7 +171,7 @@ typedef enum pa_sample_format { PA_SAMPLE_S24_32BE, /**< Signed 24 Bit PCM in LSB of 32 Bit words, big endian. \since 0.9.15 */ - /* Remeber to update + /* Remember to update * https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SupportedAudioFormats/ * when adding new formats! */ @@ -337,12 +337,12 @@ char* pa_bytes_snprint(char *s, size_t l, unsigned v); /** Returns 1 when the specified format is little endian, 0 when * big endian. Returns -1 when endianness does not apply to the - * specified format, or endianess is unknown. \since 0.9.16 */ + * specified format, or endianness is unknown. \since 0.9.16 */ int pa_sample_format_is_le(pa_sample_format_t f) PA_GCC_PURE; /** Returns 1 when the specified format is big endian, 0 when * little endian. Returns -1 when endianness does not apply to the - * specified format, or endianess is unknown. \since 0.9.16 */ + * specified format, or endianness is unknown. \since 0.9.16 */ int pa_sample_format_is_be(pa_sample_format_t f) PA_GCC_PURE; #ifdef WORDS_BIGENDIAN @@ -351,11 +351,11 @@ int pa_sample_format_is_be(pa_sample_format_t f) PA_GCC_PURE; #else /** Returns 1 when the specified format is native endian, 0 when * not. Returns -1 when endianness does not apply to the - * specified format, or endianess is unknown. \since 0.9.16 */ + * specified format, or endianness is unknown. \since 0.9.16 */ #define pa_sample_format_is_ne(f) pa_sample_format_is_le(f) /** Returns 1 when the specified format is reverse endian, 0 when * native. Returns -1 when endianness does not apply to the - * specified format, or endianess is unknown. \since 0.9.16 */ + * specified format, or endianness is unknown. \since 0.9.16 */ #define pa_sample_format_is_re(f) pa_sample_format_is_be(f) #endif diff --git a/src/pulse/stream.h b/src/pulse/stream.h index f9b52d413..6a2aa2586 100644 --- a/src/pulse/stream.h +++ b/src/pulse/stream.h @@ -161,7 +161,7 @@ * \li pa_stream_cork() - Start or stop the playback or recording. * \li pa_stream_trigger() - Start playback immediately and do not wait for * the buffer to fill up to the set trigger level. - * \li pa_stream_prebuf() - Reenable the playback trigger level. + * \li pa_stream_prebuf() - Re-enable the playback trigger level. * \li pa_stream_drain() - Wait for the playback buffer to go empty. Will * return a pa_operation object that will indicate when * the buffer is completely drained. @@ -664,7 +664,7 @@ pa_operation* pa_stream_cork(pa_stream *s, int b, pa_stream_success_cb_t cb, voi * \a seek of pa_stream_write() instead of this function. */ pa_operation* pa_stream_flush(pa_stream *s, pa_stream_success_cb_t cb, void *userdata); -/** Reenable prebuffering if specified in the pa_buffer_attr +/** Re-enable prebuffering if specified in the pa_buffer_attr * structure. Available for playback streams only. */ pa_operation* pa_stream_prebuf(pa_stream *s, pa_stream_success_cb_t cb, void *userdata); diff --git a/src/pulse/volume.h b/src/pulse/volume.h index d9b0986bd..a11bf634b 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -220,7 +220,7 @@ char *pa_sw_volume_snprint_dB(char *s, size_t l, pa_volume_t v); /** Maximum length of the strings returned by pa_volume_snprint_verbose(). * Please note that this value can change with any release without warning and - * withou being considered API or ABI breakage. You should not use this + * without being considered API or ABI breakage. You should not use this * definition anywhere where it might become part of an ABI. \since 5.0 */ #define PA_VOLUME_SNPRINT_VERBOSE_MAX 35 diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 5d2bae92f..db043a29d 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -367,7 +367,7 @@ fail: return -1; } -/* Return a newly allocated sting containing the parent directory of the specified file */ +/* Return a newly allocated string containing the parent directory of the specified file */ char *pa_parent_dir(const char *fn) { char *slash, *dir = pa_xstrdup(fn); @@ -2085,7 +2085,7 @@ char *pa_find_config_file(const char *global, const char *local, const char *env return NULL; } -/* Format the specified data as a hexademical string */ +/* Format the specified data as a hexadecimal string */ char *pa_hexstr(const uint8_t* d, size_t dlength, char *s, size_t slength) { size_t i = 0, j = 0; const char hex[] = "0123456789abcdef"; @@ -2317,7 +2317,7 @@ static int prepare_number_string(const char *s, enum numtype type, char **tmp, c /* The strtoul and strtoull functions allow a minus sign even though they * parse an unsigned number. In case of a minus sign the original negative - * number gets negated. We don't want that kind of behviour. */ + * number gets negated. We don't want that kind of behaviour. */ if (type == NUMTYPE_UINT && s[0] == '-') return -1; diff --git a/src/pulsecore/device-port.h b/src/pulsecore/device-port.h index 7178ff2ae..88401c349 100644 --- a/src/pulsecore/device-port.h +++ b/src/pulsecore/device-port.h @@ -47,7 +47,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_proplist *proplist; pa_hashmap *profiles; /* Does not own the profiles */ diff --git a/src/pulsecore/g711.c b/src/pulsecore/g711.c index aa2d703a8..8a2c7aca5 100644 --- a/src/pulsecore/g711.c +++ b/src/pulsecore/g711.c @@ -4,7 +4,7 @@ * charge. * * SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING - * THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR + * THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. * * Sun source code is provided with no support and without any obligation on diff --git a/src/pulsecore/random.c b/src/pulsecore/random.c index 508a6f8d2..545664e56 100644 --- a/src/pulsecore/random.c +++ b/src/pulsecore/random.c @@ -120,7 +120,7 @@ void pa_random(void *ret_data, size_t length) { return; if (!has_whined) { - pa_log_warn("Failed to get proper entropy. Falling back to unsecure pseudo RNG."); + pa_log_warn("Failed to get proper entropy. Falling back to insecure pseudo RNG."); has_whined = true; } diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index ba18c92c4..11f2f1cec 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -562,7 +562,7 @@ size_t pa_resampler_result(pa_resampler *r, size_t in_length) { if (!r) return in_length; - /* Convert to intput frames */ + /* Convert to input frames */ in_length = in_length / r->i_fz; /* soxr processes samples in blocks, depending on the ratio. diff --git a/src/tests/lo-test-util.c b/src/tests/lo-test-util.c index 40002a2c4..b7b309cba 100644 --- a/src/tests/lo-test-util.c +++ b/src/tests/lo-test-util.c @@ -42,7 +42,7 @@ static void underflow_cb(struct pa_stream *s, void *userdata) { } static void overflow_cb(struct pa_stream *s, void *userdata) { - pa_log_warn("Overlow"); + pa_log_warn("Overflow"); } /*