[media][audio_core] Parse config driver_gain_db

Parse a new driver_gain_db field from the output device configuration
and include it in the device profile. In a following CL, the driver gain
value will be applied to the driver upon initialization.

This is the first in a chain of CLs that will allow driver gain to be
modified in AudioCore on a per-device basis and in relation to audio
effects. Enabling driver_gain setting in the device configuration
ensures the driver's default gain setting will be Unity (0 db) unless
modified in the configuration.

Driver gain modifications are meant to be temporary fixes for loudness
issues and/or to compensate for a lack of device tuning.

Bug: 49302

Test: fx test audio_core_unittests
Change-Id: I074f099c0d12c1f7ce27ece45dcb24c691ee5825
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/383403
Reviewed-by: Tim Detwiler <tjdetwiler@google.com>
Testability-Review: Tim Detwiler <tjdetwiler@google.com>
Commit-Queue: Payton Bradsky <pbradsky@google.com>
4 files changed
tree: a2cee3a19061e3d32114ed872e57de47fe43545f
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .dir-locals.el
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
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.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.