ALSA: riptide: Properly endian notations
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:24:04 +0000 (23:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jul 2018 07:06:02 +0000 (09:06 +0200)
The SG descriptor of Riptide contains the little-endian values, hence
we need to define with __le32 properly.  This fixes sparse warnings
like:
  sound/pci/riptide/riptide.c:1112:40: warning: cast to restricted __le32

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/riptide/riptide.c

index 9d2b2ef15c6b8350ba9a2db2f49186df86af2eb5..23017e3bc76cc4c7abde2d1481d82e0d703c75f1 100644 (file)
@@ -470,10 +470,10 @@ struct snd_riptide {
 };
 
 struct sgd {                   /* scatter gather desriptor */
-       u32 dwNextLink;
-       u32 dwSegPtrPhys;
-       u32 dwSegLen;
-       u32 dwStat_Ctl;
+       __le32 dwNextLink;
+       __le32 dwSegPtrPhys;
+       __le32 dwSegLen;
+       __le32 dwStat_Ctl;
 };
 
 struct pcmhw {                 /* pcm descriptor */