From: Al Viro Date: Wed, 21 May 2008 05:32:11 +0000 (+0100) Subject: caiaq endianness fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c5330a505ca58013a65ce9c55953ff7ded79202;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git caiaq endianness fix Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/sound/usb/caiaq/caiaq-device.c b/sound/usb/caiaq/caiaq-device.c index e97d8b2ac16a..a972f77bd785 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);