summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAditya Bavanari <abavanar@codeaurora.org>2016-10-19 19:44:02 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-20 22:24:12 -0700
commit4d4eafb1e2c2dde19f9fcc0c250ecdf304406f9b (patch)
tree8c4dc4f3d95f7e39769b53ac9fc357de5f4f11c7 /include
parent6ee87610acf2927de5365f456ca0e6529f5c0d1a (diff)
ASoC: msm: qdsp6v2: Add support for speaker swap
Add mixer control to swap the speaker channels. Use MFC module to update the channel mapping. When playback is started with speaker device and device orientation changes, swapping L/R channel mixer control command is sent to DSP with the MFC module. CRs-Fixed: 1026248 Change-Id: I1d80ecc7f1e3cfb8f8cdf71c384e92a07023be5c Signed-off-by: kunleiz <kunleiz@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/q6adm-v2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/q6adm-v2.h b/include/sound/q6adm-v2.h
index 42d048f24e12..f3443b79ba51 100644
--- a/include/sound/q6adm-v2.h
+++ b/include/sound/q6adm-v2.h
@@ -164,4 +164,6 @@ int adm_get_sound_focus(int port_id, int copp_idx,
struct sound_focus_param *soundFocusData);
int adm_get_source_tracking(int port_id, int copp_idx,
struct source_tracking_param *sourceTrackingData);
+int adm_swap_speaker_channels(int port_id, int copp_idx, int sample_rate,
+ bool spk_swap);
#endif /* __Q6_ADM_V2_H__ */