[media][audio_core][e2e] Tweaks to support virtual audio

This CL makes the following surgical changes to prepare AudioCore
for the usage of VirtualAudio technology, in support of the e2e push:

* Includes error codes with ShutdownSelf calls (previously 6 of 21
  call sites didn't),
* Handle AUDIO STREAM_PLUG_DETECT_NOTIFY as other messages are (as
  opposed to hard-coding the assumption that it is identical to an
  AUDIO_STREAM_CMD_PLUG_DETECT response),
* Accept (but ignore) AUDIO_RB_POSITION_NOTIFY messages, rather than
  shutting down the stream when these are received,
* Don't log the initially-configured format, as each new device is
  detected and initialized. The debug log chatter as these devices
  come and go was reducing the usefulness of the logs overall. A
  TODO suggests that we store this info in the hub, if it something
  worth knowing later.

AudioCore does NOT request ring-buffer position notifications from
drivers during streaming; this is unchanged. Instead, it relies upon
CLOCK_MONOTONIC as the source of chronological truth.

Test: build, CQ

Change-Id: I6b8b4b0186999bb22e9e855ec2e69efab48bdcac
4 files changed
tree: 64229b71d3499c8328614d6d9d770e3f5b3978fb
  1. .clang-format
  2. .dir-locals.el
  3. .gitattributes
  4. .gitignore
  5. .gn
  6. AUTHORS
  7. BUILD.gn
  8. CODE_OF_CONDUCT.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. OWNERS
  12. PATENTS
  13. README.md
  14. boards/
  15. build/
  16. buildtools/
  17. bundles/
  18. docs/
  19. examples/
  20. garnet/
  21. peridot/
  22. products/
  23. rustfmt.toml
  24. scripts/
  25. sdk/
  26. src/
  27. third_party/
  28. tools/
  29. 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.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See the documentation.