2022-04-22 21:20:27

by Jai Luthra

[permalink] [raw]
Subject: [PATCH v2] ASoC: ti: davinci-mcasp: Add dma-type for bcdma

From: Jayesh Choudhary <[email protected]>

Set DMA type for ti-bcdma controller for AM62-SK.

Signed-off-by: Jayesh Choudhary <[email protected]>
Signed-off-by: Jai Luthra <[email protected]>
---
sound/soc/ti/davinci-mcasp.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c
index 2c146b91fca3..377be2e2b6ee 100644
--- a/sound/soc/ti/davinci-mcasp.c
+++ b/sound/soc/ti/davinci-mcasp.c
@@ -2047,6 +2047,8 @@ static int davinci_mcasp_get_dma_type(struct davinci_mcasp *mcasp)
return PCM_SDMA;
else if (strstr(tmp, "udmap"))
return PCM_UDMA;
+ else if (strstr(tmp, "bcdma"))
+ return PCM_UDMA;

return PCM_EDMA;
}
--
2.17.1


2022-05-02 02:41:06

by Péter Ujfalusi

[permalink] [raw]
Subject: Re: [PATCH v2] ASoC: ti: davinci-mcasp: Add dma-type for bcdma



On 4/22/22 08:40, Jai Luthra wrote:
> From: Jayesh Choudhary <[email protected]>
>
> Set DMA type for ti-bcdma controller for AM62-SK.

Acked-by: Peter Ujfalusi <[email protected]>

> Signed-off-by: Jayesh Choudhary <[email protected]>
> Signed-off-by: Jai Luthra <[email protected]>
> ---
> sound/soc/ti/davinci-mcasp.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c
> index 2c146b91fca3..377be2e2b6ee 100644
> --- a/sound/soc/ti/davinci-mcasp.c
> +++ b/sound/soc/ti/davinci-mcasp.c
> @@ -2047,6 +2047,8 @@ static int davinci_mcasp_get_dma_type(struct davinci_mcasp *mcasp)
> return PCM_SDMA;
> else if (strstr(tmp, "udmap"))
> return PCM_UDMA;
> + else if (strstr(tmp, "bcdma"))
> + return PCM_UDMA;
>
> return PCM_EDMA;
> }

--
Péter