Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev v2 is direct playback supported #6500

Merged

Conversation

dwhea
Copy link
Contributor

@dwhea dwhea commented Oct 1, 2019

No description provided.

@dwhea dwhea marked this pull request as ready for review October 1, 2019 20:38
@dwhea
Copy link
Contributor Author

dwhea commented Oct 30, 2019

Hi @andrewlewis, can you share your feedback on this request? Android 10 supports MSD (intermediate module) audio HALs and their audio output capabilities can be queried via the isDirectPlaybackSupported APIs.

@dwhea
Copy link
Contributor Author

dwhea commented Apr 2, 2020

Is there anything I can do to assist the review of this pull request?

@andrewlewis
Copy link
Collaborator

@dwhea Sorry for being so slow to respond! Due to the Coronavirus lockdown we don't have lab equipment for testing encoded audio passthrough (direct playback), and I'd like to test this out manually before proceeding, so please expect further delay.

I'm also curious how the behavior of the AudioTrack API newly used here relates to the existing way we query encoded audio passthrough capabilities (via the HDMI audio plug intent). And also how it relates to the encodings in AudioDeviceInfo. Do you know anything about that or can you point us to any resources? Thanks.

@dwhea
Copy link
Contributor Author

dwhea commented Apr 29, 2020

@andrewlewis isDirectPlaybackSupported is a non-device specific API to check "can the system playback this encoding"? It is applicable to other device types, like Speaker and Headphone, not just HDMI. For products with MSD audio HALs exposed via BUS audio device types, the API allows for AudioTrack playback capability (e.g. even if the Primary Audio HAL format is PCM, if the MSD supports DD+, then the isDirectPlaybackSupported API returns true allowing for the DD+ AudioTrack to play).

My understanding is there is a limitation in the current audio framework whereby MSD audio profiles that are declared as attached BUS devices in the product's audio policy are not resolved / reported by the AudioDeviceInfo API. The isDirectPlaybackSupported on the other hand does work for such MSD products.

The API maps to AudioPolicyManager https://cs.android.com/android/platform/superproject/+/master:frameworks/av/services/audiopolicy/managerdefault/AudioPolicyManager.cpp;l=3253?q=isDirectOutputSupported&ss=android

In short, this new API should return a superset of the capabilities reported by HDMI hot plug encodings.

@dwhea
Copy link
Contributor Author

dwhea commented Nov 23, 2020

Hi @andrewlewis : do you have any updates on this topic?

