summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Kumar Dasari <Arun@codeaurora.org>2016-12-27 20:14:16 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-11 02:09:00 -0800
commit2ea01bbff19554a3ff4a6f45b160b39705834cf2 (patch)
treea5dd8b9b01e2363414d8ef4bbc4a6b5e2bce92c2
parent0a8e939a4e57d86da88c9856cd266447fc45ea85 (diff)
ASoc: msm: qdsp6v2: add support for AAC LATM playback
Add support for AAC LATM clips. Define macro for AAC LATM format and configure media format block with this value for AAC LATM clips. CRs-Fixed: 1108268 Change-Id: I10cf2db9fc7e4d40d2bf910e162b3c2d95d8a03c Signed-off-by: Surendar karka <sukark@codeaurora.org>
-rw-r--r--include/sound/apr_audio-v2.h5
-rw-r--r--sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/include/sound/apr_audio-v2.h b/include/sound/apr_audio-v2.h
index e098e2329ac6..6bcd90fb12ff 100644
--- a/include/sound/apr_audio-v2.h
+++ b/include/sound/apr_audio-v2.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -4120,6 +4120,9 @@ struct asm_multi_channel_pcm_enc_cfg_v2 {
/* Enumeration for the raw AAC format. */
#define ASM_MEDIA_FMT_AAC_FORMAT_FLAG_RAW 3
+/* Enumeration for the AAC LATM format. */
+#define ASM_MEDIA_FMT_AAC_FORMAT_FLAG_LATM 4
+
#define ASM_MEDIA_FMT_AAC_AOT_LC 2
#define ASM_MEDIA_FMT_AAC_AOT_SBR 5
#define ASM_MEDIA_FMT_AAC_AOT_PS 29
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
index d3c0850d8de2..9421d03f6a8d 100644
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -863,6 +863,9 @@ static int msm_compr_send_media_format_block(struct snd_compr_stream *cstream,
if (prtd->codec_param.codec.format ==
SND_AUDIOSTREAMFORMAT_MP4ADTS)
aac_cfg.format = 0x0;
+ else if (prtd->codec_param.codec.format ==
+ SND_AUDIOSTREAMFORMAT_MP4LATM)
+ aac_cfg.format = 0x04;
else
aac_cfg.format = 0x03;
aac_cfg.ch_cfg = prtd->num_channels;