[roll] Roll fuchsia [audio] Add audio_core/v2/UsageVolume

UsageVolume wraps the gain controls for a single usage. Each usage has
two controls: one from the "primary" volume slider and one "adjustment"
which applies muting/ducking rules. This implements the old StreamVolume
interface:
https://cs.opensource.google/fuchsia/fuchsia/+/main:src/media/audio/audio_core/shared/stream_volume_manager.h;drc=1ec3ad0308e3d4d27e035fc72e38a7ccabd3e8f3;l=37

Implementing StreamVolume will let us reuse StreamVolumeManager verbatim
in audio_core/v2, which will (hopefully) reduce the chance of
accidential new bugs.

A future CL will create one UsageVolume for each pair (device, usage).
For example, if output device A supports MEDIA and INTERRUPTION usage,
while output device B supports only the MEDIA usage, we'll create three
UsageVolume objects. We create separate UsageVolumes per device because
each device may use a unique VolumeCurve. These UsageVolume objects will
be added to StreamVolumeManager (via `AddStream`) when the device is
plugged in, then removed from StreamVolumeManager (via `RemoveStream`)
when the device is unplugged.

Original-Bug: 98652
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/773324
Original-Revision: 4b85c44d1403e34620c75348a142cd2b71bde818
GitOrigin-RevId: 2bc123c3ba57d3d75c9f2d65f330f03318ab3be3
Change-Id: Ib53a7259bc4798f03a4d4b6b7456dda4f660c6a0
1 file changed
tree: 442b6c50e850fd2bcd688bf20919131820e80fd4
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
  13. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.