for (int e : possibleEncodings) {
if (AudioTrack.isDirectPlaybackSupported(
new AudioFormat.Builder()
.setChannelMask(AudioFormat.CHANNEL_OUT_STEREO)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if the channel mask (and sample rate) are taken into account, or are they ignored?

Based on the marketing info MS12 here I guess they aren't relevant because the MS12 decoder will convert the incoming audio (in any format) into one suitable for the current output capabilities, but I wanted to check in case you know otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The audio framework requires channel mask and sample rate matching for direct outputs (it's searching for a compatible IOProfile and channel mask & sample rate are some of the parameters required to match). Checking only stereo / 48 kHz is not a complete solution, but is on par with the current AudioCapabilities.java implementation which is only checking for format support; this PS rests on the assumption that most direct outputs will support stereo / 48 kHz for all formats, and using stereo / 48 kHz is sufficient to extract the direct output format capabilities. A larger change in ExoPlayer checking for sample rate / channel mask matching is out of scope of this PS.

For MS12, all Dolby decoder (e.g. Dolby Digital Plus) implementations support all respective codec sample rates, and will decode to the current output capabilities.

@@ -34,6 +34,7 @@
android:banner="@drawable/ic_banner"
android:largeHeap="true"
android:allowBackup="false"
android:usesCleartextTraffic="true"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we proceed with this pull request, I think the cleartext traffic and media.exolist changes should be reverted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you revert these files and synch to dev-v2 HEAD and we can try to get this merged. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK sure.

@andrewlewis
Copy link
Collaborator

I heard there is a Dolby SDK that allows querying and controlling MS12 functionality. Do you know whether it's possible to write a proper integration with direct playback without access to that SDK?

Generally, I'm just a bit concerned we'd see regressions from API 29 if we merge this, as I haven't ever used this API and we don't have testing equipment to validate the change doesn't break things that currently work. I'm inclined to say we should wait until we have access to testing equipment so we can be confident that this works as expected and avoids regressions. Until then, apps can implement this functionality themselves by creating AudioCapabilities instances as needed and passing those into the renderer.

@dwhea
Copy link
Contributor Author

dwhea commented Dec 2, 2020

Re: #6500 (comment)

The Dolby SDK is not required for checking direct playback capability.

@andrewlewis
Copy link
Collaborator

The Dolby SDK is not required for checking direct playback capability.

@dwhea If you have access to it, please could you provide some information on what other functionality the SDK does provide that might be useful to apps using direct output?


@TargetApi(29)
private static int[] getDirectPlaybackSupportedEncodings() {
int[] possibleEncodings = new int[]{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, could we restrict this to the useful subset that's compatible with DefaultAudioSink, which consists of the encodings AC3, E_AC3, E_AC3_JOC, AC4, DOLBY_TRUEHD, DTS, DTS_HD and PCM_16BIT?

Later on we can investigate making this class not immutable and having supportsEncoding call through directly to the platform so we don't need to worry about listing them exhaustively but that is beyond the scope of this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this sounds good.

For Q devices and higher, use AudioTrack.isDirectPlaybackSupported
for determining AudioCapabilities.
@dwhea dwhea force-pushed the dev-v2-isDirectPlaybackSupported branch from a54df29 to cb1084f Compare June 7, 2021 11:04
@ojw28 ojw28 merged commit 5f77bf0 into google:dev-v2 Jun 16, 2021
icbaker pushed a commit that referenced this pull request Jul 21, 2021
@andrewlewis
Copy link
Collaborator

@dwhea There was a report that these changes caused a regression in #9239. The issue seems to be that isDirectPlaybackSupported returns true for formats that are supported for audio offloading but not passthrough. I had expected the encodings exposed for offloading vs passthrough to be non-overlapping. To work around the issue, the next release will only use this method on TV devices. Please let me know if you have any concerns or ideas for better ways to fix this. Thanks.

@dwhea
Copy link
Contributor Author

dwhea commented Aug 4, 2021

@andrewlewis the isDirectPlaybackSupported current implementation checks for 48 kHz sample rate capabilities, yet the #9239 is attempting to open 44.1 kHz: does this mismatch explain the AudioTrack create failure?

What does the device audio policy (adb shell dumpsys media.audio_policy) report before playback fails?

NOTE: encodings for OFFLOAD and DIRECT can overlap on devices. Such devices, such as STBs, can report HDMI pass-through as DIRECT, but also on-device decoding (and HW processing before transmit over HDMI) as OFFLOAD. The intent of the current implementation in ExoPlayer is for the compressed audio track support to check both OFFLOAD and DIRECT, and this is satisfied by the isDirectPlaybackSupported check.

@andrewlewis
Copy link
Collaborator

In ExoPlayer code I think we need to be able to tell the difference between passthrough and offload mode, because (for example) the AudioTrack has to be created using AudioTrack.Builder.setOffloadedPlayback, but it sounds like isDirectPlaybackSupported won't let us get a list of just those encodings supported for passthrough.

Is there any reason for a TV device/STB to support offload? I thought the only use case was for power saving on mobile devices, which doesn't seem applicable for TVs, hence the workaround that only uses this method on TV devices.

@andrewlewis the isDirectPlaybackSupported current implementation checks for 48 kHz sample rate capabilities, yet the #9239 is attempting to open 44.1 kHz: does this mismatch explain the AudioTrack create failure?

I'm not sure but based on the dumpsys these encodings only seem to be supported by the compressed_offload output on this OnePlus Nord device:

adb shell dumpsys media.audio_policy

AudioPolicyManager: 0xb40000716a4366b0
Command Thread: 0xb40000711a42dfb0
Supported System Usages:
AudioCommandThread 0xb40000711a42dfb0 Dump
- Commands:
   Command Time        Wait pParam
  Last Command
   00      000961.448  0    0xb40000707a46b480
 
AudioPolicyManager Dump: 0xb40000716a4366b0
 Primary Output: 13
 Phone state: AUDIO_MODE_NORMAL
 Force use for communications: 0
 Force use for media: 0
 Force use for record: 0
 Force use for dock: 8
 Force use for system: 0
 Force use for HDMI system audio: 0
 Force use for encoded surround output: 0
 Force use for vibrate ringing: 0
 Force use for (null): 0
 Force use for (null): 0
 TTS output not available
 Master mono: off
 Config source: /vendor/etc/audio/audio_policy_configuration.xml
- Available output devices:
  Device 1:
  - id:  2
  - tag name: Earpiece
  - type: AUDIO_DEVICE_OUT_EARPIECE
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:48000
          - channel masks:0x0010
  Device 2:
  - id:  3
  - tag name: Speaker
  - type: AUDIO_DEVICE_OUT_SPEAKER
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:48000
          - channel masks:0x0003
  Device 3:
  - id: 11
  - tag name: Telephony Tx
  - type: AUDIO_DEVICE_OUT_TELEPHONY_TX
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 16000
          - channel masks:0x0001, 0x0003
- Available input devices:
  Device 1:
  - id: 17
  - tag name: Built-In Mic
  - type: AUDIO_DEVICE_IN_BUILTIN_MIC
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - address: bottom
  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
          - channel masks:0x000c, 0x0010, 0x0030
  Device 2:
  - id: 18
  - tag name: Telephony Rx
  - type: AUDIO_DEVICE_IN_TELEPHONY_RX|AUDIO_DEVICE_IN_VOICE_CALL
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 16000, 48000
          - channel masks:0x0010
      Profile 1:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
          - channel masks:0x000c, 0x0010, 0x0030
  Device 3:
  - id: 19
  - tag name: Built-In Back Mic
  - type: AUDIO_DEVICE_IN_BACK_MIC
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - address: back
  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
          - channel masks:0x000c, 0x0010, 0x0030
  Device 4:
  - id: 28
  - tag name: Remote Submix In
  - type: AUDIO_DEVICE_IN_REMOTE_SUBMIX
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - address: 0
  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:48000
          - channel masks:0x000c
  Device 5:
  - id: 20
  - tag name: FM Tuner
  - type: AUDIO_DEVICE_IN_FM_TUNER
  - supported encapsulation modes: 0  - supported encapsulation metadata types: 0  - Profiles:
      Profile 0:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:48000
          - channel masks:0x000c, 0x0010
      Profile 1:
          - format: AUDIO_FORMAT_PCM_16_BIT
          - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
          - channel masks:0x000c, 0x0010, 0x0030
 
HW Modules dump:
- HW Module 1:
  - name: primary
  - handle: 10
  - version: 2.0
  - outputs:
    output 0:
    - name: primary output
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_24_BIT_PACKED
            - sampling rates:48000
            - channel masks:0x0003
    - flags: 0x0006 (AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: BT A2DP Out
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: BT A2DP Headphones
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: BT A2DP Speaker
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 13:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 14:
      - tag name: FM
      - type: AUDIO_DEVICE_OUT_FM
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 15:
      - tag name: Proxy
      - type: AUDIO_DEVICE_OUT_PROXY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 16:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 1
    - maxActiveCount: 1 - curActiveCount: 0
    output 1:
    - name: raw
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    - flags: 0x0004 (AUDIO_OUTPUT_FLAG_FAST)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: Proxy
      - type: AUDIO_DEVICE_OUT_PROXY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 2:
    - name: deep_buffer
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_24_BIT_PACKED
            - sampling rates:48000
            - channel masks:0x0003
    - flags: 0x0008 (AUDIO_OUTPUT_FLAG_DEEP_BUFFER)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: BT A2DP Out
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: BT A2DP Headphones
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: BT A2DP Speaker
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 13:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 14:
      - tag name: Proxy
      - type: AUDIO_DEVICE_OUT_PROXY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 15:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 1
    - maxActiveCount: 1 - curActiveCount: 0
    output 3:
    - name: mmap_no_irq_out
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    - flags: 0x4001 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 4:
    - name: hifi_playback
    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
    - flags: 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 5:
    - name: compress_passthrough
    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
    - flags: 0x0031 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING)
    - Supported devices:
      Device 1:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 6:
    - name: direct_pcm
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 1:
            - format: AUDIO_FORMAT_PCM_8_24_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000, 352800, 384000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 2:
            - format: AUDIO_FORMAT_PCM_24_BIT_PACKED
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000, 352800, 384000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 3:
            - format: AUDIO_FORMAT_PCM_32_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000, 352800, 384000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
    - flags: 0x0001 (AUDIO_OUTPUT_FLAG_DIRECT)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: BT A2DP Out
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: BT A2DP Headphones
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: BT A2DP Speaker
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 13:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 14:
      - tag name: Proxy
      - type: AUDIO_DEVICE_OUT_PROXY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 15:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 7:
    - name: compressed_offload
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_MP3
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x0001, 0x0003
        Profile 1:
            - format: AUDIO_FORMAT_FLAC
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003
        Profile 2:
            - format: AUDIO_FORMAT_ALAC
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 3:
            - format: AUDIO_FORMAT_APE
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003
        Profile 4:
            - format: AUDIO_FORMAT_AAC_LC
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
        Profile 5:
            - format: AUDIO_FORMAT_AAC_HE_V1
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
        Profile 6:
            - format: AUDIO_FORMAT_AAC_HE_V2
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
        Profile 7:
            - format: AUDIO_FORMAT_DTS
            - sampling rates:32000, 44100, 48000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f
        Profile 8:
            - format: AUDIO_FORMAT_DTS_HD
            - sampling rates:32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 9:
            - format: AUDIO_FORMAT_WMA
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 10:
            - format: AUDIO_FORMAT_WMA_PRO
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003, 0x000b, 0x0033, 0x0037, 0x003f, 0x013f, 0x063f
        Profile 11:
            - format: AUDIO_FORMAT_VORBIS
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
            - channel masks:0x0001, 0x0003
        Profile 12:
            - format: AUDIO_FORMAT_AAC_ADTS_LC
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
        Profile 13:
            - format: AUDIO_FORMAT_AAC_ADTS_HE_V1
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
        Profile 14:
            - format: AUDIO_FORMAT_AAC_ADTS_HE_V2
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000
            - channel masks:0x0001, 0x0003
    - flags: 0x0031 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: BT A2DP Out
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: BT A2DP Headphones
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: BT A2DP Speaker
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 13:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 14:
      - tag name: Proxy
      - type: AUDIO_DEVICE_OUT_PROXY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 15:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 8:
    - name: voice_tx
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 48000
            - channel masks:0x0001, 0x0003
    - flags: 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 11
      - tag name: Telephony Tx
      - type: AUDIO_DEVICE_OUT_TELEPHONY_TX
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 1
    - maxActiveCount: 1 - curActiveCount: 0
    output 9:
    - name: voip_rx
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 32000, 48000
            - channel masks:0x0001
    - flags: 0x8001 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX)
    - Supported devices:
      Device 1:
      - id:  2
      - tag name: Earpiece
      - type: AUDIO_DEVICE_OUT_EARPIECE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - id:  3
      - tag name: Speaker
      - type: AUDIO_DEVICE_OUT_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset
      - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - tag name: Wired Headphones
      - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: BT SCO
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: BT SCO Headset
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - tag name: BT SCO Car Kit
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: BT A2DP Out
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 9:
      - tag name: BT A2DP Headphones
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 10:
      - tag name: BT A2DP Speaker
      - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 11:
      - tag name: HDMI
      - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 12:
      - tag name: USB Device Out
      - type: AUDIO_DEVICE_OUT_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 13:
      - tag name: Line
      - type: AUDIO_DEVICE_OUT_LINE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 14:
      - tag name: USB Headset Out
      - type: AUDIO_DEVICE_OUT_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    output 10:
    - name: incall_music_uplink
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 48000
            - channel masks:0x0003
    - flags: 0x10000 (AUDIO_OUTPUT_FLAG_INCALL_MUSIC)
    - Supported devices:
      Device 1:
      - id: 11
      - tag name: Telephony Tx
      - type: AUDIO_DEVICE_OUT_TELEPHONY_TX
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 1
    - maxActiveCount: 1 - curActiveCount: 0
  - inputs:
    input 0:
    - name: primary input
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: BT SCO Headset Mic
      - type: AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_ALL_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - id: 18
      - tag name: Telephony Rx
      - type: AUDIO_DEVICE_IN_TELEPHONY_RX|AUDIO_DEVICE_IN_VOICE_CALL
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
      Device 6:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 7:
      - id: 20
      - tag name: FM Tuner
      - type: AUDIO_DEVICE_IN_FM_TUNER
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 8:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 1:
    - name: voip_tx
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 32000, 48000
            - channel masks:0x0010
    - flags: 0x0020 (AUDIO_INPUT_FLAG_VOIP_TX)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: BT SCO Headset Mic
      - type: AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_ALL_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
      Device 5:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 2:
    - name: usb_surround_sound
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000
            - channel masks:0x000c, 0x0010, 0x0030, 0x17000c, 0x80000007, 0x8000000f, 0x8000003f, 0x800000ff
        Profile 1:
            - format: AUDIO_FORMAT_PCM_32_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000
            - channel masks:0x17000c, 0x8000003f, 0x800000ff
        Profile 2:
            - format: AUDIO_FORMAT_PCM_FLOAT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000
            - channel masks:0x17000c, 0x8000003f, 0x800000ff
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 3:
    - name: record_24
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_8_24_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 192000
            - channel masks:0x000c, 0x0010, 0x0030, 0x80000007, 0x8000000f
        Profile 1:
            - format: AUDIO_FORMAT_PCM_24_BIT_PACKED
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 192000
            - channel masks:0x000c, 0x0010, 0x0030, 0x80000007, 0x8000000f
        Profile 2:
            - format: AUDIO_FORMAT_PCM_FLOAT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 192000
            - channel masks:0x000c, 0x0010, 0x0030, 0x80000007, 0x8000000f
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
 
    - maxOpenCount: 2 - curOpenCount: 0
    - maxActiveCount: 2 - curActiveCount: 0
    input 4:
    - name: voice_rx
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 48000
            - channel masks:0x000c, 0x0010
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 18
      - tag name: Telephony Rx
      - type: AUDIO_DEVICE_IN_TELEPHONY_RX|AUDIO_DEVICE_IN_VOICE_CALL
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 5:
    - name: mmap_no_irq_in
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030, 0x80000007
    - flags: 0x0010 (AUDIO_INPUT_FLAG_MMAP_NOIRQ)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
      Device 4:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 5:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 0 - curActiveCount: 0
    input 6:
    - name: hifi_input
    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 2:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 7:
    - name: fast input
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    - flags: 0x0001 (AUDIO_INPUT_FLAG_FAST)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: BT SCO Headset Mic
      - type: AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_ALL_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
      Device 5:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
    input 8:
    - name: quad mic
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x8000000f
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 17
      - tag name: Built-In Mic
      - type: AUDIO_DEVICE_IN_BUILTIN_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: bottom
      Device 2:
      - tag name: BT SCO Headset Mic
      - type: AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_ALL_SCO
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 3:
      - tag name: Wired Headset Mic
      - type: AUDIO_DEVICE_IN_WIRED_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 4:
      - id: 19
      - tag name: Built-In Back Mic
      - type: AUDIO_DEVICE_IN_BACK_MIC
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: back
      Device 5:
      - tag name: USB Device In
      - type: AUDIO_DEVICE_IN_USB_DEVICE
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      Device 6:
      - tag name: USB Headset In
      - type: AUDIO_DEVICE_IN_USB_HEADSET
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - Declared devices:
    Device 1:
    - id:  2
    - tag name: Earpiece
    - type: AUDIO_DEVICE_OUT_EARPIECE
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0010
    Device 2:
    - id:  3
    - tag name: Speaker
    - type: AUDIO_DEVICE_OUT_SPEAKER
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 3:
    - tag name: Wired Headset
    - type: AUDIO_DEVICE_OUT_WIRED_HEADSET
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 4:
    - tag name: Wired Headphones
    - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 5:
    - tag name: BT SCO
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000
            - channel masks:0x0001
    Device 6:
    - tag name: BT SCO Headset
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000
            - channel masks:0x0001
    Device 7:
    - tag name: BT SCO Car Kit
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000
            - channel masks:0x0001
    Device 8:
    - tag name: BT A2DP Out
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 9:
    - tag name: BT A2DP Headphones
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 10:
    - tag name: BT A2DP Speaker
    - type: AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 11:
    - tag name: HDMI
    - type: AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_HDMI
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic channels]
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
    Device 12:
    - tag name: USB Device Out
    - type: AUDIO_DEVICE_OUT_USB_DEVICE
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic channels]
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
    Device 13:
    - id: 11
    - tag name: Telephony Tx
    - type: AUDIO_DEVICE_OUT_TELEPHONY_TX
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000
            - channel masks:0x0001, 0x0003
    Device 14:
    - tag name: Line
    - type: AUDIO_DEVICE_OUT_LINE
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 15:
    - tag name: FM
    - type: AUDIO_DEVICE_OUT_FM
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0001, 0x0003
    Device 16:
    - tag name: Proxy
    - type: AUDIO_DEVICE_OUT_PROXY
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic channels]
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
    Device 17:
    - tag name: USB Headset Out
    - type: AUDIO_DEVICE_OUT_USB_HEADSET
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic channels]
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
    Device 18:
    - id: 17
    - tag name: Built-In Mic
    - type: AUDIO_DEVICE_IN_BUILTIN_MIC
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - address: bottom
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    Device 19:
    - tag name: BT SCO Headset Mic
    - type: AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_ALL_SCO
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000
            - channel masks:0x0010
    Device 20:
    - tag name: Wired Headset Mic
    - type: AUDIO_DEVICE_IN_WIRED_HEADSET
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    Device 21:
    - id: 18
    - tag name: Telephony Rx
    - type: AUDIO_DEVICE_IN_TELEPHONY_RX|AUDIO_DEVICE_IN_VOICE_CALL
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 16000, 48000
            - channel masks:0x0010
        Profile 1:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    Device 22:
    - id: 19
    - tag name: Built-In Back Mic
    - type: AUDIO_DEVICE_IN_BACK_MIC
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - address: back
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    Device 23:
    - tag name: USB Device In
    - type: AUDIO_DEVICE_IN_USB_DEVICE
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
    Device 24:
    - id: 20
    - tag name: FM Tuner
    - type: AUDIO_DEVICE_IN_FM_TUNER
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x000c, 0x0010
        Profile 1:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
            - channel masks:0x000c, 0x0010, 0x0030
    Device 25:
    - tag name: USB Headset In
    - type: AUDIO_DEVICE_IN_USB_HEADSET
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
 
  Audio Routes (26):
  - Route 1:
    - Type: Mix
    - Sink: Earpiece
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
 
  - Route 2:
    - Type: Mix
    - Sink: Speaker
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
 
  - Route 3:
    - Type: Mix
    - Sink: Wired Headset
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
 
  - Route 4:
    - Type: Mix
    - Sink: Wired Headphones
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
 
  - Route 5:
    - Type: Mix
    - Sink: Line
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
 
  - Route 6:
    - Type: Mix
    - Sink: HDMI
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        compress_passthrough
        voip_rx
 
  - Route 7:
    - Type: Mix
    - Sink: Proxy
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
 
  - Route 8:
    - Type: Mix
    - Sink: FM
    - Sources:
        primary output
 
  - Route 9:
    - Type: Mix
    - Sink: BT SCO
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 10:
    - Type: Mix
    - Sink: BT SCO Headset
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 11:
    - Type: Mix
    - Sink: BT SCO Car Kit
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 12:
    - Type: Mix
    - Sink: USB Device Out
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
        hifi_playback
 
  - Route 13:
    - Type: Mix
    - Sink: USB Headset Out
    - Sources:
        primary output
        raw
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
        mmap_no_irq_out
        hifi_playback
 
  - Route 14:
    - Type: Mix
    - Sink: Telephony Tx
    - Sources:
        voice_tx
        incall_music_uplink
 
  - Route 15:
    - Type: Mix
    - Sink: voice_rx
    - Sources:
        Telephony Rx
 
  - Route 16:
    - Type: Mix
    - Sink: primary input
    - Sources:
        Built-In Mic
        Built-In Back Mic
        Wired Headset Mic
        BT SCO Headset Mic
        FM Tuner
        USB Device In
        USB Headset In
        Telephony Rx
 
  - Route 17:
    - Type: Mix
    - Sink: usb_surround_sound
    - Sources:
        USB Device In
        USB Headset In
 
  - Route 18:
    - Type: Mix
    - Sink: voip_tx
    - Sources:
        Built-In Mic
        Built-In Back Mic
        BT SCO Headset Mic
        USB Device In
        USB Headset In
        Wired Headset Mic
 
  - Route 19:
    - Type: Mix
    - Sink: record_24
    - Sources:
        Built-In Mic
        Built-In Back Mic
        Wired Headset Mic
 
  - Route 20:
    - Type: Mix
    - Sink: mmap_no_irq_in
    - Sources:
        Built-In Mic
        Built-In Back Mic
        Wired Headset Mic
        USB Device In
        USB Headset In
 
  - Route 21:
    - Type: Mix
    - Sink: BT A2DP Out
    - Sources:
        primary output
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 22:
    - Type: Mix
    - Sink: BT A2DP Headphones
    - Sources:
        primary output
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 23:
    - Type: Mix
    - Sink: BT A2DP Speaker
    - Sources:
        primary output
        deep_buffer
        direct_pcm
        compressed_offload
        voip_rx
 
  - Route 24:
    - Type: Mix
    - Sink: hifi_input
    - Sources:
        USB Device In
        USB Headset In
 
  - Route 25:
    - Type: Mix
    - Sink: fast input
    - Sources:
        Built-In Mic
        Built-In Back Mic
        BT SCO Headset Mic
        USB Device In
        USB Headset In
        Wired Headset Mic
 
  - Route 26:
    - Type: Mix
    - Sink: quad mic
    - Sources:
        Built-In Mic
        Built-In Back Mic
        BT SCO Headset Mic
        USB Device In
        USB Headset In
        Wired Headset Mic
 
