[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <08277130-ed31-837e-a8b1-9e71fb1b6989@linaro.org>
Date: Thu, 16 Apr 2020 08:56:15 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Ajit Pandey <ajitp@...eaurora.org>, alsa-devel@...a-project.org,
broonie@...nel.org, devicetree@...r.kernel.org,
plai@...eaurora.org, bgoswami@...eaurora.org
Cc: linux-kernel@...r.kernel.org, tiwai@...e.com
Subject: Re: [PATCH 11/11] ASoC: qcom: lpass-platform: Replace card->dev with
component->dev
On 11/04/2020 09:02, Ajit Pandey wrote:
> We are allocating dma memory for component->dev but trying to mmap
> such memory for substream->pcm->card->dev. Replace device argument
> in mmap with component->dev to fix this.
>
> Signed-off-by: Ajit Pandey <ajitp@...eaurora.org>
Probably a fixes tag here,
Fixes: c5c8635a0471("ASoC: qcom: Add LPASS platform driver")
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
> ---
> sound/soc/qcom/lpass-platform.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c
> index 821599e..9ab2dd5 100644
> --- a/sound/soc/qcom/lpass-platform.c
> +++ b/sound/soc/qcom/lpass-platform.c
> @@ -401,9 +401,8 @@ static int lpass_platform_pcmops_mmap(struct snd_soc_component *component,
> {
> struct snd_pcm_runtime *runtime = substream->runtime;
>
> - return dma_mmap_coherent(substream->pcm->card->dev, vma,
> - runtime->dma_area, runtime->dma_addr,
> - runtime->dma_bytes);
> + return dma_mmap_coherent(component->dev, vma, runtime->dma_area,
> + runtime->dma_addr, runtime->dma_bytes);
> }
>
> static irqreturn_t lpass_dma_interrupt_handler(
>
Powered by blists - more mailing lists