ASoC: rename for_each_rtd_codec_dai_reverse to rollback
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 18 Sep 2018 01:28:30 +0000 (01:28 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 20 Sep 2018 17:17:05 +0000 (10:17 -0700)
commit 0b7990e38971 ("ASoC: add for_each_rtd_codec_dai() macro")
added for_each_rtd_codec_dai_reverse(). but _rollback() is better
naming than _reverse(). This patch rename it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c

index 1e093b399bc0da2972b0dbeeea5fdb7031a8ce15..ec1ae9f4feebd08a857eccd609107d18fd15e834 100644 (file)
@@ -1164,7 +1164,7 @@ struct snd_soc_pcm_runtime {
        for ((i) = 0;                                                  \
             ((i) < rtd->num_codecs) && ((dai) = rtd->codec_dais[i]); \
             (i)++)
-#define for_each_rtd_codec_dai_reverse(rtd, i, dai)                            \
+#define for_each_rtd_codec_dai_rollback(rtd, i, dai)           \
        for (; ((i--) >= 0) && ((dai) = rtd->codec_dais[i]);)
 
 
index e387fff352c8fe521618ad5682e64803df79cd26..1eff1dbb0d002a18b9764d4be2ab0356ae46385e 100644 (file)
@@ -621,7 +621,7 @@ machine_err:
        i = rtd->num_codecs;
 
 codec_dai_err:
-       for_each_rtd_codec_dai_reverse(rtd, i, codec_dai) {
+       for_each_rtd_codec_dai_rollback(rtd, i, codec_dai) {
                if (codec_dai->driver->ops->shutdown)
                        codec_dai->driver->ops->shutdown(substream, codec_dai);
        }
@@ -1015,7 +1015,7 @@ interface_err:
        i = rtd->num_codecs;
 
 codec_err:
-       for_each_rtd_codec_dai_reverse(rtd, i, codec_dai) {
+       for_each_rtd_codec_dai_rollback(rtd, i, codec_dai) {
                if (codec_dai->driver->ops->hw_free)
                        codec_dai->driver->ops->hw_free(substream, codec_dai);
                codec_dai->rate = 0;