- HW Module 2:
  - name: a2dp
  - handle: 18
  - version: 2.0
  - inputs:
    input 0:
    - name: a2dp input
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100, 48000
            - channel masks:0x000c, 0x0010
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: BT A2DP In
      - type: AUDIO_DEVICE_IN_BLUETOOTH_A2DP
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - Declared devices:
    Device 1:
    - tag name: BT A2DP In
    - type: AUDIO_DEVICE_IN_BLUETOOTH_A2DP
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100, 48000
            - channel masks:0x000c, 0x0010
 
  Audio Routes (1):
  - Route 1:
    - Type: Mix
    - Sink: a2dp input
    - Sources:
        BT A2DP In
 
- HW Module 3:
  - name: usb
  - handle: 26
  - version: 2.0
  - outputs:
    output 0:
    - name: usb_accessory output
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100
            - channel masks:0x0003
    - flags: 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: USB Host Out
      - type: AUDIO_DEVICE_OUT_USB_ACCESSORY
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - Declared devices:
    Device 1:
    - tag name: USB Host Out
    - type: AUDIO_DEVICE_OUT_USB_ACCESSORY
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:44100
            - channel masks:0x0003
 
  Audio Routes (1):
  - Route 1:
    - Type: Mix
    - Sink: USB Host Out
    - Sources:
        usb_accessory output
 
