summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorstenkinevgeniy <stenkinevgeniy@gmail.com>2018-05-08 06:52:05 +0000
committerChristopher H. <raymanfx@gmail.com>2018-05-18 12:45:41 +0200
commit2ef158a26834e47ca8a38dfc09b65da28a29526a (patch)
treeaa214c5f54f401e94fddef31c62bcb36764e099d /audio
parent44335364f633fda7447b4fff9a2106bf1abcdc09 (diff)
downloadhardware_samsung-2ef158a26834e47ca8a38dfc09b65da28a29526a.tar.gz
hardware_samsung-2ef158a26834e47ca8a38dfc09b65da28a29526a.tar.bz2
hardware_samsung-2ef158a26834e47ca8a38dfc09b65da28a29526a.zip
Audio: out_open_pcm_devices - use out->config instead of pcm_device->pcm_profile->config.
Current get_pcm_device return always first finded pcm_profile. And out->pcm_dev_list always have only pcm_device_playback pcm_profiles. But if we need use deep_buffer pcm device we need use deep_bufer pcm_config - current hal don't did this... And we configure out->config in adev_open_output_stream function with proper pcm_config (deep or no). Change-Id: I86fdb18202afb0e83393f32830d57c929f174ae6 (cherry picked from commit 39d1d019965d04ddfad2c643de53cd5501803aa4)
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index c76bac4..ce452ef 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2421,7 +2421,7 @@ static int out_open_pcm_devices(struct stream_out *out)
__func__, pcm_device_card, pcm_device_id);
pcm_device->pcm = pcm_open(pcm_device_card, pcm_device_id,
- PCM_OUT | PCM_MONOTONIC, &pcm_device->pcm_profile->config);
+ PCM_OUT | PCM_MONOTONIC, &out->config);
if (pcm_device->pcm && !pcm_is_ready(pcm_device->pcm)) {
ALOGE("%s: %s", __func__, pcm_get_error(pcm_device->pcm));