Skip to content

Commit

Permalink
Fix typos in filters for TDA7418/TDA7719
Browse files Browse the repository at this point in the history
  • Loading branch information
WiseLord committed Mar 9, 2024
1 parent 7fc216e commit e8d0eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/audio/tda7418.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void tda7418SetTrebleFilter(void)
uint8_t reg03 = (value > 0) ? (31 - value) : (15 + value);

reg03 <<= TDA7418_MIDDLE_ATT_OFT;
reg03 |= (aPar->tune[AUDIO_TUNE_TREBLE_KFREQ] < TDA7418_TREBLE_FREQ_OFT);
reg03 |= (aPar->tune[AUDIO_TUNE_TREBLE_KFREQ] << TDA7418_TREBLE_FREQ_OFT);
reg03 |= 0x80;

i2cBegin(I2C_AMP, TDA7418_I2C_ADDR);
Expand All @@ -249,7 +249,7 @@ static void tda7418SetMiddleFilter(void)
uint8_t reg04 = (value > 0) ? (31 - value) : (15 + value);

reg04 <<= TDA7418_MIDDLE_ATT_OFT;
reg04 |= (aPar->tune[AUDIO_TUNE_MIDDLE_QUAL] < TDA7418_MIDDLE_QFACT_OFT);
reg04 |= (aPar->tune[AUDIO_TUNE_MIDDLE_QUAL] << TDA7418_MIDDLE_QFACT_OFT);

i2cBegin(I2C_AMP, TDA7418_I2C_ADDR);
i2cSend(I2C_AMP, TDA7418_MIDDLE);
Expand Down
4 changes: 2 additions & 2 deletions src/audio/tda7719.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static void tda7719SetTrebleFilter(void)
uint8_t reg09 = (value > 0) ? (31 - value) : (15 + value);

reg09 <<= TDA7719_MIDDLE_ATT_OFT;
reg09 |= (aPar->tune[AUDIO_TUNE_TREBLE_KFREQ] < TDA7719_TREBLE_FREQ_OFT);
reg09 |= (aPar->tune[AUDIO_TUNE_TREBLE_KFREQ] << TDA7719_TREBLE_FREQ_OFT);

i2cBegin(I2C_AMP, TDA7719_I2C_ADDR);
i2cSend(I2C_AMP, TDA7719_TREBLE);
Expand All @@ -404,7 +404,7 @@ static void tda7719SetMiddleFilter(void)
uint8_t reg10 = (value > 0) ? (31 - value) : (15 + value);

reg10 <<= TDA7719_MIDDLE_ATT_OFT;
reg10 |= (aPar->tune[AUDIO_TUNE_MIDDLE_QUAL] < TDA7719_MIDDLE_QFACT_OFT);
reg10 |= (aPar->tune[AUDIO_TUNE_MIDDLE_QUAL] << TDA7719_MIDDLE_QFACT_OFT);

i2cBegin(I2C_AMP, TDA7719_I2C_ADDR);
i2cSend(I2C_AMP, TDA7719_MIDDLE);
Expand Down

0 comments on commit e8d0eb2

Please sign in to comment.