- HW Module 4:
  - name: r_submix
  - handle: 34
  - version: 2.0
  - outputs:
    output 0:
    - name: r_submix output
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    - flags: 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: Remote Submix Out
      - type: AUDIO_DEVICE_OUT_REMOTE_SUBMIX
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: 0
 
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - inputs:
    input 0:
    - name: r_submix input
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x000c
    - flags: 0x0000 (AUDIO_INPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - id: 28
      - tag name: Remote Submix In
      - type: AUDIO_DEVICE_IN_REMOTE_SUBMIX
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0      - address: 0
 
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - Declared devices:
    Device 1:
    - tag name: Remote Submix Out
    - type: AUDIO_DEVICE_OUT_REMOTE_SUBMIX
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - address: 0
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x0003
    Device 2:
    - id: 28
    - tag name: Remote Submix In
    - type: AUDIO_DEVICE_IN_REMOTE_SUBMIX
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - address: 0
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:48000
            - channel masks:0x000c
 
  Audio Routes (2):
  - Route 1:
    - Type: Mix
    - Sink: Remote Submix Out
    - Sources:
        r_submix output
 
  - Route 2:
    - Type: Mix
    - Sink: r_submix input
    - Sources:
        Remote Submix In
 
- HW Module 5:
  - name: bluetooth_qti
  - handle: 42
  - version: 2.0
  - outputs:
    output 0:
    - name: hearing aid output
    - Profiles:
        Profile 0:
            - format: AUDIO_FORMAT_PCM_16_BIT
            - sampling rates:16000, 24000
            - channel masks:0x0003
    - flags: 0x0000 (AUDIO_OUTPUT_FLAG_NONE)
    - Supported devices:
      Device 1:
      - tag name: BT Hearing Aid Out
      - type: AUDIO_DEVICE_OUT_HEARING_AID
      - supported encapsulation modes: 0      - supported encapsulation metadata types: 0
    - maxOpenCount: 1 - curOpenCount: 0
    - maxActiveCount: 1 - curActiveCount: 0
  - Declared devices:
    Device 1:
    - tag name: BT Hearing Aid Out
    - type: AUDIO_DEVICE_OUT_HEARING_AID
    - supported encapsulation modes: 0    - supported encapsulation metadata types: 0    - Profiles:
        Profile 0:[dynamic format][dynamic channels][dynamic rates]
 
  Audio Routes (1):
  - Route 1:
    - Type: Mix
    - Sink: BT Hearing Aid Out
    - Sources:
        hearing aid output
 
 
Outputs dump:
- Output 13 dump:
 Latency: 48
 Flags 00000006
 ID: 1
 Sampling rate: 48000
 Format: 00000006
 Channels: 00000003
 Devices: {type:0x2,@:}
 Global active count: 0
 Volume Activities id: 1    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 2    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 4    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 5    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 6    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 7    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 8    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 9    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 10    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 11    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 12    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 13    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 20    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 23    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 AudioTrack Clients:
  Client 1:
  - Port Id: 29 Session Id: 9 UID: 1001
  - Format: 00000001 Sampling rate: 0 Channels: 00000001
  - Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x400 Tags:  }
  - Preferred Device Id: 00000000
  - State: Inactive
  - Stream: 8 flags: 00000004
  - Refcount: 0
  - DAP Primary Mix: 0x0
  - DAP Secondary Outputs:
  Client 2:
  - Port Id: 30 Session Id: 17 UID: 1001
  - Format: 00000001 Sampling rate: 0 Channels: 00000001
  - Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x400 Tags:  }
  - Preferred Device Id: 00000000
  - State: Inactive
  - Stream: 8 flags: 00000004
  - Refcount: 0
  - DAP Primary Mix: 0x0
  - DAP Secondary Outputs:
 
