ALSA: rme*: Use snd_pcm_format_t
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2015 15:56:51 +0000 (16:56 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2015 15:59:02 +0000 (16:59 +0100)
Fix sparse warnings below by using snd_pcm_format_t properly:
   sound/pci/rme32.c:682:60: sparse: incorrect type in argument 2 (different base types)
  sound/pci/rme96.c:1006:69: sparse: incorrect type in argument 2 (different base types)
   .....

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme32.c
sound/pci/rme96.c

index 6c60dcd2e5a1daf45479702c51f9223d6155516c..1a7affad71643c9f50ca8e03e906bcd33d30f40c 100644 (file)
@@ -632,7 +632,7 @@ snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback)
        }
 }
 
-static int snd_rme32_setformat(struct rme32 * rme32, int format)
+static int snd_rme32_setformat(struct rme32 *rme32, snd_pcm_format_t format)
 {
        switch (format) {
        case SNDRV_PCM_FORMAT_S16_LE:
index e33e79eadf83f582ed239e573c6667dd71f40516..236ac1d48184d4731642313a3c1c59d5fdd9a2a6 100644 (file)
@@ -922,8 +922,7 @@ snd_rme96_setframelog(struct rme96 *rme96,
 }
 
 static int
-snd_rme96_playback_setformat(struct rme96 *rme96,
-                            int format)
+snd_rme96_playback_setformat(struct rme96 *rme96, snd_pcm_format_t format)
 {
        switch (format) {
        case SNDRV_PCM_FORMAT_S16_LE:
@@ -940,8 +939,7 @@ snd_rme96_playback_setformat(struct rme96 *rme96,
 }
 
 static int
-snd_rme96_capture_setformat(struct rme96 *rme96,
-                           int format)
+snd_rme96_capture_setformat(struct rme96 *rme96, snd_pcm_format_t format)
 {
        switch (format) {
        case SNDRV_PCM_FORMAT_S16_LE: