summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authordaniel_hk <daniel.p6800@gmail.com>2016-02-06 20:25:52 +0800
committerZiyan <jaraidaniel@gmail.com>2016-07-03 12:32:33 +0200
commit4f38202268c538cd87cadc601ea1c8fae549b690 (patch)
treec624b2fdfd576a67f8babb20ec9e1d8e5565000e /audio
parentbbc6edf9ed51fc112683839bfd59967fe3307db0 (diff)
Set up the mixer at adev_open()
M doesn't select the audio device at start now. Hence the mixer is not properly set up. That's why there is no audio output after reboot. However, when the orientation sensor detected changes, the audio HAL driver will be adjusted. During the adjustment, the mixer is reset and bring the audio back. To fix this strange scenario, I set up the mixer with select_device() at the end of device open. Change-Id: I6878993da55d0ee76b81229e20c2c16f53bf7ac3
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 49c9a54..7e26e1f 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1181,6 +1181,7 @@ static int adev_open(const hw_module_t* module, const char* name,
*device = &adev->hw_device.common;
+ select_devices(adev);
return 0;
}