[PATCH] caiaq endianness fix

Previous thread: [PATCH] msnd_* is ISA-only by Al Viro on Tuesday, May 20, 2008 - 6:11 pm. (1 message)

Next thread: [PATCH] provide out-of-line strcat() for m68k by Al Viro on Tuesday, May 20, 2008 - 6:12 pm. (7 messages)
From: Al Viro
Date: Tuesday, May 20, 2008 - 6:11 pm

Content-Length: 800
Lines: 23

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 sound/usb/caiaq/caiaq-device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c
index e97d8b2..a972f77 100644
--- a/sound/usb/caiaq/caiaq-device.c
+++ b/sound/usb/caiaq/caiaq-device.c
@@ -351,8 +351,8 @@ static struct snd_card* create_card(struct usb_device* usb_dev)
 	dev = caiaqdev(card);
 	dev->chip.dev = usb_dev;
 	dev->chip.card = card;
-	dev->chip.usb_id = USB_ID(usb_dev->descriptor.idVendor,
-					usb_dev->descriptor.idProduct);
+	dev->chip.usb_id = USB_ID(le16_to_cpu(usb_dev->descriptor.idVendor),
+				  le16_to_cpu(usb_dev->descriptor.idProduct));
 	spin_lock_init(&dev->spinlock);
 	snd_card_set_dev(card, &usb_dev->dev);
 
-- 
1.5.3.GIT


--

Previous thread: [PATCH] msnd_* is ISA-only by Al Viro on Tuesday, May 20, 2008 - 6:11 pm. (1 message)

Next thread: [PATCH] provide out-of-line strcat() for m68k by Al Viro on Tuesday, May 20, 2008 - 6:12 pm. (7 messages)