Commit 6c869d30 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: rme*: Use snd_pcm_format_t

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: default avatarTakashi Iwai <tiwai@suse.de>
parent d2866409
...@@ -632,7 +632,7 @@ snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback) ...@@ -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) { switch (format) {
case SNDRV_PCM_FORMAT_S16_LE: case SNDRV_PCM_FORMAT_S16_LE:
......
...@@ -922,8 +922,7 @@ snd_rme96_setframelog(struct rme96 *rme96, ...@@ -922,8 +922,7 @@ snd_rme96_setframelog(struct rme96 *rme96,
} }
static int static int
snd_rme96_playback_setformat(struct rme96 *rme96, snd_rme96_playback_setformat(struct rme96 *rme96, snd_pcm_format_t format)
int format)
{ {
switch (format) { switch (format) {
case SNDRV_PCM_FORMAT_S16_LE: case SNDRV_PCM_FORMAT_S16_LE:
...@@ -940,8 +939,7 @@ snd_rme96_playback_setformat(struct rme96 *rme96, ...@@ -940,8 +939,7 @@ snd_rme96_playback_setformat(struct rme96 *rme96,
} }
static int static int
snd_rme96_capture_setformat(struct rme96 *rme96, snd_rme96_capture_setformat(struct rme96 *rme96, snd_pcm_format_t format)
int format)
{ {
switch (format) { switch (format) {
case SNDRV_PCM_FORMAT_S16_LE: case SNDRV_PCM_FORMAT_S16_LE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment