OSDN Git Service

ALSA: usb-audio: Add DJM450 to Pioneer format quirk
authorOlivia Mackintosh <livvy@base.nu>
Tue, 2 Feb 2021 13:42:26 +0000 (13:42 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Feb 2021 17:46:08 +0000 (18:46 +0100)
commit3b85f5fc75d564a9eb4171dcb6b8687b080cd4d5
tree75456d1b01eda8f991e3dd9a98287cc4702743da
parent2d670ea2bd53a9792f453bb5b97cb8ef695988ff
ALSA: usb-audio: Add DJM450 to Pioneer format quirk

Like the DJM-750, ensure that the format control message is passed to
the device when opening a stream. It seems as though fmt->sync_ep is not
always set when this function is called hence the passing of the value
at the call site. If this can be fixed, fmt->sync_up should be used as
the wvalue.

There doesn't seem to be a "cpu_to_le24" type function defined hence for
the open code but I did see a similar thing done in Bluez lib. Perhaps
we can get these definitions defined in byteorder.h. See hci_cpu_to_le24
in include/net/bluetooth/hci.h:2543 for similar usage.

Signed-off-by: Olivia Mackintosh <livvy@base.nu>
Link: https://lore.kernel.org/r/20210202134225.3217-2-livvy@base.nu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks.c