ASoC: rsnd: use mod base common method on DMA phase2
Renesas sound needs many devices (SSI/SSIU/SRC/CTU/MIX/DVC/CMD/AudioDMAC/AudioDMACpp). SSI/SRC/CTU/MIX/DVC are implemented as module. SSI parent, SSIU are implemented as part of SSI CMD is implemented as part of CTU/MIX/DVC AudioDMAC/AudioDMACpp are implemented as part of SSI/SRC It is nice sense that these all devices are implemented as mod. DMA will be implemented as module. Then rsnd_dma_ops will be rebased to rsnd_mod_ops, but these are similar, but different function. This patch modify rsnd_dma_ops same style as rsnd_mod_ops. This is prepare for final merge Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Этот коммит содержится в:

коммит произвёл
Mark Brown

родитель
940e947926
Коммит
76c80b5b3f
@@ -596,7 +596,7 @@ static int rsnd_ssi_dma_remove(struct rsnd_mod *mod,
|
||||
struct device *dev = rsnd_priv_to_dev(priv);
|
||||
int irq = ssi->info->irq;
|
||||
|
||||
rsnd_dma_quit(io, rsnd_ssi_to_dma(ssi));
|
||||
rsnd_dma_quit(rsnd_ssi_to_dma(ssi), io, priv);
|
||||
|
||||
/* PIO will request IRQ again */
|
||||
devm_free_irq(dev, irq, mod);
|
||||
@@ -632,7 +632,7 @@ static int rsnd_ssi_dma_start(struct rsnd_mod *mod,
|
||||
struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
|
||||
struct rsnd_mod *dma = rsnd_ssi_to_dma(ssi);
|
||||
|
||||
rsnd_dma_start(io, dma);
|
||||
rsnd_dma_start(dma, io, priv);
|
||||
|
||||
rsnd_ssi_start(mod, io, priv);
|
||||
|
||||
@@ -648,7 +648,7 @@ static int rsnd_ssi_dma_stop(struct rsnd_mod *mod,
|
||||
|
||||
rsnd_ssi_stop(mod, io, priv);
|
||||
|
||||
rsnd_dma_stop(io, dma);
|
||||
rsnd_dma_stop(dma, io, priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Ссылка в новой задаче
Block a user