Skip to content

tas58xx on-the-fly bq coefficients calculataion#228

Draft
anabolyc wants to merge 16 commits into
CarlosDerSeher:developfrom
anabolyc:features/tas58xx-on-the-fly-bq-calculataion
Draft

tas58xx on-the-fly bq coefficients calculataion#228
anabolyc wants to merge 16 commits into
CarlosDerSeher:developfrom
anabolyc:features/tas58xx-on-the-fly-bq-calculataion

Conversation

@anabolyc

@anabolyc anabolyc commented May 28, 2026

Copy link
Copy Markdown
Contributor

The purpose of this PR is to introduce live BQ coefficients calculation instead of lookup tables. This would help

  • allow changing default EQ settings: each band frequency, q-factor, and gain range
  • allow implementing more filter types in the future: high and low shelf, peaking eq, notch, etc.
  • reduce space for eq coefficients mistakes, since those original LUTs came out of lots of manual work
  • allow correct calculations for 48K sampling rate, since original LUTs were done for 44.1K. The difference is within 10%, but the new approach is more correct still
  • reduce codebase, since huge lookup tables are no longer needed

But most importantly, I'm planning to use these BQ calculations to add the EQ feature to the PCM51XX driver.

This is currently based on another feature branch for my own convenience. I will rebase on develop as soon as #222 is reviewed and merged

The formulas are ported from the TI PPC3 app, and based on my testing, they are matching the app-provided values down to 0.01% accuracy.

@anabolyc anabolyc marked this pull request as draft May 28, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant