OSDN Git Service

dsp: codecs: use native API to configure PCM output block in multiaac
authorSoumya Managoli <smanag@codeaurora.org>
Tue, 15 May 2018 13:16:45 +0000 (18:46 +0530)
committerSoumya Managoli <smanag@codeaurora.org>
Wed, 16 May 2018 06:43:56 +0000 (12:13 +0530)
Usage of q6asm_enc_cfg_blk_pcm() does not trigger
PortSettingsChanged event which is required for multi aac component.
Configure the PCM output block using q6asm_enc_cfg_blk_pcm_native()
which ensures that the event gets triggered.

Change-Id: Ieefeead45435840c2ecc1c072e8095785fd4b583
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
drivers/misc/qcom/qdsp6v2/audio_multi_aac.c

index 42b45ec..92faa1b 100644 (file)
@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2008 Google, Inc.
  * Copyright (C) 2008 HTC Corporation
- * Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
@@ -58,7 +58,7 @@ static long audio_ioctl_shared(struct file *file, unsigned int cmd,
                                                audio->ac->session);
                if (audio->feedback == NON_TUNNEL_MODE) {
                        /* Configure PCM output block */
-                       rc = q6asm_enc_cfg_blk_pcm(audio->ac,
+                       rc = q6asm_enc_cfg_blk_pcm_native(audio->ac,
                                        audio->pcm_cfg.sample_rate,
                                        audio->pcm_cfg.channel_count);
                        if (rc < 0) {