[audio][aml-g12-pdm] Reduce ring buffer size

This is pretty much the same as http://fxrev.dev/449830 but for
PDM input.

Instead of precalculating the ring buffer size according to the
maximum possible parameters to get 1 second of audio, calculate
the size based on the required format and the min_frames parameter.

Bug: 48587

Test: audio_driver_tests
Test: aml-g12-pdm-test
Change-Id: I97a6f86fa9a861ea809dcbd9955ced41cf243015
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/449999
Reviewed-by: Braden Kell <bradenkell@google.com>
Testability-Review: Braden Kell <bradenkell@google.com>
Commit-Queue: Andres Oportus <andresoportus@google.com>
3 files changed
tree: d3d616b89aa886bd159593b88e4de50acbfc3725
  1. .clang-format
  2. .clang-tidy
  3. .gitattributes
  4. .gitignore
  5. .gn
  6. .style.yapf
  7. AUTHORS
  8. BUILD.gn
  9. CODE_OF_CONDUCT.md
  10. CONTRIBUTING.md
  11. LICENSE
  12. OWNERS
  13. PATENTS
  14. README.md
  15. boards/
  16. build/
  17. bundles/
  18. docs/
  19. examples/
  20. garnet/
  21. products/
  22. rustfmt.toml
  23. scripts/
  24. sdk/
  25. src/
  26. third_party/
  27. tools/
  28. zircon/
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.