Skip to content

Commit 6c869d3

Browse files
committed
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 <[email protected]>
1 parent d286640 commit 6c869d3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sound/pci/rme32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback)
632632
}
633633
}
634634

635-
static int snd_rme32_setformat(struct rme32 * rme32, int format)
635+
static int snd_rme32_setformat(struct rme32 *rme32, snd_pcm_format_t format)
636636
{
637637
switch (format) {
638638
case SNDRV_PCM_FORMAT_S16_LE:

sound/pci/rme96.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,7 @@ snd_rme96_setframelog(struct rme96 *rme96,
922922
}
923923

924924
static int
925-
snd_rme96_playback_setformat(struct rme96 *rme96,
926-
int format)
925+
snd_rme96_playback_setformat(struct rme96 *rme96, snd_pcm_format_t format)
927926
{
928927
switch (format) {
929928
case SNDRV_PCM_FORMAT_S16_LE:
@@ -940,8 +939,7 @@ snd_rme96_playback_setformat(struct rme96 *rme96,
940939
}
941940

942941
static int
943-
snd_rme96_capture_setformat(struct rme96 *rme96,
944-
int format)
942+
snd_rme96_capture_setformat(struct rme96 *rme96, snd_pcm_format_t format)
945943
{
946944
switch (format) {
947945
case SNDRV_PCM_FORMAT_S16_LE:

0 commit comments

Comments
 (0)