From b58c0716e4b3292ff597ad366947c25df84b0972 Mon Sep 17 00:00:00 2001 From: Xiaoyu Ye Date: Wed, 20 Nov 2019 11:08:43 -0800 Subject: [PATCH] dsp: lsm: remove the size checking for sound model Currently q6lsm driver only allows buffer to be allocated for SVA sound model with size larger than 512 byte in function q6lsm_snd_model_buf_alloc.This causes issue when a valid SVA sound model is smaller than 512 byte. Since there is no restriction in ADSP for sound model size, remove this size checking to allow sound models with smaller size. Change-Id: I716dc8c0e1a4e3189cd334ef692ff07f3e4635db Signed-off-by: Xiaoyu Ye --- dsp/q6lsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dsp/q6lsm.c b/dsp/q6lsm.c index d5c8e7ef70d1..8df449e499e7 100644 --- a/dsp/q6lsm.c +++ b/dsp/q6lsm.c @@ -28,7 +28,6 @@ #include "adsp_err.h" #define APR_TIMEOUT (HZ) -#define LSM_ALIGN_BOUNDARY 512 #define LSM_SAMPLE_RATE 16000 #define QLSM_PARAM_ID_MINOR_VERSION 1 #define QLSM_PARAM_ID_MINOR_VERSION_2 2 @@ -1973,7 +1972,7 @@ int q6lsm_snd_model_buf_alloc(struct lsm_client *client, size_t len, size_t total_mem = 0; struct lsm_sound_model *sm = NULL; - if (!client || len <= LSM_ALIGN_BOUNDARY) + if (!client) return rc; pr_debug("%s:Snd Model len = %zd, stage idx %d\n",