- Output 29 dump:
 Latency: 80
 Flags 00000008
 ID: 5
 Sampling rate: 48000
 Format: 00000006
 Channels: 00000003
 Devices: {type:0x2,@:}
 Global active count: 0
 Product Strategy id: 19    - ActivityCount: 0, StopTime: 971057866452,
 Volume Activities id: 1    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 2    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 4    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 5    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 6    - ActivityCount: 0, StopTime: 971057866452, , Volume: -758.000, MuteCount: 00
 Volume Activities id: 7    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 8    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 9    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 10    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 11    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 12    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 13    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 20    - ActivityCount: 0, StopTime: 0, , Volume: nan, MuteCount: 00
 Volume Activities id: 23    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 AudioTrack Clients:
 
- Output 61 dump:
 Latency: 112
 Flags 00000000
 ID: 10
 Sampling rate: 48000
 Format: 00000001
 Channels: 00000003
 Devices: {type:0x10000,@:}
 Global active count: 0
 Volume Activities id: 1    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 2    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 4    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 5    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 6    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 7    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 8    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 9    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 10    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 11    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 12    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 13    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 20    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 23    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 AudioTrack Clients:
 
- Output 77 dump:
 Latency: 50
 Flags 00010000
 ID: 14
 Sampling rate: 48000
 Format: 00000001
 Channels: 00000003
 Devices: {type:0x10000,@:}
 Global active count: 0
 Volume Activities id: 1    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 2    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 4    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 5    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 6    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 7    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 8    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 9    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 10    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 11    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 12    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 13    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 20    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 Volume Activities id: 23    - ActivityCount: 0, StopTime: 0, , Volume: 0.000, MuteCount: 00
 AudioTrack Clients:
 
 
