dsp: codecs: Add synchronization between SSR and native encoder decoder

Add change to use global lock to make synchronization
between SSR and native encoder decoder.

Change-Id: I6c1f48c32d4c8290de8bf3dfa86e022abe2b34bc
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
This commit is contained in:
Saurav Kumar
2020-02-21 18:29:26 +05:30
committed by Gerrit - the friendly Code Review server
parent 68f58b0d09
commit d8a0703a77
6 changed files with 26 additions and 8 deletions

View File

@@ -1,12 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2017, 2020, The Linux Foundation. All rights reserved.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include "audio_utils.h"
spinlock_t enc_dec_lock;
static int __init audio_native_init(void)
{
aac_in_init();
@@ -31,6 +33,7 @@ static int __init audio_native_init(void)
g711alaw_in_init();
g711mlaw_in_init();
qcelp_in_init();
spin_lock_init(&enc_dec_lock);
return 0;
}