mirror of https://github.com/nealey/hdjd.git
added USB IDs for DJ Console 4-MX
This commit is contained in:
parent
f5a8148993
commit
18eefffa19
|
@ -1,4 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <libusb.h>
|
#include <libusb.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -29,6 +30,7 @@ const struct device devices[] = {
|
||||||
{"Steel", 0xb102, 0x83, 0x04},
|
{"Steel", 0xb102, 0x83, 0x04},
|
||||||
{"MP3e2", 0xb105, 0x82, 0x03},
|
{"MP3e2", 0xb105, 0x82, 0x03},
|
||||||
{"4Set", 0xb10c, 0x84, 0x02},
|
{"4Set", 0xb10c, 0x84, 0x02},
|
||||||
|
{"4-MX", 0xb109, 0x82, 0x03},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -70,7 +72,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printf("Can't figure out what to call this thing.\n");
|
printf("%s: can't figure out what to call this thing.\n", libusb_error_name(ret));
|
||||||
return 69;
|
return 69;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
usb.c
1
usb.c
|
@ -25,6 +25,7 @@ struct device {
|
||||||
const struct device devices[] = {
|
const struct device devices[] = {
|
||||||
{ 0xb102, 1, 0x83, 0x04 }, // Steel
|
{ 0xb102, 1, 0x83, 0x04 }, // Steel
|
||||||
{ 0xb105, 1, 0x82, 0x03 }, // MP3e2
|
{ 0xb105, 1, 0x82, 0x03 }, // MP3e2
|
||||||
|
{ 0xb109, 4, 0x82, 0x03 }, // 4-MX
|
||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue