audio_hw: close mmap file descriptor to fix leak
The file descriptor for MMAP shared memory was created and passed to AudioFlinger but never closed. Now FD is closed when the stream is goes to standby. Bug: 134381208 Test: Get HAL pid. Test: adb shell ps | grep audio Test: adb shell ls -l /proc/{halpid}/fd | wc Test: Run Oboetester or other app that uses MMAP Test: Completely close the app. Test: adb shell ls -l /proc/{halpid}/fd | wc Test: Count should NOT grow each time. Change-Id: Ieaaf1c6bdc96e7ecf01cee23215fb39f79662111 (cherry picked from commit 2e27354fd3c5adec2524813d7c34114922d3e8f4)
Loading
Please register or sign in to comment