ASoC: msm: qdsp6v2: primary plus 8 interactive stream playback fix
Max ASM session upperbound condition is corrected to support 8 interactive plus a primary streams playback. Change-Id: I5ec29c70941f52af020a64cc58bf10be52354f1b Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
This commit is contained in:
parent
6f777b2385
commit
10b176a997
1 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@
|
|||
|
||||
#define TRUE 0x01
|
||||
#define FALSE 0x00
|
||||
#define SESSION_MAX 8
|
||||
#define SESSION_MAX 9
|
||||
#define ASM_MAX_CHANNELS 8
|
||||
enum {
|
||||
ASM_TOPOLOGY_CAL = 0,
|
||||
|
@ -1338,7 +1338,7 @@ int q6asm_audio_client_buf_alloc(unsigned int dir,
|
|||
pr_debug("%s: session[%d]bufsz[%d]bufcnt[%d]\n", __func__, ac->session,
|
||||
bufsz, bufcnt);
|
||||
|
||||
if (ac->session <= 0 || ac->session > 8) {
|
||||
if (ac->session <= 0 || ac->session > ASM_ACTIVE_STREAMS_ALLOWED) {
|
||||
pr_err("%s: Session ID is invalid, session = %d\n", __func__,
|
||||
ac->session);
|
||||
goto fail;
|
||||
|
@ -1429,7 +1429,7 @@ int q6asm_audio_client_buf_alloc_contiguous(unsigned int dir,
|
|||
__func__, ac->session,
|
||||
bufsz, bufcnt);
|
||||
|
||||
if (ac->session <= 0 || ac->session > 8) {
|
||||
if (ac->session <= 0 || ac->session > ASM_ACTIVE_STREAMS_ALLOWED) {
|
||||
pr_err("%s: Session ID is invalid, session = %d\n", __func__,
|
||||
ac->session);
|
||||
goto fail;
|
||||
|
@ -1738,7 +1738,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (ac->session <= 0 || ac->session > 8) {
|
||||
if (ac->session <= 0 || ac->session > ASM_ACTIVE_STREAMS_ALLOWED) {
|
||||
pr_err("%s: Session ID is invalid, session = %d\n", __func__,
|
||||
ac->session);
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue