ASoC: soc-utils: remove snd_pcm_ops
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 2 Oct 2019 05:35:05 +0000 (14:35 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 8 Oct 2019 12:50:43 +0000 (13:50 +0100)
snd_pcm_ops is no longer needed.
Let's use component driver callback.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/874l0r90c6.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-utils.c

index 54dcece52b0ce0ddbae32fb5ecf666c81eb48f6a..2fd4562f5e63cff276ff8fd63c810c70c74cb3ff 100644 (file)
@@ -63,7 +63,8 @@ static const struct snd_pcm_hardware dummy_dma_hardware = {
        .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;
 
@@ -74,13 +75,9 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
        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 = {
-       .ops = &snd_dummy_dma_ops,
+       .open           = dummy_dma_open,
+       .ioctl          = snd_soc_pcm_lib_ioctl,
 };
 
 static const struct snd_soc_component_driver dummy_codec = {