From: bui duc phuc <[email protected]>

In DMA mode, the generic dmaengine PCM component already applies
the integer PERIODS constraint in snd_dmaengine_pcm_open().

Since rz_ssi_pcm_open_dma() only applies this constraint, remove
the redundant component .open callback.

Signed-off-by: bui duc phuc <[email protected]>
---
 sound/soc/renesas/rz-ssi.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sound/soc/renesas/rz-ssi.c b/sound/soc/renesas/rz-ssi.c
index 5f4a53886541..9a0781bb072d 100644
--- a/sound/soc/renesas/rz-ssi.c
+++ b/sound/soc/renesas/rz-ssi.c
@@ -954,13 +954,6 @@ static int rz_ssi_pcm_open_pio(struct snd_soc_component 
*component,
        return 0;
 }
 
-static int rz_ssi_pcm_open_dma(struct snd_soc_component *component,
-                              struct snd_pcm_substream *substream)
-{
-       return snd_pcm_hw_constraint_integer(substream->runtime,
-                                            SNDRV_PCM_HW_PARAM_PERIODS);
-}
-
 static snd_pcm_uframes_t rz_ssi_pcm_pointer(struct snd_soc_component 
*component,
                                            struct snd_pcm_substream *substream)
 {
@@ -1011,7 +1004,6 @@ static const struct snd_soc_component_driver 
rz_ssi_soc_component_pio = {
 
 static const struct snd_soc_component_driver rz_ssi_soc_component_dma = {
        .name                   = "rz-ssi",
-       .open                   = rz_ssi_pcm_open_dma,
        .legacy_dai_naming      = 1,
 };
 
-- 
2.43.0


Reply via email to