Commit f83914fd authored by Johan Hovold's avatar Johan Hovold Committed by Takashi Iwai

ALSA: usb-audio: fix Amanero Combo384 quirk on big-endian hosts

Add missing endianness conversion when using the USB device-descriptor
bcdDevice field when applying the Amanero Combo384 (endianness!) quirk.

Fixes: 3eff682d ("ALSA: usb-audio: Support both DSD LE/BE Amanero firmware versions")
Cc: Jussi Laako <jussi@sonarnerd.net>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2ea659a9
...@@ -1364,7 +1364,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip, ...@@ -1364,7 +1364,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
/* Amanero Combo384 USB interface with native DSD support */ /* Amanero Combo384 USB interface with native DSD support */
case USB_ID(0x16d0, 0x071a): case USB_ID(0x16d0, 0x071a):
if (fp->altsetting == 2) { if (fp->altsetting == 2) {
switch (chip->dev->descriptor.bcdDevice) { switch (le16_to_cpu(chip->dev->descriptor.bcdDevice)) {
case 0x199: case 0x199:
return SNDRV_PCM_FMTBIT_DSD_U32_LE; return SNDRV_PCM_FMTBIT_DSD_U32_LE;
case 0x19b: case 0x19b:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment