From 47ef2b6b09a313b01869fd871c06649080fc8854 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Wed, 28 Apr 2021 20:29:44 +0200 Subject: [PATCH] Fix typos --- NEWS | 12 ++++++------ README.md | 2 +- doc/Doxyfile.in | 4 ++-- doc/architecture.md | 2 +- doc/spa/pod.md | 2 +- doc/tutorial4.md | 2 +- pipewire-jack/jack/jack.h | 4 ++-- pipewire-jack/jack/metadata.h | 2 +- pipewire-jack/jack/midiport.h | 4 ++-- pipewire-jack/jack/net.h | 2 +- pipewire-jack/jack/session.h | 2 +- pipewire-jack/jack/weakjack.h | 2 +- spa/include/spa/node/io.h | 4 ++-- spa/include/spa/node/node.h | 2 +- spa/include/spa/param/video/chroma.h | 4 ++-- spa/include/spa/param/video/multiview.h | 2 +- spa/plugins/alsa/acp/acp.c | 2 +- spa/plugins/alsa/acp/device-port.h | 2 +- spa/plugins/alsa/acp/hashmap.h | 2 +- spa/plugins/audioconvert/channelmix-ops.c | 4 ++-- spa/plugins/bluez5/a2dp-source.c | 2 +- spa/plugins/bluez5/backend-native.c | 2 +- spa/plugins/bluez5/bluez5-dbus.c | 10 +++++----- spa/plugins/bluez5/bluez5-device.c | 4 ++-- spa/plugins/bluez5/defs.h | 2 +- spa/plugins/bluez5/sco-sink.c | 4 ++-- spa/plugins/bluez5/sco-source.c | 4 ++-- spa/tools/spa-json-dump.c | 2 +- src/examples/media-session/default-routes.c | 2 +- src/examples/media-session/media-session.c | 2 +- src/modules/module-protocol-pulse/format.c | 2 +- src/pipewire/filter.h | 2 +- src/pipewire/impl-client.h | 2 +- src/pipewire/impl-module.h | 2 +- src/pipewire/private.h | 2 +- 35 files changed, 53 insertions(+), 53 deletions(-) diff --git a/NEWS b/NEWS index 83addcd5f..f73318cb4 100644 --- a/NEWS +++ b/NEWS @@ -68,7 +68,7 @@ with previous 0.3.x releases. default. - JACK - - JACK developement files can now optionally be installed. + - JACK development files can now optionally be installed. Older versions: @@ -86,7 +86,7 @@ with previous 0.3.x releases. - volume restore for virtual sinks/sources or other sink/sources without hardware volume. - Fix cracks and pops in audio capture. - - Many bluetooth improvements and compatibity fixes. + - Many bluetooth improvements and compatibility fixes. - PipeWire improvements @@ -871,7 +871,7 @@ with previous 0.3.x releases. - Don't ever block the server, use non-blocking IO everywhere. - Fill description of profiles with the name if not otherwise set, this fixes a crash in pavucontrol. - - the connection debug catergory will now also debug pulse + - the connection debug category will now also debug pulse messages. - Respect the no_remix flag to make the control panel channel check work. @@ -1159,7 +1159,7 @@ with previous 0.3.x releases. * improve default source and sink handling. It was not updated correctly in all cases. * add samplerate and period to the pw-jack wrapper to easily - configure the desired samplerate and perdiod for the app. + configure the desired samplerate and period for the app. - ALSA plugin improvements * Add a mixer entry in the alsa config file. @@ -1750,7 +1750,7 @@ PipeWire 0.2.6 - Permissions of objects are now combined with parent permissions - Remove libv4l2 dependency, it is not used - Improve format negotiation in autolink #146 -- Try to avoid list corruption with event emmission #143 +- Try to avoid list corruption with event emission #143 - Fix destroy of client-node memory corruption - Various small improvements @@ -1769,7 +1769,7 @@ PipeWire 0.2.4 - Install man pages in right directory - Add systemd socket activation - Various memory leak and corruption fixes in properties, dbus and - buffer mmaped memory. + buffer mmapped memory. - Fix v4l2 crash on unplug - improve stream cleanup diff --git a/README.md b/README.md index 4f22b29d9..25a40bb90 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ $ pw-jack If you replaced JACK with PipeWire completely, `pw-jack` does not have any effect and can be omitted. -JACK applications will automatically use the buffer-size choosen by the +JACK applications will automatically use the buffer-size chosen by the server. You can force a maximum buffer size (latency) by setting the `PIPEWIRE_LATENCY` environment variable like so: diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index dceb922dc..718ddf827 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -675,7 +675,7 @@ SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the +# popen()) the command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. @@ -1443,7 +1443,7 @@ EXT_LINKS_IN_WINDOW = NO FORMULA_FONTSIZE = 10 -# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# Use the FORMULA_TRANSPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # diff --git a/doc/architecture.md b/doc/architecture.md index 4b9acdb1d..c8d6d5795 100644 --- a/doc/architecture.md +++ b/doc/architecture.md @@ -208,7 +208,7 @@ Clients with MODIFY permissions on another object can set or remove metadata on that object. Clients that need permissions assigned to them can be started in -blocked mode and resume when perrmissions are assigned to them by +blocked mode and resume when permissions are assigned to them by a session manager or portal, for example. PipeWire uses memfd (`memfd_create(2)`) or DMA-BUF for sharing media diff --git a/doc/spa/pod.md b/doc/spa/pod.md index 56571437f..9184d412f 100644 --- a/doc/spa/pod.md +++ b/doc/spa/pod.md @@ -468,7 +468,7 @@ default: Given 2 pod objects of the same type (Object, Struct, ..) one can run a filter and generate a new pod that only contains values that -are compatibe with both input pods. +are compatible with both input pods. This is, for example, used to find a compatible format between two ports. diff --git a/doc/tutorial4.md b/doc/tutorial4.md index ec8ef0b22..eb08a17ec 100644 --- a/doc/tutorial4.md +++ b/doc/tutorial4.md @@ -226,7 +226,7 @@ Now we're ready to connect the stream and run the main loop: ``` To connect we specify that we have a `PW_DIRECTION_OUTPUT` stream. `PW_ID_ANY` -means that we are ok with conneting to any consumer. Next we set some flags: +means that we are ok with connecting to any consumer. Next we set some flags: * `PW_STREAM_FLAG_AUTOCONNECT` automatically connect this stream. This instructs the session manager to link us to some consumer. diff --git a/pipewire-jack/jack/jack.h b/pipewire-jack/jack/jack.h index cd7e2e956..afc56fbdb 100644 --- a/pipewire-jack/jack/jack.h +++ b/pipewire-jack/jack/jack.h @@ -417,7 +417,7 @@ int jack_set_freewheel_callback (jack_client_t *client, void *arg) JACK_OPTIONAL_WEAK_EXPORT; /** - * Tell JACK to call @a bufsize_callback whenever the size of the the + * Tell JACK to call @a bufsize_callback whenever the size of the * buffer that will be passed to the @a process_callback is about to * change. Clients that depend on knowing the buffer size must supply * a @a bufsize_callback before activating themselves. @@ -606,7 +606,7 @@ int jack_set_xrun_callback (jack_client_t *client, * register a latency callback. * * Another case is when a client wants to use - * @ref jack_port_get_latency_range(), which only returns meaninful + * @ref jack_port_get_latency_range(), which only returns meaningful * values when ports get connected and latency values change. * * See the documentation for @ref jack_port_set_latency_range() diff --git a/pipewire-jack/jack/metadata.h b/pipewire-jack/jack/metadata.h index 891dbd627..75a410540 100644 --- a/pipewire-jack/jack/metadata.h +++ b/pipewire-jack/jack/metadata.h @@ -305,7 +305,7 @@ extern const char* JACK_METADATA_PORT_GROUP; * * This property allows audio ports to be tagged with a "meaning". The value * is a simple string. Currently, the only type is "CV", for "control voltage" - * ports. Hosts SHOULD be take care to not treat CV ports as audibile and send + * ports. Hosts SHOULD be take care to not treat CV ports as audible and send * their output directly to speakers. In particular, CV ports are not * necessarily periodic at all and may have very high DC. */ diff --git a/pipewire-jack/jack/midiport.h b/pipewire-jack/jack/midiport.h index 3fbf21264..0ae5e7923 100644 --- a/pipewire-jack/jack/midiport.h +++ b/pipewire-jack/jack/midiport.h @@ -61,11 +61,11 @@ jack_midi_get_event_count(void* port_buffer) JACK_OPTIONAL_WEAK_EXPORT; * * Jack MIDI is normalised, the MIDI event returned by this function is * guaranteed to be a complete MIDI event (the status byte will always be - * present, and no realtime events will interspered with the event). + * present, and no realtime events will interspersed with the event). * * This rule does not apply to System Exclusive MIDI messages * since they can be of arbitrary length. - * To maintain smooth realtime operation such events CAN be deliverd + * To maintain smooth realtime operation such events CAN be delivered * as multiple, non-normalised events. * The maximum size of one event "chunk" depends on the MIDI backend in use. * For example the midiseq driver will create chunks of 256 bytes. diff --git a/pipewire-jack/jack/net.h b/pipewire-jack/jack/net.h index 86db823f4..3f214be08 100644 --- a/pipewire-jack/jack/net.h +++ b/pipewire-jack/jack/net.h @@ -235,7 +235,7 @@ int jack_set_net_slave_shutdown_callback(jack_net_slave_t *net, JackNetSlaveShut /** * Prototype for server Restart callback : this is the new preferable way to be notified when the master has disappeared. * The client may want to retry connecting a certain number of time (which will be done using the time_out value given in jack_net_slave_open) - * by returning 0. Otherwise returning a non-zero error code will definively close the connection + * by returning 0. Otherwise returning a non-zero error code will definitively close the connection * (and jack_net_slave_is_active will later on return false). * If both Shutdown and Restart are supplied, Restart callback will be used. * diff --git a/pipewire-jack/jack/session.h b/pipewire-jack/jack/session.h index 514209a7c..1198a09aa 100644 --- a/pipewire-jack/jack/session.h +++ b/pipewire-jack/jack/session.h @@ -156,7 +156,7 @@ typedef struct _jack_session_event jack_session_event_t; * whenever a session notification is sent via jack_session_notify(). * * Ownership of the memory of @a event is passed to the application. - * It must be freed using jack_session_event_free when its not used anymore. + * It must be freed using jack_session_event_free when it's not used anymore. * * The client must promptly call jack_session_reply for this event. * diff --git a/pipewire-jack/jack/weakjack.h b/pipewire-jack/jack/weakjack.h index d68843c5a..c253c6387 100644 --- a/pipewire-jack/jack/weakjack.h +++ b/pipewire-jack/jack/weakjack.h @@ -63,7 +63,7 @@ * which means that their absence doesn't cause an error during program * startup. Instead, Jill can test whether or not the symbol jack_set_latency_callback * is null or not. If its null, it means that the JACK installed on this machine - * is too old to support this function. If its not null, then Jill can use it + * is too old to support this function. If it's not null, then Jill can use it * just like any other function in the API. For example: * * \code diff --git a/spa/include/spa/node/io.h b/spa/include/spa/node/io.h index 8ea6937de..2f2a084d8 100644 --- a/spa/include/spa/node/io.h +++ b/spa/include/spa/node/io.h @@ -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 wakeup time in nanoseconds */ + uint64_t next_nsec; /**< estimated next wakeup time in nanoseconds */ uint32_t padding[8]; }; @@ -231,7 +231,7 @@ struct spa_io_segment { * segment extends to the next segment. If the * segment becomes invalid and the looping flag is * set, the segment repeats. */ - double rate; /**< overal rate of the segment, can be negative for + double rate; /**< overall rate of the segment, can be negative for * backwards time reporting. */ uint64_t position; /**< The position when the running time == start. * can be invalid when the owner of the extra segment diff --git a/spa/include/spa/node/node.h b/spa/include/spa/node/node.h index d7149905a..930bc78cd 100644 --- a/spa/include/spa/node/node.h +++ b/spa/include/spa/node/node.h @@ -68,7 +68,7 @@ struct spa_node_info { #define SPA_NODE_FLAG_NEED_CONFIGURE (1u<<5) /**< node needs configuration before it can * be started. */ #define SPA_NODE_FLAG_ASYNC (1u<<6) /**< the process function might not - * immediateley produce or consume data + * immediately produce or consume data * but might offload the work to a worker * thread. */ uint64_t flags; diff --git a/spa/include/spa/param/video/chroma.h b/spa/include/spa/param/video/chroma.h index 02eed57ad..36268d2c0 100644 --- a/spa/include/spa/param/video/chroma.h +++ b/spa/include/spa/param/video/chroma.h @@ -29,12 +29,12 @@ extern "C" { #endif -/** Various Chroma sitings. +/** Various Chroma settings. * @SPA_VIDEO_CHROMA_SITE_UNKNOWN: unknown cositing * @SPA_VIDEO_CHROMA_SITE_NONE: no cositing * @SPA_VIDEO_CHROMA_SITE_H_COSITED: chroma is horizontally cosited * @SPA_VIDEO_CHROMA_SITE_V_COSITED: chroma is vertically cosited - * @SPA_VIDEO_CHROMA_SITE_ALT_LINE: choma samples are sited on alternate lines + * @SPA_VIDEO_CHROMA_SITE_ALT_LINE: chroma samples are sited on alternate lines * @SPA_VIDEO_CHROMA_SITE_COSITED: chroma samples cosited with luma samples * @SPA_VIDEO_CHROMA_SITE_JPEG: jpeg style cositing, also for mpeg1 and mjpeg * @SPA_VIDEO_CHROMA_SITE_MPEG2: mpeg2 style cositing diff --git a/spa/include/spa/param/video/multiview.h b/spa/include/spa/param/video/multiview.h index 97b24ba55..e797271ac 100644 --- a/spa/include/spa/param/video/multiview.h +++ b/spa/include/spa/param/video/multiview.h @@ -84,7 +84,7 @@ enum spa_video_multiview_mode { /* Padding for new frame packing modes */ SPA_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME = 32, - /* Multivew mode(s) */ + /* Multiview mode(s) */ SPA_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME, SPA_VIDEO_MULTIVIEW_MODE_SEPARATED /* future expansion for annotated modes */ diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index bf84a2ed6..0dab74d3e 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -549,7 +549,7 @@ static pa_available_t calc_port_state(pa_device_port *p, pa_card *impl) break; } - /* If the current availablility is unknown go the more precise no, + /* If the current availability is unknown go the more precise no, * but otherwise don't change state */ if (pa == PA_AVAILABLE_UNKNOWN) pa = cpa; diff --git a/spa/plugins/alsa/acp/device-port.h b/spa/plugins/alsa/acp/device-port.h index 3855ad306..d6bdc2297 100644 --- a/spa/plugins/alsa/acp/device-port.h +++ b/spa/plugins/alsa/acp/device-port.h @@ -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 identifier 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 simultaneously */ pa_direction_t direction; int64_t latency_offset; diff --git a/spa/plugins/alsa/acp/hashmap.h b/spa/plugins/alsa/acp/hashmap.h index d35d304ae..d8dbadbba 100644 --- a/spa/plugins/alsa/acp/hashmap.h +++ b/spa/plugins/alsa/acp/hashmap.h @@ -206,7 +206,7 @@ static inline void pa_hashmap_sort(pa_hashmap *h, for ((state) = NULL, (e) = pa_hashmap_iterate((h), &(state), NULL); \ (e); (e) = pa_hashmap_iterate((h), &(state), NULL)) -/* A macro to ease itration through all key, value pairs */ +/* A macro to ease iteration through all key, value pairs */ #define PA_HASHMAP_FOREACH_KV(k, e, h, state) \ for ((state) = NULL, (e) = pa_hashmap_iterate((h), &(state), (const void **) &(k)); \ (e); (e) = pa_hashmap_iterate((h), &(state), (const void **) &(k))) diff --git a/spa/plugins/audioconvert/channelmix-ops.c b/spa/plugins/audioconvert/channelmix-ops.c index 01cc06816..ea625c6e1 100644 --- a/spa/plugins/audioconvert/channelmix-ops.c +++ b/spa/plugins/audioconvert/channelmix-ops.c @@ -155,7 +155,7 @@ static int make_matrix(struct channelmix *mix) spa_log_debug(mix->log, "src-mask:%08"PRIx64" dst-mask:%08"PRIx64, src_mask, dst_mask); - /* move the MONO mask to FC so that the lower bits can be shifed + /* move the MONO mask to FC so that the lower bits can be shifted * away. */ if ((src_mask & (1Ull << SPA_AUDIO_CHANNEL_MONO)) != 0) src_mask |= (1ULL << SPA_AUDIO_CHANNEL_FC); @@ -179,7 +179,7 @@ static int make_matrix(struct channelmix *mix) matrix[0][i]= 1.0f / mix->src_chan; } else { /* just pair channels */ - spa_log_debug(mix->log, "paring channels"); + spa_log_debug(mix->log, "pairing channels"); for (i = 0; i < SPA_AUDIO_MAX_CHANNELS; i++) matrix[i][i]= 1.0f; } diff --git a/spa/plugins/bluez5/a2dp-source.c b/spa/plugins/bluez5/a2dp-source.c index d3e41a503..30107c76c 100644 --- a/spa/plugins/bluez5/a2dp-source.c +++ b/spa/plugins/bluez5/a2dp-source.c @@ -373,7 +373,7 @@ again: if (errno == EINTR) goto again; - /* return socked has no data */ + /* return socket has no data */ if (errno == EAGAIN || errno == EWOULDBLOCK) return 0; diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index c546c2af2..d5c3ba3dc 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -705,7 +705,7 @@ static bool rfcomm_hfp_hf(struct spa_source *source, char* buf) selected_codec = atoi(token); 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); } else { spa_log_debug(backend->log, NAME": RFCOMM selected_codec = %i", selected_codec); diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index 68f8eda30..3b633d0e9 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -268,7 +268,7 @@ static void battery_update(struct spa_bt_device *device) dbus_message_unref(msg); } -// Create ney virtual battery with value stored in current device object +// Create new virtual battery with value stored in current device object static void battery_create(struct spa_bt_device *device) { DBusMessage *msg; DBusMessageIter iter, entry, dict; @@ -1043,8 +1043,8 @@ int spa_bt_device_check_profiles(struct spa_bt_device *device, bool force) device_stop_timer(device); device_connected(monitor, device, BT_DEVICE_CONNECTED); } else { - /* The initial reconnect event has not been triggred, - * the connecting is triggred by bluez. */ + /* The initial reconnect event has not been triggered, + * the connecting is triggered by bluez. */ if (device->reconnect_state == BT_DEVICE_RECONNECT_INIT) device->reconnect_state = BT_DEVICE_RECONNECT_PROFILE; device_start_timer(device); @@ -2390,7 +2390,7 @@ int spa_bt_device_ensure_a2dp_codec(struct spa_bt_device *device, const struct a /* Check if we already have an enabled transport for the most preferred codec. * However, if there already was a codec switch running, these transports may - * disapper soon. In that case, we have to do the full thing. + * disappear soon. In that case, we have to do the full thing. */ if (spa_list_is_empty(&device->codec_switch_list) && preferred_codec != NULL) { spa_list_for_each(t, &device->transport_list, device_link) { @@ -3916,7 +3916,7 @@ const struct spa_handle_factory spa_bluez5_dbus_factory = { impl_enum_interface_info, }; -// Report battery percentage to BlueZ using experimental (BlueZ 5.56) Battery Provider API. No-op if no changes occured. +// Report battery percentage to BlueZ using experimental (BlueZ 5.56) Battery Provider API. No-op if no changes occurred. int spa_bt_device_report_battery_level(struct spa_bt_device *device, uint8_t percentage) { if (percentage == SPA_BT_NO_BATTERY) { diff --git a/spa/plugins/bluez5/bluez5-device.c b/spa/plugins/bluez5/bluez5-device.c index e67da5521..c4a932d4c 100644 --- a/spa/plugins/bluez5/bluez5-device.c +++ b/spa/plugins/bluez5/bluez5-device.c @@ -316,8 +316,8 @@ static void volume_changed(void *userdata) impl->params[IDX_Route].flags ^= SPA_PARAM_INFO_SERIAL; emit_info(impl, false); - /* It sometimes flips volume to over 100% in pavucontrol silder - * if volume is emited before route info emitting while node + /* It sometimes flips volume to over 100% in pavucontrol slider + * if volume is emitted before route info emitting while node * volumes are not identical to route volumes. Not sure why. */ emit_volume(impl, node); } diff --git a/spa/plugins/bluez5/defs.h b/spa/plugins/bluez5/defs.h index 5bc5adbe7..908fc593c 100644 --- a/spa/plugins/bluez5/defs.h +++ b/spa/plugins/bluez5/defs.h @@ -424,7 +424,7 @@ struct spa_bt_device { int has_battery; uint32_t hw_volume_profiles; - /* Even tought A2DP volume is exposed on transport interface, the + /* Even though A2DP volume is exposed on transport interface, the * volume activation info would not be variate between transports * under same device. So it's safe to cache activation info here. */ bool a2dp_volume_active[2]; diff --git a/spa/plugins/bluez5/sco-sink.c b/spa/plugins/bluez5/sco-sink.c index 57f3537e3..e4b1b93e7 100644 --- a/spa/plugins/bluez5/sco-sink.c +++ b/spa/plugins/bluez5/sco-sink.c @@ -529,14 +529,14 @@ static int do_start(struct impl *this) /* Do accept if Gateway; otherwise do connect for Head Unit */ do_accept = this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY; - /* acquire the socked fd (false -> connect | true -> accept) */ + /* acquire the socket fd (false -> connect | true -> accept) */ if ((res = spa_bt_transport_acquire(this->transport, do_accept)) < 0) return res; /* Init mSBC if needed */ if (this->transport->codec == HFP_AUDIO_CODEC_MSBC) { sbc_init_msbc(&this->msbc, 0); - /* Libsbc expects audio samples by default in host endianity, mSBC requires little endian */ + /* Libsbc expects audio samples by default in host endianness, mSBC requires little endian */ this->msbc.endian = SBC_LE; /* write_mtu might not be correct at this point, so we'll throw diff --git a/spa/plugins/bluez5/sco-source.c b/spa/plugins/bluez5/sco-source.c index 6ed2e5480..6f1d40ccb 100644 --- a/spa/plugins/bluez5/sco-source.c +++ b/spa/plugins/bluez5/sco-source.c @@ -606,7 +606,7 @@ static int do_start(struct impl *this) /* Do accept if Gateway; otherwise do connect for Head Unit */ do_accept = this->transport->profile & SPA_BT_PROFILE_HEADSET_AUDIO_GATEWAY; - /* acquire the socked fd (false -> connect | true -> accept) */ + /* acquire the socket fd (false -> connect | true -> accept) */ if ((res = spa_bt_transport_acquire(this->transport, do_accept)) < 0) return res; @@ -616,7 +616,7 @@ static int do_start(struct impl *this) /* Init mSBC if needed */ if (this->transport->codec == HFP_AUDIO_CODEC_MSBC) { sbc_init_msbc(&this->msbc, 0); - /* Libsbc expects audio samples by default in host endianity, mSBC requires little endian */ + /* Libsbc expects audio samples by default in host endianness, mSBC requires little endian */ this->msbc.endian = SBC_LE; this->msbc_seq_initialized = false; diff --git a/spa/tools/spa-json-dump.c b/spa/tools/spa-json-dump.c index cab42f1bd..db2d58f25 100644 --- a/spa/tools/spa-json-dump.c +++ b/spa/tools/spa-json-dump.c @@ -95,7 +95,7 @@ int main(int argc, char *argv[]) goto error_close; } if ((data = mmap(NULL, sbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { - fprintf(stderr, "error mmaping file '%s': %m\n", argv[1]); + fprintf(stderr, "error mmapping file '%s': %m\n", argv[1]); goto error_close; } diff --git a/src/examples/media-session/default-routes.c b/src/examples/media-session/default-routes.c index 16a764a8f..c132bc287 100644 --- a/src/examples/media-session/default-routes.c +++ b/src/examples/media-session/default-routes.c @@ -733,7 +733,7 @@ static int handle_route(struct device *dev, struct route *r) if (!ri->prev_active) { /* a new port has been found, restore the volume and make sure we - * save this as a prefered port */ + * save this as a preferred port */ pw_log_info("device %d: new active port found '%s'", dev->id, r->name); restore_route(dev, r); } else if (r->props && r->save) { diff --git a/src/examples/media-session/media-session.c b/src/examples/media-session/media-session.c index 7606b1f7b..b4ea7a5d2 100644 --- a/src/examples/media-session/media-session.c +++ b/src/examples/media-session/media-session.c @@ -2520,7 +2520,7 @@ int main(int argc, char *argv[]) else pw_log_debug("got dbus connection %p", impl.this.dbus_connection); } else { - pw_log_info("dbus diabled"); + pw_log_info("dbus disabled"); } if ((res = start_session(&impl)) < 0) diff --git a/src/modules/module-protocol-pulse/format.c b/src/modules/module-protocol-pulse/format.c index 007f51f91..85a7badc3 100644 --- a/src/modules/module-protocol-pulse/format.c +++ b/src/modules/module-protocol-pulse/format.c @@ -52,7 +52,7 @@ static const struct format audio_formats[] = { { SAMPLE_S24LE, SPA_AUDIO_FORMAT_S24_LE, "s24ne", 3 }, { SAMPLE_S24_32LE, SPA_AUDIO_FORMAT_S24_32_LE, "s24-32ne", 4 }, #endif - /* planar formats, we just report them as inteleaved */ + /* planar formats, we just report them as interleaved */ { SAMPLE_U8, SPA_AUDIO_FORMAT_U8P, "u8ne", 1 }, { SAMPLE_S16NE, SPA_AUDIO_FORMAT_S16P, "s16ne", 2 }, { SAMPLE_S24_32NE, SPA_AUDIO_FORMAT_S24_32P, "s24-32ne", 4 }, diff --git a/src/pipewire/filter.h b/src/pipewire/filter.h index f3a782751..cf7abcc7c 100644 --- a/src/pipewire/filter.h +++ b/src/pipewire/filter.h @@ -49,7 +49,7 @@ struct pw_filter; /** \enum pw_filter_state The state of a filter \memberof pw_filter */ enum pw_filter_state { - PW_FILTER_STATE_ERROR = -1, /**< the strean is in error */ + PW_FILTER_STATE_ERROR = -1, /**< the stream is in error */ PW_FILTER_STATE_UNCONNECTED = 0, /**< unconnected */ PW_FILTER_STATE_CONNECTING = 1, /**< connection is in progress */ PW_FILTER_STATE_PAUSED = 2, /**< filter is connected and paused */ diff --git a/src/pipewire/impl-client.h b/src/pipewire/impl-client.h index 4e8e1cf2e..02ed3a7c0 100644 --- a/src/pipewire/impl-client.h +++ b/src/pipewire/impl-client.h @@ -111,7 +111,7 @@ struct pw_impl_client_events { /** Create a new client. This is mainly used by protocols. */ struct pw_impl_client * pw_context_create_client(struct pw_impl_core *core, /**< the core object */ - struct pw_protocol *prototol, /**< the client protocol */ + struct pw_protocol *protocol, /**< the client protocol */ struct pw_properties *properties, /**< client properties */ size_t user_data_size /**< extra user data size */); diff --git a/src/pipewire/impl-module.h b/src/pipewire/impl-module.h index 52456a0b4..29ea2265a 100644 --- a/src/pipewire/impl-module.h +++ b/src/pipewire/impl-module.h @@ -69,7 +69,7 @@ struct pw_impl_module_events { void (*initialized) (void *data); /** The module is registered. This is a good time to register - * objectes created from the module. */ + * objects created from the module. */ void (*registered) (void *data); }; diff --git a/src/pipewire/private.h b/src/pipewire/private.h index 0bb667f7c..228d6e3c2 100644 --- a/src/pipewire/private.h +++ b/src/pipewire/private.h @@ -660,7 +660,7 @@ struct pw_impl_node { struct spa_fraction latency; /**< requested latency */ uint32_t quantum_size; /**< desired quantum */ - struct spa_fraction max_latency; /**< miximum latency */ + struct spa_fraction max_latency; /**< maximum latency */ uint32_t max_quantum_size; /**< max supported quantum */ struct spa_source source; /**< source to remotely trigger this node */ struct pw_memblock *activation;