Message ID | 1525621665-11022-3-git-send-email-festevam@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sun, May 06, 2018 at 12:47:45PM -0300, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@nxp.com> > > 'snd_pcm_format_t' type is better suited for iterating through the > SNDRV_PCM_FORMAT members. Peter (who you didn't CC on this or the DaVinci patch) is just in the process of removing the omap-pcm driver so it'll just cause hassle to apply this.
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 778cc8f..d1b07e4 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -56,9 +56,9 @@ static struct snd_pcm_hardware omap_pcm_hardware = { /* sDMA supports only 1, 2, and 4 byte transfer elements. */ static void omap_pcm_limit_supported_formats(void) { - int i; + snd_pcm_format_t i; - for (i = 0; i <= SNDRV_PCM_FORMAT_LAST; i++) { + for (i = SNDRV_PCM_FORMAT_FIRST; i <= SNDRV_PCM_FORMAT_LAST; i++) { switch (snd_pcm_format_physical_width(i)) { case 8: case 16: