diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-20 21:57:49 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-21 12:03:55 +0100 |
commit | 27533df80e93dc164e39d47281bbbd608f9014a6 (patch) | |
tree | eed1ecf3a90e32e884c154f169a88d24de4803ab /sound | |
parent | ALSA: hda - Add pin fix for Alienware M17x R3 (diff) | |
download | linux-27533df80e93dc164e39d47281bbbd608f9014a6.tar.xz linux-27533df80e93dc164e39d47281bbbd608f9014a6.zip |
ALSA: cs5535 - Fix an endianness conversion
desc->size is supposed to be a le16 type. On a big endian system the
current code will set ->size to zero. We fixed a similar bug
on the next line but missed this one.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index e083122ca55a..dbf94b189e75 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c @@ -148,7 +148,7 @@ static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma_desc *desc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; desc->addr = cpu_to_le32(addr); - desc->size = cpu_to_le32(period_bytes); + desc->size = cpu_to_le16(period_bytes); desc->ctlreserved = cpu_to_le16(PRD_EOP); desc_addr += sizeof(struct cs5535audio_dma_desc); addr += period_bytes; |