ASoC: arm: convert not to use asoc_xxx()
ASoC is now unified asoc_xxx() into snd_soc_xxx(). This patch convert asoc_xxx() to snd_soc_xxx(). Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87a5tss25h.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
1af529320d
commit
3cdd333a36
@ -38,7 +38,7 @@ int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
|
|||||||
struct dma_slave_config config;
|
struct dma_slave_config config;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
dma_params = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
|
dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
|
||||||
if (!dma_params)
|
if (!dma_params)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
snd_dmaengine_pcm_set_config_from_dai_data(substream,
|
snd_dmaengine_pcm_set_config_from_dai_data(substream,
|
||||||
snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream),
|
snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream),
|
||||||
&config);
|
&config);
|
||||||
|
|
||||||
ret = dmaengine_slave_config(chan, &config);
|
ret = dmaengine_slave_config(chan, &config);
|
||||||
@ -86,7 +86,7 @@ int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
|
|||||||
|
|
||||||
runtime->hw = pxa2xx_pcm_hardware;
|
runtime->hw = pxa2xx_pcm_hardware;
|
||||||
|
|
||||||
dma_params = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
|
dma_params = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream);
|
||||||
if (!dma_params)
|
if (!dma_params)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return snd_dmaengine_pcm_open(
|
return snd_dmaengine_pcm_open(
|
||||||
substream, dma_request_slave_channel(asoc_rtd_to_cpu(rtd, 0)->dev,
|
substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev,
|
||||||
dma_params->chan_name));
|
dma_params->chan_name));
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(pxa2xx_pcm_open);
|
EXPORT_SYMBOL(pxa2xx_pcm_open);
|
||||||
|
Loading…
Reference in New Issue
Block a user