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

ASoC: soc-utils: remove snd_pcm_ops

snd_pcm_ops is no longer needed.
Let's use component driver callback.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/874l0r90c6.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ece23171
...@@ -63,7 +63,8 @@ static const struct snd_pcm_hardware dummy_dma_hardware = { ...@@ -63,7 +63,8 @@ static const struct snd_pcm_hardware dummy_dma_hardware = {
.periods_max = 128, .periods_max = 128,
}; };
static int dummy_dma_open(struct snd_pcm_substream *substream) static int dummy_dma_open(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ {
struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_pcm_runtime *rtd = substream->private_data;
...@@ -74,13 +75,9 @@ static int dummy_dma_open(struct snd_pcm_substream *substream) ...@@ -74,13 +75,9 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
return 0; return 0;
} }
static const struct snd_pcm_ops snd_dummy_dma_ops = {
.open = dummy_dma_open,
.ioctl = snd_pcm_lib_ioctl,
};
static const struct snd_soc_component_driver dummy_platform = { static const struct snd_soc_component_driver dummy_platform = {
.ops = &snd_dummy_dma_ops, .open = dummy_dma_open,
.ioctl = snd_soc_pcm_lib_ioctl,
}; };
static const struct snd_soc_component_driver dummy_codec = { static const struct snd_soc_component_driver dummy_codec = {
......
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