diff options
author | Shalini Manjunatha <shalma@codeaurora.org> | 2020-02-17 13:14:37 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-12-20 19:55:39 -0800 |
commit | 59fbc5e92ca04f89219d0a4cc2a43d5801f0f6c3 (patch) | |
tree | 6c0c6b164bd8910852ab2928ff4a95fa4eda62e2 | |
parent | b02e0165002f54bfb365dcdce8a8ba1f5c36562f (diff) |
AHAL: setting 4 channel mapping info for proxy device
- Added an additional support for setting channel mapping
of 4 channel for proxy device
Change-Id: Ic4648ba3b222c714eaca71cf37f6204d73284d67
Signed-off-by: Shalini Manjunatha <shalma@codeaurora.org>
-rw-r--r-- | hal/audio_extn/audio_extn.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hal/audio_extn/audio_extn.c b/hal/audio_extn/audio_extn.c index 04e7a55c..3fdeb9b5 100644 --- a/hal/audio_extn/audio_extn.c +++ b/hal/audio_extn/audio_extn.c @@ -1294,6 +1294,12 @@ static int32_t afe_proxy_set_channel_mapping(struct audio_device *adev, set_values[0] = PCM_CHANNEL_FL; set_values[1] = PCM_CHANNEL_FR; break; + case 4: + set_values[0] = PCM_CHANNEL_FL; + set_values[1] = PCM_CHANNEL_FR; + set_values[2] = PCM_CHANNEL_LS; + set_values[3] = PCM_CHANNEL_LFE; + break; case 6: set_values[0] = PCM_CHANNEL_FL; set_values[1] = PCM_CHANNEL_FR; @@ -1390,7 +1396,7 @@ int32_t audio_extn_set_afe_proxy_channel_mixer(struct audio_device *adev, } mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); - if (channel_count == 6 || channel_count == 8 || channel_count == 2) { + if (channel_count == 6 || channel_count == 8 || channel_count == 2 || channel_count == 4) { ret = afe_proxy_set_channel_mapping(adev, channel_count, snd_device); } else { ALOGE("%s: set unsupported channel count(%d)", __func__, channel_count); |