From e844aad3f1e621d2bb43979f0b6f836ed9cb2d81 Mon Sep 17 00:00:00 2001 From: Alexy Joseph Date: Mon, 1 Dec 2014 16:06:34 -0800 Subject: [PATCH] hal: Fix setting stream channel map properly Fix setting stream channel map properly Change-Id: I78620f699c5c5ceb9d4e282bb35911574cf9dca5 --- hal/msm8974/platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index e39c48e5..675a3061 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -3164,10 +3164,12 @@ int platform_set_stream_channel_map(void *platform, audio_channel_mask_t channel case 1: /* AUDIO_CHANNEL_OUT_MONO */ channel_map[0] = PCM_CHANNEL_FC; + break; case 2: /* AUDIO_CHANNEL_OUT_STEREO */ channel_map[0] = PCM_CHANNEL_FL; channel_map[1] = PCM_CHANNEL_FR; + break; case 3: /* AUDIO_CHANNEL_OUT_2POINT1 */ channel_map[0] = PCM_CHANNEL_FL; @@ -3222,6 +3224,7 @@ int platform_set_stream_channel_map(void *platform, audio_channel_mask_t channel channel_map[4] = PCM_CHANNEL_LB; channel_map[5] = PCM_CHANNEL_RB; channel_map[6] = PCM_CHANNEL_CS; + break; case 8: /* AUDIO_CHANNEL_OUT_7POINT1 */ channel_map[0] = PCM_CHANNEL_FL;