Skip to content

Commit ac8700b

Browse files
committed
Fix typos in comments and strings
Most of them were found by codespell. Signed-off-by: Stefan Weil <[email protected]>
1 parent 2f62595 commit ac8700b

12 files changed

+37
-37
lines changed

Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ TYPEDEF_HIDES_STRUCT = NO
282282
# causing a significant performance penality.
283283
# If the system has enough physical memory increasing the cache will improve the
284284
# performance by keeping more symbols in memory. Note that the value works on
285-
# a logarithmic scale so increasing the size by one will rougly double the
285+
# a logarithmic scale so increasing the size by one will roughly double the
286286
# memory usage. The cache size is given by this formula:
287287
# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
288288
# corresponding to a cache size of 2^16 = 65536 symbols

debian/changelog.in

+9-9
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ libcec (1.8.2-1) unstable; urgency=low
475475
* ensure that the vendor commands are always sent for panasonic, and that
476476
the deck status for lg isn't reset. fixes some buttons not working after
477477
a second or delayed source switch
478-
* added guard so ReplaceHandler() doesn't accidently try to replace a
478+
* added guard so ReplaceHandler() doesn't accidentally try to replace a
479479
handler for the broadcast address
480480
* wait until the commandhandler is replaced before registering a client,
481481
so we don't register a client and replace it directly afterwards if the
@@ -505,7 +505,7 @@ libcec (1.8.1-1) unstable; urgency=low
505505
* disallow sending CEC_OPCODE_SET_STREAM_PATH - not allowed by the CEC spec
506506
* persist the configuration in the eeprom after initialising the client.
507507
fixes wrong/old settings being used in autonomous mode, which broke the
508-
wake on cec funtion
508+
wake on cec function
509509
* persist the new configuration when the hdmi port setting changed
510510
* cleaned locks around callbacks
511511
* always set controlled mode to false when unregistering the last client.
@@ -559,7 +559,7 @@ libcec (1.7.2-1) unstable; urgency=low
559559
* panasonic: mark the tv as powered up once it sends the audiomode request
560560
* set the physical address of each device controlled by a CCECClient if
561561
it's valid
562-
* Windows could get stuck in a loop in case there an error occured while
562+
* Windows could get stuck in a loop in case there an error occurred while
563563
reading registry entries
564564
* ABI fixes (binary compat with v1.2 for Windows and v1.5.2 for others)
565565
* replace the handler directly after getting the vendor id of a device when
@@ -801,7 +801,7 @@ libcec (1.6-1) unstable; urgency=medium
801801
* added bShutdownOnStandby to libcec_configuration. bugzid: 660. This
802802
setting tells the client to shutdown when the TV switches off and is
803803
complimentary to bPowerOffOnStandby, which tells the PC to suspend.
804-
They are kept separate to maintain backwards compatability.
804+
They are kept separate to maintain backwards compatibility.
805805

806806
* fixed
807807
* gcc 4.7 compilation
@@ -1105,7 +1105,7 @@ libcec (1.4-4) unstable; urgency=low
11051105
* close and delete the connection when the processor thread ends. fixes
11061106
reconnect after standby (access denied / connection already opened)
11071107
* don't replace handlers when not initialised, or the primary device's
1108-
logical addres isn't known yet, which can lead to crashes. don't call
1108+
logical address isn't known yet, which can lead to crashes. don't call
11091109
handlers directly in CCECProcessor without holding a lock on them
11101110
* fixed possible crash when command handler were switched while it was
11111111
being used
@@ -1454,8 +1454,8 @@ libcec (0.8-1) unstable; urgency=low
14541454
* fixed:
14551455
* set the correct ackmask on startup
14561456
* wait for ack while keeping a lock
1457-
* wait for the processor thread to start before continueing on startup
1458-
* wait for messages to be transmitted before continueing in
1457+
* wait for the processor thread to start before continuing on startup
1458+
* wait for messages to be transmitted before continuing in
14591459
CCECProcessor::Transmit()
14601460
* only set the logical address once when it has changed
14611461
* correct source for broadcast messages
@@ -1541,7 +1541,7 @@ libcec (0.6-1) unstable; urgency=low
15411541
libcec (0.5-1) unstable; urgency=low
15421542

15431543
* bumped interface version to 5
1544-
* don't pass std::string and std::vector accross the interface
1544+
* don't pass std::string and std::vector across the interface
15451545
* fixed heap corruption crashes on windows
15461546
* fixed some memory leaks
15471547
* reset all structs to default values before doing with them
@@ -1566,7 +1566,7 @@ libcec (0.4-2) unstable; urgency=low
15661566
* fix segfault on exit
15671567
* renamed libPlatform -> platform.
15681568
* stuck everything from libCEC in the CEC namespace to avoid namespace
1569-
polution
1569+
pollution
15701570

