Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 412ec213 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libaudiohal: Fix initialization of SinkMetadata for HAL V7" am: 1b8e0f7d

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1580726

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I78b712e83dec248402d6196e45bfe20ac7df1de4
parents b6388913 1b8e0f7d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -265,6 +265,10 @@ status_t DeviceHalHidl::openInputStream(
    (void)outputDevice;
    (void)outputDeviceAddress;
#else
#if MAJOR_VERSION >= 7
    (void)HidlUtils::audioChannelMaskFromHal(
            AUDIO_CHANNEL_NONE, true /*isInput*/, &sinkMetadata.tracks[0].channelMask);
#endif
    if (outputDevice != AUDIO_DEVICE_NONE) {
        DeviceAddress hidlOutputDevice;
        if (status_t status = CoreUtils::deviceAddressFromHal(