diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-25 23:19:37 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-27 09:05:26 +0200 |
commit | 94dfee0c1a33baa974cba0bd8b83021b1d801297 (patch) | |
tree | 52ef64da62a90d91d9dcd86cb110196143bcfcd3 /sound/pci/riptide/riptide.c | |
parent | a6ea5fe95ab4a1a7af6d57429fe3ecde9acf5b5a (diff) | |
download | lwn-94dfee0c1a33baa974cba0bd8b83021b1d801297.tar.gz lwn-94dfee0c1a33baa974cba0bd8b83021b1d801297.zip |
ALSA: riptide: Fix PCM format type conversion
The PCM format type is with __bitwise, hence it needs to be explicitly
declared as snd_pcm_format_t, as warned by sparse:
sound/pci/riptide/riptide.c:1028:34: warning: incorrect type in argument 1 (different base types)
sound/pci/riptide/riptide.c:1028:34: expected restricted snd_pcm_format_t [usertype] format
sound/pci/riptide/riptide.c:1028:34: got unsigned char [unsigned] format
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/riptide/riptide.c')
-rw-r--r-- | sound/pci/riptide/riptide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index 44f3b48d47b1..9d2b2ef15c6b 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c @@ -1017,7 +1017,7 @@ getsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int *rate) static int setsampleformat(struct cmdif *cif, unsigned char mixer, unsigned char id, - unsigned char channels, unsigned char format) + unsigned char channels, snd_pcm_format_t format) { unsigned char w, ch, sig, order; |