Skip to content

Commit

Permalink
ALSA: usb-audio: fix Amanero Combo384 quirk on big-endian hosts
Browse files Browse the repository at this point in the history
Add missing endianness conversion when using the USB device-descriptor
bcdDevice field when applying the Amanero Combo384 (endianness!) quirk.

Fixes: 3eff682 ("ALSA: usb-audio: Support both DSD LE/BE Amanero firmware versions")
Cc: Jussi Laako <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
jhovold authored and tiwai committed May 15, 2017
1 parent 2ea659a commit f83914f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
/* Amanero Combo384 USB interface with native DSD support */
case USB_ID(0x16d0, 0x071a):
if (fp->altsetting == 2) {
switch (chip->dev->descriptor.bcdDevice) {
switch (le16_to_cpu(chip->dev->descriptor.bcdDevice)) {
case 0x199:
return SNDRV_PCM_FMTBIT_DSD_U32_LE;
case 0x19b:
Expand Down

0 comments on commit f83914f

Please sign in to comment.