10 Aug
2014
10 Aug
'14
5:54 p.m.
Takashi Sakamoto wrote:
Some devices produced by Behringer/Mackie are based on OXFW970/971. This commit adds support for them.
+++ b/sound/firewire/oxfw/oxfw.c @@ -16,6 +16,8 @@
#define VENDOR_GRIFFIN 0x001292 #define VENDOR_LACIE 0x00d04b +#define VEN_BEHRINGER 0x001564 +#define VEN_LOUD 0x000ff2
These IDs were supposed to be ordered. :) And why "VEN_" instead of "VENDOR_"?
- ...
- {
.match_flags = IEEE1394_MATCH_VENDOR_ID |
IEEE1394_MATCH_MODEL_ID,
.vendor_id = VEN_LOUD,
.model_id = 0x000460,
- },
- /* IDs are unknown but able to be supported */
- /* Mackie(Loud), d.2 pro */
- /* Mackie(Loud), d.4 pro */
- /* Mackie(Loud), U.420 */
- /* Mackie(Loud), U.420d */
To support all Mackie devices, use one ID entry with only the vendor ID, and abort with -ENODEV from the _probe function if the hardware is not actually an OXFW97x device (try to read the HARDWARE_ID and/or FIRMWARE_ID registers).
Regards, Clemens