[PATCH 42/44] ASoC: soc-dai.h: remove symmetric_rates/samplebits

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Jan 15 05:56:30 CET 2021


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

All drivers are using new name.
Let's remove old one.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 include/sound/soc-dai.h | 2 --
 sound/soc/soc-core.c    | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index ee3c6deb5719..1358a0ceb4d0 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -353,10 +353,8 @@ struct snd_soc_dai_driver {
 	/* DAI capabilities */
 	struct snd_soc_pcm_stream capture;
 	struct snd_soc_pcm_stream playback;
-	unsigned int symmetric_rates:1; /* will be removed */
 	unsigned int symmetric_rate:1;
 	unsigned int symmetric_channels:1;
-	unsigned int symmetric_samplebits:1; /* will be removed */
 	unsigned int symmetric_sample_bits:1;
 
 	/* probe ordering - for components with runtime dependencies */
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index bb8323cad51a..f6d4e99b590c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2509,15 +2509,6 @@ int snd_soc_register_component(struct device *dev,
 {
 	struct snd_soc_component *component;
 	int ret;
-	int i;
-
-	/* Remove ME */
-	for (i = 0; i < num_dai; i++) {
-		if (dai_drv[i].symmetric_rates)
-			dai_drv[i].symmetric_rate = dai_drv[i].symmetric_rates;
-		if (dai_drv[i].symmetric_samplebits)
-			dai_drv[i].symmetric_sample_bits = dai_drv[i].symmetric_samplebits;
-	}
 
 	component = devm_kzalloc(dev, sizeof(*component), GFP_KERNEL);
 	if (!component)
-- 
2.25.1



More information about the Alsa-devel mailing list