Inputs dump:
 
Total Effects CPU: 0.000000 MIPS, Total Effects memory: 2 KB, Max memory used: 3 KB
Effects:
- Effect 11:
  ID: 11
  I/O: 13
  Music Effect: yes
  Session: 0
  Name: haptic
  Disabled
  Active
- Effect 19:
  ID: 19
  I/O: 13
  Music Effect: yes
  Session: 0
  Name: Dirac GEF Audio Flinger Effect, GEF Output
  Enabled
  Active
 
Audio Patches:
  Patch 1: owner uid 1041, handle  4, af handle 12
    [src  1] Mix ID 1 I/O handle 13
    [sink 1] Device ID 3 AUDIO_DEVICE_OUT_SPEAKER
  Patch 2: owner uid 1041, handle  6, af handle 20
    [src  1] Mix ID 5 I/O handle 29
    [sink 1] Device ID 3 AUDIO_DEVICE_OUT_SPEAKER
  Patch 3: owner uid 1041, handle 12, af handle 28
    [src  1] Mix ID 10 I/O handle 61
    [sink 1] Device ID 11 AUDIO_DEVICE_OUT_TELEPHONY_TX
  Patch 4: owner uid 1041, handle 15, af handle 36
    [src  1] Mix ID 14 I/O handle 77
    [sink 1] Device ID 11 AUDIO_DEVICE_OUT_TELEPHONY_TX
 
Audio Policy Mix:
 
Audio sources:
 AllowedCapturePolicies:
   - uid=10146 flag_mask=0x1400
 
