Skip to content

Commit ec0cf56

Browse files
marcangregkh
authored andcommitted
ALSA: usb-audio: add quirk for Pioneer DDJ-RB
commit 6e85961 upstream. This is just another Pioneer device with fixed endpoints. Input is dummy but used as feedback (it always returns silence). Cc: stable@vger.kernel.org Signed-off-by: Hector Martin <marcan@marcan.st> Link: https://lore.kernel.org/r/20200810082502.225979-1-marcan@marcan.st Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f8b0754 commit ec0cf56

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

‎sound/usb/quirks-table.h‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3541,6 +3541,62 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
35413541
}
35423542
}
35433543
},
3544+
{
3545+
/*
3546+
* PIONEER DJ DDJ-RB
3547+
* PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
3548+
* The feedback for the output is the dummy input.
3549+
*/
3550+
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
3551+
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3552+
.ifnum = QUIRK_ANY_INTERFACE,
3553+
.type = QUIRK_COMPOSITE,
3554+
.data = (const struct snd_usb_audio_quirk[]) {
3555+
{
3556+
.ifnum = 0,
3557+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
3558+
.data = &(const struct audioformat) {
3559+
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
3560+
.channels = 4,
3561+
.iface = 0,
3562+
.altsetting = 1,
3563+
.altset_idx = 1,
3564+
.endpoint = 0x01,
3565+
.ep_attr = USB_ENDPOINT_XFER_ISOC|
3566+
USB_ENDPOINT_SYNC_ASYNC,
3567+
.rates = SNDRV_PCM_RATE_44100,
3568+
.rate_min = 44100,
3569+
.rate_max = 44100,
3570+
.nr_rates = 1,
3571+
.rate_table = (unsigned int[]) { 44100 }
3572+
}
3573+
},
3574+
{
3575+
.ifnum = 0,
3576+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
3577+
.data = &(const struct audioformat) {
3578+
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
3579+
.channels = 2,
3580+
.iface = 0,
3581+
.altsetting = 1,
3582+
.altset_idx = 1,
3583+
.endpoint = 0x82,
3584+
.ep_attr = USB_ENDPOINT_XFER_ISOC|
3585+
USB_ENDPOINT_SYNC_ASYNC|
3586+
USB_ENDPOINT_USAGE_IMPLICIT_FB,
3587+
.rates = SNDRV_PCM_RATE_44100,
3588+
.rate_min = 44100,
3589+
.rate_max = 44100,
3590+
.nr_rates = 1,
3591+
.rate_table = (unsigned int[]) { 44100 }
3592+
}
3593+
},
3594+
{
3595+
.ifnum = -1
3596+
}
3597+
}
3598+
}
3599+
},
35443600

35453601
#define ALC1220_VB_DESKTOP(vend, prod) { \
35463602
USB_DEVICE(vend, prod), \

0 commit comments

Comments
 (0)