From da97ba579621a94c93aa494ff217d99178234a22 Mon Sep 17 00:00:00 2001 From: yaozm1 Date: Thu, 21 Feb 2019 17:15:57 +0800 Subject: [PATCH] asoc:add support for in-call music This is a patch from samsung. Part2 of the kernel change. Change-Id: I00307845e62cc990a9869339c95dde36fef80b64 Signed-off-by: yaozm1 Reviewed-on: https://gerrit.mot.com/1312481 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- include/sound/samsung/abox_ipc.h | 1 + sound/soc/samsung/abox/abox.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/sound/samsung/abox_ipc.h b/include/sound/samsung/abox_ipc.h index 37c84109d9fa..1717c8a32363 100644 --- a/include/sound/samsung/abox_ipc.h +++ b/include/sound/samsung/abox_ipc.h @@ -328,6 +328,7 @@ enum IPC_ID { IPC_PCMCAPTURE, IPC_OFFLOAD, IPC_ERAP, + RDMA7_BUF_EMPTY = 0x7, WDMA0_BUF_FULL = 0x8, WDMA1_BUF_FULL = 0x9, IPC_ABOX_CONFIG = 0xA, diff --git a/sound/soc/samsung/abox/abox.c b/sound/soc/samsung/abox/abox.c index 8c43872e6f08..3f687c1487cf 100644 --- a/sound/soc/samsung/abox/abox.c +++ b/sound/soc/samsung/abox/abox.c @@ -4440,6 +4440,10 @@ static irqreturn_t abox_dma_irq_handler(int irq, struct abox_data *data) id = 3; pdev_dma = data->pdev_rdma; break; + case RDMA7_BUF_EMPTY: + id = 7; + pdev_dma = data->pdev_rdma; + break; case WDMA0_BUF_FULL: id = 0; pdev_dma = data->pdev_wdma; -- 2.20.1