Policy Engine dump:
  Product Strategies dump:
    -STRATEGY_PHONE (id: 14)
      Selected Device: {type:AUDIO_DEVICE_OUT_EARPIECE, @:}
       Group: 13 stream: AUDIO_STREAM_VOICE_CALL
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 3 stream: AUDIO_STREAM_BLUETOOTH_SCO
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x4 Tags:  }
 
    -STRATEGY_SONIFICATION (id: 15)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 10 stream: AUDIO_STREAM_RING
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 2 stream: AUDIO_STREAM_ALARM
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ALARM Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_ENFORCED_AUDIBLE (id: 16)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 5 stream: AUDIO_STREAM_ENFORCED_AUDIBLE
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x1 Tags:  }
 
    -STRATEGY_ACCESSIBILITY (id: 17)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 1 stream: AUDIO_STREAM_ACCESSIBILITY
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_SONIFICATION_RESPECTFUL (id: 18)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 7 stream: AUDIO_STREAM_NOTIFICATION
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_EVENT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_MEDIA (id: 19)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 20 stream: AUDIO_STREAM_ASSISTANT
        Attributes: { Content type: AUDIO_CONTENT_TYPE_SPEECH Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_MEDIA Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_GAME Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       Group: 6 stream: AUDIO_STREAM_MUSIC
        Attributes: { Any }
       Group: 11 stream: AUDIO_STREAM_SYSTEM
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_SONIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_DTMF (id: 21)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 4 stream: AUDIO_STREAM_DTMF
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_CALL_ASSISTANT (id: 22)
      Selected Device: {type:AUDIO_DEVICE_OUT_TELEPHONY_TX, @:}
       Group: 23 stream: AUDIO_STREAM_CALL_ASSISTANT
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_CALL_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
 
    -STRATEGY_TRANSMITTED_THROUGH_SPEAKER (id: 24)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 12 stream: AUDIO_STREAM_TTS
        Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x8 Tags:  }
 
    -rerouting (id: 25)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 9 stream: AUDIO_STREAM_REROUTING
        Attributes: { Any }
 
    -patch (id: 26)
      Selected Device: {type:AUDIO_DEVICE_OUT_SPEAKER, @:}
       Group: 8 stream: AUDIO_STREAM_PATCH
        Attributes: { Any }
 
  Preferred devices per product strategy dump:
 
  Volume Groups dump:
    -AUDIO_STREAM_ACCESSIBILITY (id: 1)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ACCESSIBILITY(10)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  0, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          01         15         0002 : 01, 40000000 : 08,
 
 
    -AUDIO_STREAM_ALARM (id: 2)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ALARM(4)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ALARM Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
       DEVICE_CATEGORY_HEARING_AID : { (  0, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         40000000 : 06,
 
 
    -AUDIO_STREAM_BLUETOOTH_SCO (id: 3)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_BLUETOOTH_SCO(6)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x4 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -4200),  ( 33, -2800),  ( 66, -1400),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         40000000 : 07,
 
 
    -AUDIO_STREAM_DTMF (id: 4)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_DTMF(8)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 00, 40000000 : 00,
 
 
    -AUDIO_STREAM_ENFORCED_AUDIBLE (id: 5)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ENFORCED_AUDIBLE(7)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x1 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 00, 40000000 : 00,
 
 
    -AUDIO_STREAM_MUSIC (id: 6)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_MUSIC(3)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_MEDIA Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_GAME Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Any }
       DEVICE_CATEGORY_HEADSET : { (  1, -6100),  ( 20, -4000),  ( 60, -1650),  (100,  -150) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -5350),  ( 20, -3600),  ( 60, -1800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         30         0002 : 00, 40000000 : 15,
 
 
    -AUDIO_STREAM_NOTIFICATION (id: 7)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_NOTIFICATION(5)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
                    { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_EVENT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 00, 40000000 : 00,
 
 
    -AUDIO_STREAM_PATCH (id: 8)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_PATCH(13)
       Attributes: { Any }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 00,
 
 
    -AUDIO_STREAM_REROUTING (id: 9)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_REROUTING(12)
       Attributes: { Any }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 00,
 
 
    -AUDIO_STREAM_RING (id: 10)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_RING(2)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -4600),  ( 33, -3400),  ( 66, -2000),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -4950),  ( 33, -3350),  ( 66, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -2970),  ( 33, -2010),  ( 66, -1020),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 00, 40000000 : 00,
 
 
    -AUDIO_STREAM_SYSTEM (id: 11)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_SYSTEM(1)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_ASSISTANCE_SONIFICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -3000),  ( 33, -2600),  ( 66, -2200),  (100, -1800) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -2400),  ( 33, -1800),  ( 66, -1200),  (100,  -600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -2100),  (100, -1000) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         07         0002 : 00, 40000000 : 00,
 
 
    -AUDIO_STREAM_TTS (id: 12)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_TTS(9)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_UNKNOWN Source: AUDIO_SOURCE_DEFAULT Flags: 0x8 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -9600),  (100, -9600) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -9600),  (100, -9600) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0, -9600),  (100, -9600) }
       DEVICE_CATEGORY_HEARING_AID : { (  0, -9600),  (100, -9600) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 00, 40000000 : 08,
 
 
    -AUDIO_STREAM_VOICE_CALL (id: 13)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_VOICE_CALL(0)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_VOICE_COMMUNICATION Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0, -4200),  ( 33, -2800),  ( 66, -1400),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0, -2200),  ( 33, -1500),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0, -2400),  ( 33, -1600),  ( 66,  -800),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          01         09         40000000 : 06,
 
 
    -AUDIO_STREAM_ASSISTANT (id: 20)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_ASSISTANT(11)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_SPEECH Usage: AUDIO_USAGE_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  1, -6100),  ( 20, -4000),  ( 60, -1650),  (100,  -150) }
       DEVICE_CATEGORY_SPEAKER : { (  1, -5350),  ( 20, -3600),  ( 60, -1800),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  1, -5800),  ( 20, -4000),  ( 60, -1700),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  1, -12700),  ( 20, -8000),  ( 60, -4000),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         15         0002 : 00, 40000000 : 08,
 
 
    -AUDIO_STREAM_CALL_ASSISTANT (id: 23)
      Volume Curves Streams/Attributes, Curve points Streams for device category (index, attenuation in millibel)
       Streams: AUDIO_STREAM_CALL_ASSISTANT(14)
       Attributes: { Content type: AUDIO_CONTENT_TYPE_UNKNOWN Usage: AUDIO_USAGE_CALL_ASSISTANT Source: AUDIO_SOURCE_DEFAULT Flags: 0x0 Tags:  }
       DEVICE_CATEGORY_HEADSET : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_SPEAKER : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EARPIECE : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_EXT_MEDIA : { (  0,     0),  (100,     0) }
       DEVICE_CATEGORY_HEARING_AID : { (  0,     0),  (100,     0) }
        Can be muted  Index Min  Index Max  Index Cur [device : index]...
        true          00         100         40000000 : 15,
 
 
