Skip to content

Commit 6e85961

Browse files
marcantiwai
authored andcommitted
ALSA: usb-audio: add quirk for Pioneer DDJ-RB
This is just another Pioneer device with fixed endpoints. Input is dummy but used as feedback (it always returns silence). Cc: [email protected] Signed-off-by: Hector Martin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 1b7ecc2 commit 6e85961

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

sound/usb/quirks-table.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3558,6 +3558,62 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
35583558
}
35593559
}
35603560
},
3561+
{
3562+
/*
3563+
* PIONEER DJ DDJ-RB
3564+
* PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
3565+
* The feedback for the output is the dummy input.
3566+
*/
3567+
USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
3568+
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3569+
.ifnum = QUIRK_ANY_INTERFACE,
3570+
.type = QUIRK_COMPOSITE,
3571+
.data = (const struct snd_usb_audio_quirk[]) {
3572+
{
3573+
.ifnum = 0,
3574+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
3575+
.data = &(const struct audioformat) {
3576+
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
3577+
.channels = 4,
3578+
.iface = 0,
3579+
.altsetting = 1,
3580+
.altset_idx = 1,
3581+
.endpoint = 0x01,
3582+
.ep_attr = USB_ENDPOINT_XFER_ISOC|
3583+
USB_ENDPOINT_SYNC_ASYNC,
3584+
.rates = SNDRV_PCM_RATE_44100,
3585+
.rate_min = 44100,
3586+
.rate_max = 44100,
3587+
.nr_rates = 1,
3588+
.rate_table = (unsigned int[]) { 44100 }
3589+
}
3590+
},
3591+
{
3592+
.ifnum = 0,
3593+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
3594+
.data = &(const struct audioformat) {
3595+
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
3596+
.channels = 2,
3597+
.iface = 0,
3598+
.altsetting = 1,
3599+
.altset_idx = 1,
3600+
.endpoint = 0x82,
3601+
.ep_attr = USB_ENDPOINT_XFER_ISOC|
3602+
USB_ENDPOINT_SYNC_ASYNC|
3603+
USB_ENDPOINT_USAGE_IMPLICIT_FB,
3604+
.rates = SNDRV_PCM_RATE_44100,
3605+
.rate_min = 44100,
3606+
.rate_max = 44100,
3607+
.nr_rates = 1,
3608+
.rate_table = (unsigned int[]) { 44100 }
3609+
}
3610+
},
3611+
{
3612+
.ifnum = -1
3613+
}
3614+
}
3615+
}
3616+
},
35613617

35623618
#define ALC1220_VB_DESKTOP(vend, prod) { \
35633619
USB_DEVICE(vend, prod), \

0 commit comments

Comments
 (0)