未验证 提交 d767d3ce 编写于 作者: D Daniel Mack 提交者: Mark Brown

ASoC: pxa: provide PCM ops for ssp, i2s and ac97 components

Now that the functions are now available through pxa2xx-lib, hook them up
to pxa-sspi, pxa-ac97 and pxa-i2s. This allows DT platforms to use the DAIs
without a platform driver.
Signed-off-by: NDaniel Mack <daniel@zonque.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 456ec808
...@@ -841,6 +841,9 @@ static struct snd_soc_dai_driver pxa_ssp_dai = { ...@@ -841,6 +841,9 @@ static struct snd_soc_dai_driver pxa_ssp_dai = {
static const struct snd_soc_component_driver pxa_ssp_component = { static const struct snd_soc_component_driver pxa_ssp_component = {
.name = "pxa-ssp", .name = "pxa-ssp",
.ops = &pxa2xx_pcm_ops,
.pcm_new = pxa2xx_soc_pcm_new,
.pcm_free = pxa2xx_pcm_free_dma_buffers,
}; };
#ifdef CONFIG_OF #ifdef CONFIG_OF
......
...@@ -214,6 +214,9 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = { ...@@ -214,6 +214,9 @@ static struct snd_soc_dai_driver pxa_ac97_dai_driver[] = {
static const struct snd_soc_component_driver pxa_ac97_component = { static const struct snd_soc_component_driver pxa_ac97_component = {
.name = "pxa-ac97", .name = "pxa-ac97",
.ops = &pxa2xx_pcm_ops,
.pcm_new = pxa2xx_soc_pcm_new,
.pcm_free = pxa2xx_pcm_free_dma_buffers,
}; };
#ifdef CONFIG_OF #ifdef CONFIG_OF
......
...@@ -364,6 +364,9 @@ static struct snd_soc_dai_driver pxa_i2s_dai = { ...@@ -364,6 +364,9 @@ static struct snd_soc_dai_driver pxa_i2s_dai = {
static const struct snd_soc_component_driver pxa_i2s_component = { static const struct snd_soc_component_driver pxa_i2s_component = {
.name = "pxa-i2s", .name = "pxa-i2s",
.ops = &pxa2xx_pcm_ops,
.pcm_new = pxa2xx_soc_pcm_new,
.pcm_free = pxa2xx_pcm_free_dma_buffers,
}; };
static int pxa2xx_i2s_drv_probe(struct platform_device *pdev) static int pxa2xx_i2s_drv_probe(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册