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]);)
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);
}
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;