AudioPolicyManagerCustom Dump: 0xb4000070aa4682f0
audio_offload_video: 0
audio_offload_disable: 0
audio_deepbuffer_media: 1
audio_av_streaming_offload_enable: 0
audio_offload_track_enable: 1
audio_offload_multiple_enabled: 0
voice_dsd_playback_conc_disabled: 1
audio_sva_conc_enabled: 0
audio_va_concurrency_enabled: 0
audio_rec_playback_conc_disabled: 0
voice_path_for_pcm_voip: 1
voice_playback_conc_disabled: 0
voice_record_conc_disabled: 0
voice_voip_conc_disabled: 0
audio_offload_min_duration_secs: 30
voice_conc_fallbackpath:
audio_extn_hdmi_spk_enabled: 1
audio_extn_formats_enabled: 1
audio_extn_afe_proxy_enabled: 1
compress_voip_enabled: 0
fm_power_opt: 1
voice_concurrency: 0
record_play_concurrency: 0
use_xml_audio_policy_conf: 1
Allow playback capture log:
  Package manager errors: 0
  - uid= 1001, allowPlaybackCapture=false, packageName=shared:android.uid.phone
  - uid=10253, allowPlaybackCapture=true , packageName=com.google.android.exoplayer2.demo
 

@dwhea
Copy link
Contributor Author

dwhea commented Aug 5, 2021

TV device / STB may support offload for HW codec processing / audio pipelines. An example of this is the TCL 55T8S TV, which shows the E_AC3 and AC4 codecs available via OFFLOAD path:

TCL 55T8S TV audio policy dumpsys HW Modules dump: - HW Module 1: - name: primary - handle: 10 - version: 3.0 - outputs: output 0: - name: primary output - Profiles: Profile 0: - format: AUDIO_FORMAT_PCM_16_BIT - sampling rates:44100, 48000 - channel masks:0x0003 - flags: 0x0002 (AUDIO_OUTPUT_FLAG_PRIMARY) - Supported devices: Device 1: - id: 2 - tag name: Speaker - type: AUDIO_DEVICE_OUT_SPEAKER Device 2: - tag name: Wired Headset - type: AUDIO_DEVICE_OUT_WIRED_HEADSET Device 3: - tag name: Wired Headphones - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE Device 4: - tag name: HDMI Out - type: AUDIO_DEVICE_OUT_AUX_DIGITAL Device 5: - tag name: HDMI Arc - type: AUDIO_DEVICE_OUT_HDMI_ARC
- maxOpenCount: 1 - curOpenCount: 1
- maxActiveCount: 1 - curActiveCount: 0
output 1:
- name: deep buffer
- Profiles:
    Profile 0:
        - format: AUDIO_FORMAT_PCM_16_BIT
        - sampling rates:8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
        - channel masks:0x0003
- flags: 0x0008 (AUDIO_OUTPUT_FLAG_DEEP_BUFFER)
- Supported devices:
  Device 1:
  - id:  2
  - tag name: Speaker
  - type: AUDIO_DEVICE_OUT_SPEAKER                        
  Device 2:
  - tag name: Wired Headset
  - type: AUDIO_DEVICE_OUT_WIRED_HEADSET                  
  Device 3:
  - tag name: Wired Headphones
  - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE                
  Device 4:
  - tag name: HDMI Out
  - type: AUDIO_DEVICE_OUT_AUX_DIGITAL                    
  Device 5:
  - tag name: HDMI Arc
  - type: AUDIO_DEVICE_OUT_HDMI_ARC                       

- maxOpenCount: 1 - curOpenCount: 1
- maxActiveCount: 1 - curActiveCount: 1
output 2:
- name: hdmi output
- Profiles:
    Profile 0:
        - format: AUDIO_FORMAT_PCM_16_BIT
        - sampling rates:44100, 48000
        - channel masks:0x0003
- flags: 0x0041 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_HW_AV_SYNC)
- Supported devices:
  Device 1:
  - id:  2
  - tag name: Speaker
  - type: AUDIO_DEVICE_OUT_SPEAKER                        
  Device 2:
  - tag name: Wired Headphones
  - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE                
  Device 3:
  - tag name: HDMI Out
  - type: AUDIO_DEVICE_OUT_AUX_DIGITAL                    
  Device 4:
  - tag name: HDMI Arc
  - type: AUDIO_DEVICE_OUT_HDMI_ARC                       

- maxOpenCount: 1 - curOpenCount: 0
- maxActiveCount: 1 - curActiveCount: 0
output 3:
- name: compressed_offload
- Profiles:
    Profile 0:
        - format: AUDIO_FORMAT_E_AC3
        - sampling rates:48000
        - channel masks:0x0003, 0x003f
    Profile 1:
        - format: AUDIO_FORMAT_AC4
        - sampling rates:48000
        - channel masks:0x0003, 0x003f
- flags: 0x0071 (AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_HW_AV_SYNC)
- Supported devices:
  Device 1:
  - id:  2
  - tag name: Speaker
  - type: AUDIO_DEVICE_OUT_SPEAKER                        
  Device 2:
  - tag name: Wired Headphones
  - type: AUDIO_DEVICE_OUT_WIRED_HEADPHONE                
  Device 3:
  - tag name: HDMI Out
  - type: AUDIO_DEVICE_OUT_AUX_DIGITAL                    
  Device 4:
  - tag name: HDMI Arc
  - type: AUDIO_DEVICE_OUT_HDMI_ARC                       

- maxOpenCount: 1 - curOpenCount: 0
- maxActiveCount: 1 - curActiveCount: 0

@google google locked and limited conversation to collaborators Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants