asoc:add support for in-call music
authoryaozm1 <yaozm1@lenovo.com>
Thu, 21 Feb 2019 09:15:57 +0000 (17:15 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:57 +0000 (17:36 +0800)
This is a patch from samsung.
Part2 of the kernel change.

Change-Id: I00307845e62cc990a9869339c95dde36fef80b64
Signed-off-by: yaozm1 <yaozm1@mt.com>
Reviewed-on: https://gerrit.mot.com/1312481
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

include/sound/samsung/abox_ipc.h
sound/soc/samsung/abox/abox.c

index 37c84109d9fa5b24fd82f83d124533578ef5d95c..1717c8a32363130bc3b95af47da2ae64b252eecd 100644 (file)
@@ -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,
index 8c43872e6f08dd9e5b3eb0af9d1b97a2c06eb776..3f687c1487cfbdc54e5ac10fdd6d726f71956c8c 100644 (file)
@@ -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;