Skip to content

Commit

Permalink
ALSA: rme*: Use snd_pcm_format_t
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jan 12, 2015
1 parent d286640 commit 6c869d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sound/pci/rme32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions sound/pci/rme96.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 6c869d3

Please sign in to comment.