15711571
-- Pulse-Eight Packaging <[email protected]> Tue, 04 Oct 2011 23:45:00 +0200
15721572

include/cec.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ namespace CEC
7676
* @param deviceList The vector to store device descriptors in.
7777
* @param iBufSize The size of the deviceList buffer.
7878
* @param strDevicePath Optional device path. Only adds device descriptors that match the given device path.
79-
* @return The number of devices that were found, or -1 when an error occured.
79+
* @return The number of devices that were found, or -1 when an error occurred.
8080
*/
8181
virtual int8_t FindAdapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath = NULL) = 0;
8282

8383
/*!
8484
* @brief Sends a ping command to the adapter, to check if it's responding.
85-
* @return True when the ping was succesful, false otherwise.
85+
* @return True when the ping was successful, false otherwise.
8686
*/
8787
virtual bool PingAdapter(void) = 0;
8888

@@ -117,21 +117,21 @@ namespace CEC
117117
/*!
118118
* @brief Power on the given CEC capable devices. If CECDEVICE_BROADCAST is used, then wakeDevice in libcec_configuration will be used.
119119
* @param address The logical address to power on.
120-
* @return True when the command was sent succesfully, false otherwise.
120+
* @return True when the command was sent successfully, false otherwise.
121121
*/
122122
virtual bool PowerOnDevices(cec_logical_address address = CECDEVICE_TV) = 0;
123123

124124
/*!
125125
* @brief Put the given CEC capable devices in standby mode. If CECDEVICE_BROADCAST is used, then standbyDevices in libcec_configuration will be used.
126126
* @brief address The logical address of the device to put in standby.
127-
* @return True when the command was sent succesfully, false otherwise.
127+
* @return True when the command was sent successfully, false otherwise.
128128
*/
129129
virtual bool StandbyDevices(cec_logical_address address = CECDEVICE_BROADCAST) = 0;
130130

131131
/*!
132132
* @brief Change the active source to a device type handled by libCEC. Use CEC_DEVICE_TYPE_RESERVED to make the default type used by libCEC active.
133133
* @param type The new active source. Leave empty to use the primary type
134-
* @return True when the command was sent succesfully, false otherwise.
134+
* @return True when the command was sent successfully, false otherwise.
135135
*/
136136
virtual bool SetActiveSource(cec_device_type type = CEC_DEVICE_TYPE_RESERVED) = 0;
137137

@@ -153,7 +153,7 @@ namespace CEC
153153

154154
/*!
155155
* @brief Broadcast a message that notifies connected CEC capable devices that this device is no longer the active source.
156-
* @return True when the command was sent succesfully, false otherwise.
156+
* @return True when the command was sent successfully, false otherwise.
157157
*/
158158
virtual bool SetInactiveView(void) = 0;
159159

@@ -192,7 +192,7 @@ namespace CEC
192192
* @brief Get the menu language of the device with the given logical address
193193
* @param iLogicalAddress The logical address of the device to get the menu language for.
194194
* @param language The requested menu language.
195-
* @return True when fetched succesfully, false otherwise.
195+
* @return True when fetched successfully, false otherwise.
196196
*/
197197
virtual bool GetDeviceMenuLanguage(cec_logical_address iLogicalAddress, cec_menu_language *language) = 0;
198198

@@ -455,7 +455,7 @@ namespace CEC
455455
* @param iBufSize The size of the deviceList buffer.
456456
* @param strDevicePath Optional device path. Only adds device descriptors that match the given device path.
457457
* @param bQuickScan True to do a "quick scan", which will not open a connection to the adapter. Firmware version information and the exact device type will be missing
458-
* @return The number of devices that were found, or -1 when an error occured.
458+
* @return The number of devices that were found, or -1 when an error occurred.
459459
*/
460460
virtual int8_t DetectAdapters(cec_adapter_descriptor *deviceList, uint8_t iBufSize, const char *strDevicePath = NULL, bool bQuickScan = false) = 0;
461461

