Skip to content

Commit 993248c

Browse files
committed
Correct misspelled signal to signal
1 parent 1e5dbf9 commit 993248c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ class AudioDriverPCM3168Class : public AudioDriver {
13481348
break;
13491349
case BIT_LENGTH_32BITS:
13501350
case BIT_LENGTH_24BITS:
1351-
if (iface.singal_type == SIGNAL_TDM) {
1351+
if (iface.signal_type == SIGNAL_TDM) {
13521352
switch (iface.fmt) {
13531353
case I2S_NORMAL:
13541354
fmt = PCM3168::FMT::I2STDM24bit;

src/Driver/cs42448/cs42448.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class CS42448 {
556556

557557
/// Set I2S format based on codec_config
558558
bool setFormat() {
559-
if (codec_config.i2s.singal_type == SIGNAL_TDM) {
559+
if (codec_config.i2s.signal_type == SIGNAL_TDM) {
560560
return setFormat(Format::TDM);
561561
} else {
562562
switch (codec_config.i2s.fmt) {

src/Driver/es7210/es7210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ error_t es7210_adc_init(codec_config_t *codec_cfg, void* i2c)
326326

327327
// set REG12
328328
uint8_t reg12 = 0;
329-
if (i2s_cfg->singal_type == SIGNAL_TDM) {
329+
if (i2s_cfg->signal_type == SIGNAL_TDM) {
330330
reg12 = 0x02; // TDM I2S
331331
}
332332
ret |= es7210_write_reg(ES7210_SDP_INTERFACE2_REG12, reg12);

src/DriverCommon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef enum {
119119
} i2s_format_t;
120120

121121
/**
122-
* @enum singal_t
122+
* @enum signal_t
123123
* @brief Usually the value is digital for i2s
124124
* @ingroup enumerations
125125
*/
@@ -129,7 +129,7 @@ typedef enum {
129129
SIGNAL_AMALOG,
130130
SIGNAL_PDM,
131131
SIGNAL_TDM,
132-
} singal_t;
132+
} signal_t;
133133

134134

135135
/**
@@ -196,7 +196,7 @@ typedef struct {
196196
/*!< i2s number of channels */
197197
channels_t channels;
198198
/*!< signal tpye */
199-
singal_t singal_type;
199+
signal_t signal_type;
200200

201201
} I2SDefinition;
202202

0 commit comments

Comments
 (0)