1
0
Fork 0

ALSA: atiixp: Proper endian notations

The DMA address table in atiixp driver is in little-endian, hence we should define it with __le32 properly.

Spotted by sparse, a warning like:
  sound/pci/atiixp.c:393:28: warning: incorrect type in assignment (different base types)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
hifive-unleashed-5.1
Takashi Iwai 2018-07-25 23:24:12 +02:00
parent 58578d1894
commit c44a81a40a
1 changed files with 2 additions and 2 deletions

View File

@ -207,10 +207,10 @@ struct atiixp;
*/
struct atiixp_dma_desc {
u32 addr; /* DMA buffer address */
__le32 addr; /* DMA buffer address */
u16 status; /* status bits */
u16 size; /* size of the packet in dwords */
u32 next; /* address of the next packet descriptor */
__le32 next; /* address of the next packet descriptor */
};
/*