include/cectypes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ typedef struct cec_command
10801080
* @brief Formats a cec_command.
10811081
* @param command The command to format.
10821082
* @param initiator The logical address of the initiator.
1083-
* @param destination The logical addres of the destination.
1083+
* @param destination The logical address of the destination.
10841084
* @param opcode The opcode of the command.
10851085
* @param timeout The transmission timeout.
10861086
*/
@@ -1490,7 +1490,7 @@ struct libcec_configuration
14901490
uint8_t bMonitorOnly; /*!< won't allocate a CCECClient when starting the connection when set (same as monitor mode). added in 1.6.3 */
14911491
cec_version cecVersion; /*!< CEC spec version to use by libCEC. defaults to v1.4. added in 1.8.0 */
14921492
cec_adapter_type adapterType; /*!< type of the CEC adapter that we're connected to. added in 1.8.2 */
1493-
uint8_t iDoubleTapTimeout50Ms; /*!< prevent double taps withing this timeout, in units of 50ms. defaults to 200ms (value: 4). added in 2.0.0,
1493+
uint8_t iDoubleTapTimeout50Ms; /*!< prevent double taps within this timeout, in units of 50ms. defaults to 200ms (value: 4). added in 2.0.0,
14941494
XXX changed meaning in 2.2.0 to not break binary compatibility. next major (3.0) release will fix it in a nicer way */
14951495
cec_user_control_code comboKey; /*!< key code that initiates combo keys. defaults to CEC_USER_CONTROL_CODE_F1_BLUE. CEC_USER_CONTROL_CODE_UNKNOWN to disable. added in 2.0.5 */
14961496
uint32_t iComboKeyTimeoutMs; /*!< timeout until the combo key is sent as normal keypress */

src/LibCecSharp/CecSharpTypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ namespace CecSharp
828828
/// </summary>
829829
VolumeStatusMask = 0x7F,
830830
/// <summary>
831-
/// Minumum volume
831+
/// Minimum volume
832832
/// </summary>
833833
VolumeMin = 0x00,
834834
/// <summary>

