Commit d9f29e9e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: convert platform explanation to component

commit ef050bec ("ASoC: Remove platform code now everything is
componentised") removed platform code, but it didn't care
about platform documentation.
This patch convert platform explanation to component
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent db795f9b
...@@ -23,30 +23,26 @@ The platform DMA driver optionally supports the following ALSA operations:- ...@@ -23,30 +23,26 @@ The platform DMA driver optionally supports the following ALSA operations:-
}; };
The platform driver exports its DMA functionality via struct The platform driver exports its DMA functionality via struct
snd_soc_platform_driver:- snd_soc_component_driver:-
:: ::
struct snd_soc_platform_driver { struct snd_soc_component_driver {
char *name; const char *name;
int (*probe)(struct platform_device *pdev); ...
int (*remove)(struct platform_device *pdev); int (*probe)(struct snd_soc_component *);
int (*suspend)(struct platform_device *pdev, struct snd_soc_cpu_dai *cpu_dai); void (*remove)(struct snd_soc_component *);
int (*resume)(struct platform_device *pdev, struct snd_soc_cpu_dai *cpu_dai); int (*suspend)(struct snd_soc_component *);
int (*resume)(struct snd_soc_component *);
/* pcm creation and destruction */ /* pcm creation and destruction */
int (*pcm_new)(struct snd_card *, struct snd_soc_codec_dai *, struct snd_pcm *); int (*pcm_new)(struct snd_soc_pcm_runtime *);
void (*pcm_free)(struct snd_pcm *); void (*pcm_free)(struct snd_pcm *);
/* ...
* For platform caused delay reporting. const struct snd_pcm_ops *ops;
* Optional. const struct snd_compr_ops *compr_ops;
*/ ...
snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *,
struct snd_soc_dai *);
/* platform stream ops */
struct snd_pcm_ops *pcm_ops;
}; };
Please refer to the ALSA driver documentation for details of audio DMA. Please refer to the ALSA driver documentation for details of audio DMA.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment