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

Commit e35d4aff authored by Kevin Rocard's avatar Kevin Rocard
Browse files

HAL: msm89{16,74} cleanup mixer on platform deinit



Avoid leaking mixer file descriptor resources. Those leaks were breaking
the VTS tests.

Test: vts-tradefed run vts --module VtsHalAudioV2_0Target
Test: call/play music/record/video...
Bug: 36311550
Change-Id: Ibacab6a988cf8fb1541a74ed875139e23e12c8d8
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent 75d41bfb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1054,6 +1054,7 @@ void platform_deinit(void *platform)
        free(info_item);
    }

    mixer_close(my_data->adev->mixer);
    free(platform);
}

+1 −0
Original line number Diff line number Diff line
@@ -1483,6 +1483,7 @@ void platform_deinit(void *platform)
        free(info_item);
    }

    mixer_close(my_data->adev->mixer);
    free(platform);

    /* deinit usb */