src/LibCecSharp/LibCecSharp.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace CecSharp
147147
/// <summary>
148148
/// Sends a ping command to the adapter, to check if it's responding.
149149
/// </summary>
150-
/// <returns>True when the ping was succesful, false otherwise</returns>
150+
/// <returns>True when the ping was successful, false otherwise</returns>
151151
bool PingAdapter(void)
152152
{
153153
return m_libCec->PingAdapter();
@@ -204,7 +204,7 @@ namespace CecSharp
204204
/// Power on the given CEC capable devices. If CECDEVICE_BROADCAST is used, then wakeDevice in libcec_configuration will be used.
205205
/// </summary>
206206
/// <param name="logicalAddress">The logical address to power on.</param>
207-
/// <returns>True when the command was sent succesfully, false otherwise.</returns>
207+
/// <returns>True when the command was sent successfully, false otherwise.</returns>
208208
bool PowerOnDevices(CecLogicalAddress logicalAddress)
209209
{
210210
return m_libCec->PowerOnDevices((cec_logical_address) logicalAddress);
@@ -214,7 +214,7 @@ namespace CecSharp
214214
/// Put the given CEC capable devices in standby mode. If CECDEVICE_BROADCAST is used, then standbyDevices in libcec_configuration will be used.
215215
/// </summary>
216216
/// <param name="logicalAddress">The logical address of the device to put in standby.</param>
217-
/// <returns>True when the command was sent succesfully, false otherwise.</returns>
217+
/// <returns>True when the command was sent successfully, false otherwise.</returns>
218218
bool StandbyDevices(CecLogicalAddress logicalAddress)
219219
{
220220
return m_libCec->StandbyDevices((cec_logical_address) logicalAddress);
@@ -234,7 +234,7 @@ namespace CecSharp
234234
/// Change the active source to a device type handled by libCEC. Use CEC_DEVICE_TYPE_RESERVED to make the default type used by libCEC active.
235235
/// </summary>
236236
/// <param name="type">The new active source. Use CEC_DEVICE_TYPE_RESERVED to use the primary type</param>
237-
/// <returns>True when the command was sent succesfully, false otherwise.</returns>
237+
/// <returns>True when the command was sent successfully, false otherwise.</returns>
238238
bool SetActiveSource(CecDeviceType type)
239239
{
240240
return m_libCec->SetActiveSource((cec_device_type) type);
@@ -265,7 +265,7 @@ namespace CecSharp
265265
/// <summary>
266266
/// Broadcast a message that notifies connected CEC capable devices that this device is no longer the active source.
267267
/// </summary>
268-
/// <returns>True when the command was sent succesfully, false otherwise.</returns>
268+
/// <returns>True when the command was sent successfully, false otherwise.</returns>
269269
bool SetInactiveView(void)
270270
{
271271
return m_libCec->SetInactiveView();

src/libcec/adapter/AdapterCommunication.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace CEC
4747
ADAPTER_MESSAGE_STATE_SENT_NOT_ACKED, /**< sent, but failed to ACK */
4848
ADAPTER_MESSAGE_STATE_SENT_ACKED, /**< sent, and ACK received */
4949
ADAPTER_MESSAGE_STATE_INCOMING, /**< received from another device */
50-
ADAPTER_MESSAGE_STATE_ERROR /**< an error occured */
50+
ADAPTER_MESSAGE_STATE_ERROR /**< an error occurred */
5151
} cec_adapter_message_state;
5252

5353
class IAdapterCommunicationCallback

src/libcec/adapter/RPi/RPiCECAdapterCommunication.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ cec_adapter_message_state CRPiCECAdapterCommunication::Write(const cec_command &
393393
// (0xf, 0xe respectively) before it calls us for LA POLLing.
394394
//
395395
// that means - unregistering any A from adapter, _while_
396-
// ignoring callbacks (and especialy not reporting the
396+
// ignoring callbacks (and especially not reporting the
397397
// subsequent actions generated from VC layer - like
398398
// LA change to 0xf ...)
399399
//

src/libcec/cmake/CheckPlatformSupport.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# HAVE_DRM_EDID_PARSER 1 if DRM EDID parsing is supported
1515
#
1616

17-
set(RPI_LIB_DIR "" CACHE STRING "Path to Rapsberry Pi libraries")
18-
set(RPI_INCLUDE_DIR "" CACHE STRING "Path to Rapsberry Pi headers")
17+
set(RPI_LIB_DIR "" CACHE STRING "Path to Raspberry Pi libraries")
18+
set(RPI_INCLUDE_DIR "" CACHE STRING "Path to Raspberry Pi headers")
1919

2020
set(PLATFORM_LIBREQUIRES "")
2121

src/libcec/devices/CECBusDevice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void CCECBusDevice::SetUnsupportedFeature(cec_opcode opcode)
328328
}
329329
}
330330

331-
// signal threads that are waiting for a reponse
331+
// signal threads that are waiting for a response
332332
MarkBusy();
333333
SignalOpcode(cec_command::GetResponseOpcode(opcode));
334334
MarkReady();

src/libcec/platform/adl/adl_defines.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ enum ADLLARGEDESKTOPTYPE
978978
#define ADL_DL_THERMAL_FLAG_INTERRUPT 1
979979
#define ADL_DL_THERMAL_FLAG_FANCONTROL 2
980980

981-
///\defgroup define_fanctrl Fan speed cotrol
981+
///\defgroup define_fanctrl Fan speed control
982982
/// Values for ADLFanSpeedInfo.iFlags
983983
// @{
984984
#define ADL_DL_FANCTRL_SUPPORTS_PERCENT_READ 1
@@ -1303,7 +1303,7 @@ typedef enum _ADLProfilePropertyType
13031303
/// \defgroup define_adapter_crossdisplay_option
13041304
/// Used in ADL_Adapter_CrossdisplayInfoX2_Set function to indicate cross display options.
13051305
/// @{
1306-
/// Checking if 3D application is runnning. If yes, not to do switch, return ADL_OK_WAIT; otherwise do switch.
1306+
/// Checking if 3D application is running. If yes, don't switch, return ADL_OK_WAIT; otherwise do switch.
13071307
#define ADL_CROSSDISPLAY_OPTION_NONE 0
13081308
/// Force switching without checking for running 3D applications
13091309
#define ADL_CROSSDISPLAY_OPTION_FORCESWITCH (1 << 0)

src/libcec/platform/adl/adl_structures.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ typedef struct AdapterInfo
8383
/////////////////////////////////////////////////////////////////////////////////////////////
8484
///\brief Structure containing information about the Linux X screen information.
8585
///
86-
/// This structure is used to store the current screen number and xorg.conf ID name assoicated with an adapter index.
86+
/// This structure is used to store the current screen number and xorg.conf ID name associated with an adapter index.
8787
/// This structure is updated during ADL_Main_Control_Refresh or ADL_ScreenInfo_Update.
8888
/// Note: This structure should be used in place of iXScreenNum and strXScreenConfigName in AdapterInfo as they will be
8989
/// deprecated.
@@ -397,7 +397,7 @@ typedef struct ADLDisplayDPMSTInfo
397397
/// string identifier for the display
398398
char strGlobalUniqueIdentifier[ADL_MAX_PATH];
399399

400-
/// The link count of relative address, rad[0] upto rad[linkCount] are valid
400+
/// The link count of relative address, rad[0] up to rad[linkCount] are valid
401401
int radLinkCount;
402402
/// The physical connector ID, used to identify the physical DP port
403403
int iPhysicalConnectorID;
@@ -1575,10 +1575,10 @@ typedef struct ADLSLSTarget
15751575
/// The target ID
15761576
ADLDisplayTarget displayTarget;
15771577

1578-
/// Target postion X in SLS grid
1578+
/// Target position X in SLS grid
15791579
int iSLSGridPositionX;
15801580

1581-
/// Target postion Y in SLS grid
1581+
/// Target position Y in SLS grid
15821582
int iSLSGridPositionY;
15831583

15841584
/// The view size width, height and rotation angle per SLS Target

0 commit comments

Comments
 (0)