hal: Fix setting stream channel map properly

Fix setting stream channel map properly

Change-Id: I78620f699c5c5ceb9d4e282bb35911574cf9dca5
This commit is contained in:
Alexy Joseph 2014-12-01 16:06:34 -08:00
parent a8646d9d71
commit e844aad3f1
1 changed files with 3 additions and 0 deletions

View File

@ -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;