Merge tag 'asoc-v5.7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-block.git] / sound / core / pcm_dmaengine.c
index 9d4f48cfe47f123aa0cb456dfda3571ed78161ac..4d059ff2b2e4facaae4d7191665bbf6e7795db8c 100644 (file)
@@ -430,7 +430,7 @@ int snd_dmaengine_pcm_refine_runtime_hwparams(
                 * default assumption is that it supports 1, 2 and 4 bytes
                 * widths.
                 */
-               for (i = SNDRV_PCM_FORMAT_FIRST; i <= SNDRV_PCM_FORMAT_LAST; i++) {
+               pcm_for_each_format(i) {
                        int bits = snd_pcm_format_physical_width(i);
 
                        /*