summaryrefslogtreecommitdiff
path: root/sound/pci/rme96.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-12 18:56:51 +0300
committerTakashi Iwai <tiwai@suse.de>2015-01-12 18:59:02 +0300
commit6c869d301bda3f672f001e2c9fcb01685000fc83 (patch)
tree8b00aaadc809a86627ea39972e30cf80e03fab62 /sound/pci/rme96.c
parentd2866409baaf644c8f875498b05fd3adf26fcdcd (diff)
downloadlinux-6c869d301bda3f672f001e2c9fcb01685000fc83.tar.xz
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme96.c')
-rw-r--r--sound/pci/rme96.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c
index e33e79eadf83..236ac1d48184 100644
--- a/sound/pci/rme96.c
+++ b/sound/pci/rme96.c
@@ -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: