bebob.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /*
  2. * bebob.c - a part of driver for BeBoB based devices
  3. *
  4. * Copyright (c) 2013-2014 Takashi Sakamoto
  5. *
  6. * Licensed under the terms of the GNU General Public License, version 2.
  7. */
  8. /*
  9. * BeBoB is 'BridgeCo enhanced Breakout Box'. This is installed to firewire
  10. * devices with DM1000/DM1100/DM1500 chipset. It gives common way for host
  11. * system to handle BeBoB based devices.
  12. */
  13. #include "bebob.h"
  14. MODULE_DESCRIPTION("BridgeCo BeBoB driver");
  15. MODULE_AUTHOR("Takashi Sakamoto <o-takashi@sakamocchi.jp>");
  16. MODULE_LICENSE("GPL v2");
  17. static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
  18. static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
  19. static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
  20. module_param_array(index, int, NULL, 0444);
  21. MODULE_PARM_DESC(index, "card index");
  22. module_param_array(id, charp, NULL, 0444);
  23. MODULE_PARM_DESC(id, "ID string");
  24. module_param_array(enable, bool, NULL, 0444);
  25. MODULE_PARM_DESC(enable, "enable BeBoB sound card");
  26. static DEFINE_MUTEX(devices_mutex);
  27. static DECLARE_BITMAP(devices_used, SNDRV_CARDS);
  28. /* Offsets from information register. */
  29. #define INFO_OFFSET_BEBOB_VERSION 0x08
  30. #define INFO_OFFSET_GUID 0x10
  31. #define INFO_OFFSET_HW_MODEL_ID 0x18
  32. #define INFO_OFFSET_HW_MODEL_REVISION 0x1c
  33. #define VEN_EDIROL 0x000040ab
  34. #define VEN_PRESONUS 0x00000a92
  35. #define VEN_BRIDGECO 0x000007f5
  36. #define VEN_MACKIE1 0x0000000f
  37. #define VEN_MACKIE2 0x00000ff2
  38. #define VEN_STANTON 0x00001260
  39. #define VEN_TASCAM 0x0000022e
  40. #define VEN_BEHRINGER 0x00001564
  41. #define VEN_APOGEE 0x000003db
  42. #define VEN_ESI 0x00000f1b
  43. #define VEN_ACOUSTIC 0x00000002
  44. #define VEN_CME 0x0000000a
  45. #define VEN_PHONIC 0x00001496
  46. #define VEN_LYNX 0x000019e5
  47. #define VEN_ICON 0x00001a9e
  48. #define VEN_PRISMSOUND 0x00001198
  49. #define VEN_TERRATEC 0x00000aac
  50. #define VEN_YAMAHA 0x0000a0de
  51. #define VEN_FOCUSRITE 0x0000130e
  52. #define VEN_MAUDIO1 0x00000d6c
  53. #define VEN_MAUDIO2 0x000007f5
  54. #define VEN_DIGIDESIGN 0x00a07e
  55. #define MODEL_FOCUSRITE_SAFFIRE_BOTH 0x00000000
  56. #define MODEL_MAUDIO_AUDIOPHILE_BOTH 0x00010060
  57. #define MODEL_MAUDIO_FW1814 0x00010071
  58. #define MODEL_MAUDIO_PROJECTMIX 0x00010091
  59. static int
  60. name_device(struct snd_bebob *bebob)
  61. {
  62. struct fw_device *fw_dev = fw_parent_device(bebob->unit);
  63. char vendor[24] = {0};
  64. char model[32] = {0};
  65. u32 hw_id;
  66. u32 data[2] = {0};
  67. u32 revision;
  68. u32 version;
  69. int err;
  70. /* get vendor name from root directory */
  71. err = fw_csr_string(fw_dev->config_rom + 5, CSR_VENDOR,
  72. vendor, sizeof(vendor));
  73. if (err < 0)
  74. goto end;
  75. /* get model name from unit directory */
  76. err = fw_csr_string(bebob->unit->directory, CSR_MODEL,
  77. model, sizeof(model));
  78. if (err < 0)
  79. goto end;
  80. /* get hardware id */
  81. err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID,
  82. &hw_id);
  83. if (err < 0)
  84. goto end;
  85. /* get hardware revision */
  86. err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION,
  87. &revision);
  88. if (err < 0)
  89. goto end;
  90. /* get GUID */
  91. err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID,
  92. data, sizeof(data));
  93. if (err < 0)
  94. goto end;
  95. err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION,
  96. &version);
  97. if (err < 0)
  98. goto end;
  99. bebob->version = version;
  100. strcpy(bebob->card->driver, "BeBoB");
  101. strcpy(bebob->card->shortname, model);
  102. strcpy(bebob->card->mixername, model);
  103. snprintf(bebob->card->longname, sizeof(bebob->card->longname),
  104. "%s %s (id:%d, rev:%d), GUID %08x%08x at %s, S%d",
  105. vendor, model, hw_id, revision,
  106. data[0], data[1], dev_name(&bebob->unit->device),
  107. 100 << fw_dev->max_speed);
  108. end:
  109. return err;
  110. }
  111. static void bebob_free(struct snd_bebob *bebob)
  112. {
  113. snd_bebob_stream_destroy_duplex(bebob);
  114. fw_unit_put(bebob->unit);
  115. kfree(bebob->maudio_special_quirk);
  116. mutex_destroy(&bebob->mutex);
  117. kfree(bebob);
  118. }
  119. /*
  120. * This module releases the FireWire unit data after all ALSA character devices
  121. * are released by applications. This is for releasing stream data or finishing
  122. * transactions safely. Thus at returning from .remove(), this module still keep
  123. * references for the unit.
  124. */
  125. static void
  126. bebob_card_free(struct snd_card *card)
  127. {
  128. struct snd_bebob *bebob = card->private_data;
  129. mutex_lock(&devices_mutex);
  130. clear_bit(bebob->card_index, devices_used);
  131. mutex_unlock(&devices_mutex);
  132. bebob_free(card->private_data);
  133. }
  134. static const struct snd_bebob_spec *
  135. get_saffire_spec(struct fw_unit *unit)
  136. {
  137. char name[24] = {0};
  138. if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0)
  139. return NULL;
  140. if (strcmp(name, "SaffireLE") == 0)
  141. return &saffire_le_spec;
  142. else
  143. return &saffire_spec;
  144. }
  145. static bool
  146. check_audiophile_booted(struct fw_unit *unit)
  147. {
  148. char name[24] = {0};
  149. if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0)
  150. return false;
  151. return strncmp(name, "FW Audiophile Bootloader", 15) != 0;
  152. }
  153. static void
  154. do_registration(struct work_struct *work)
  155. {
  156. struct snd_bebob *bebob =
  157. container_of(work, struct snd_bebob, dwork.work);
  158. unsigned int card_index;
  159. int err;
  160. if (bebob->registered)
  161. return;
  162. mutex_lock(&devices_mutex);
  163. for (card_index = 0; card_index < SNDRV_CARDS; card_index++) {
  164. if (!test_bit(card_index, devices_used) && enable[card_index])
  165. break;
  166. }
  167. if (card_index >= SNDRV_CARDS) {
  168. mutex_unlock(&devices_mutex);
  169. return;
  170. }
  171. err = snd_card_new(&bebob->unit->device, index[card_index],
  172. id[card_index], THIS_MODULE, 0, &bebob->card);
  173. if (err < 0) {
  174. mutex_unlock(&devices_mutex);
  175. return;
  176. }
  177. err = name_device(bebob);
  178. if (err < 0)
  179. goto error;
  180. if (bebob->spec == &maudio_special_spec) {
  181. if (bebob->entry->model_id == MODEL_MAUDIO_FW1814)
  182. err = snd_bebob_maudio_special_discover(bebob, true);
  183. else
  184. err = snd_bebob_maudio_special_discover(bebob, false);
  185. } else {
  186. err = snd_bebob_stream_discover(bebob);
  187. }
  188. if (err < 0)
  189. goto error;
  190. err = snd_bebob_stream_init_duplex(bebob);
  191. if (err < 0)
  192. goto error;
  193. snd_bebob_proc_init(bebob);
  194. if (bebob->midi_input_ports > 0 || bebob->midi_output_ports > 0) {
  195. err = snd_bebob_create_midi_devices(bebob);
  196. if (err < 0)
  197. goto error;
  198. }
  199. err = snd_bebob_create_pcm_devices(bebob);
  200. if (err < 0)
  201. goto error;
  202. err = snd_bebob_create_hwdep_device(bebob);
  203. if (err < 0)
  204. goto error;
  205. err = snd_card_register(bebob->card);
  206. if (err < 0)
  207. goto error;
  208. set_bit(card_index, devices_used);
  209. mutex_unlock(&devices_mutex);
  210. /*
  211. * After registered, bebob instance can be released corresponding to
  212. * releasing the sound card instance.
  213. */
  214. bebob->card->private_free = bebob_card_free;
  215. bebob->card->private_data = bebob;
  216. bebob->registered = true;
  217. return;
  218. error:
  219. mutex_unlock(&devices_mutex);
  220. snd_bebob_stream_destroy_duplex(bebob);
  221. snd_card_free(bebob->card);
  222. dev_info(&bebob->unit->device,
  223. "Sound card registration failed: %d\n", err);
  224. }
  225. static int
  226. bebob_probe(struct fw_unit *unit, const struct ieee1394_device_id *entry)
  227. {
  228. struct snd_bebob *bebob;
  229. const struct snd_bebob_spec *spec;
  230. if (entry->vendor_id == VEN_FOCUSRITE &&
  231. entry->model_id == MODEL_FOCUSRITE_SAFFIRE_BOTH)
  232. spec = get_saffire_spec(unit);
  233. else if (entry->vendor_id == VEN_MAUDIO1 &&
  234. entry->model_id == MODEL_MAUDIO_AUDIOPHILE_BOTH &&
  235. !check_audiophile_booted(unit))
  236. spec = NULL;
  237. else
  238. spec = (const struct snd_bebob_spec *)entry->driver_data;
  239. if (spec == NULL) {
  240. if (entry->vendor_id == VEN_MAUDIO1 ||
  241. entry->vendor_id == VEN_MAUDIO2)
  242. return snd_bebob_maudio_load_firmware(unit);
  243. else
  244. return -ENODEV;
  245. }
  246. /* Allocate this independent of sound card instance. */
  247. bebob = kzalloc(sizeof(struct snd_bebob), GFP_KERNEL);
  248. if (bebob == NULL)
  249. return -ENOMEM;
  250. bebob->unit = fw_unit_get(unit);
  251. bebob->entry = entry;
  252. bebob->spec = spec;
  253. dev_set_drvdata(&unit->device, bebob);
  254. mutex_init(&bebob->mutex);
  255. spin_lock_init(&bebob->lock);
  256. init_waitqueue_head(&bebob->hwdep_wait);
  257. /* Allocate and register this sound card later. */
  258. INIT_DEFERRABLE_WORK(&bebob->dwork, do_registration);
  259. if (entry->vendor_id != VEN_MAUDIO1 ||
  260. (entry->model_id != MODEL_MAUDIO_FW1814 &&
  261. entry->model_id != MODEL_MAUDIO_PROJECTMIX)) {
  262. snd_fw_schedule_registration(unit, &bebob->dwork);
  263. } else {
  264. /*
  265. * This is a workaround. This bus reset seems to have an effect
  266. * to make devices correctly handling transactions. Without
  267. * this, the devices have gap_count mismatch. This causes much
  268. * failure of transaction.
  269. *
  270. * Just after registration, user-land application receive
  271. * signals from dbus and starts I/Os. To avoid I/Os till the
  272. * future bus reset, registration is done in next update().
  273. */
  274. fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card,
  275. false, true);
  276. }
  277. return 0;
  278. }
  279. /*
  280. * This driver doesn't update streams in bus reset handler.
  281. *
  282. * DM1000/ DM1100/DM1500 chipsets with BeBoB firmware transfer packets with
  283. * discontinued counter at bus reset. This discontinuity is immediately
  284. * detected in packet streaming layer, then it sets XRUN to PCM substream.
  285. *
  286. * ALSA PCM applications can know the XRUN by getting -EPIPE from PCM operation.
  287. * Then, they can recover the PCM substream by executing ioctl(2) with
  288. * SNDRV_PCM_IOCTL_PREPARE. 'struct snd_pcm_ops.prepare' is called and drivers
  289. * restart packet streaming.
  290. *
  291. * The above processing may be executed before this bus-reset handler is
  292. * executed. When this handler updates streams with current isochronous
  293. * channels, the streams already have the current ones.
  294. */
  295. static void
  296. bebob_update(struct fw_unit *unit)
  297. {
  298. struct snd_bebob *bebob = dev_get_drvdata(&unit->device);
  299. if (bebob == NULL)
  300. return;
  301. /* Postpone a workqueue for deferred registration. */
  302. if (!bebob->registered)
  303. snd_fw_schedule_registration(unit, &bebob->dwork);
  304. else
  305. fcp_bus_reset(bebob->unit);
  306. }
  307. static void bebob_remove(struct fw_unit *unit)
  308. {
  309. struct snd_bebob *bebob = dev_get_drvdata(&unit->device);
  310. if (bebob == NULL)
  311. return;
  312. /*
  313. * Confirm to stop the work for registration before the sound card is
  314. * going to be released. The work is not scheduled again because bus
  315. * reset handler is not called anymore.
  316. */
  317. cancel_delayed_work_sync(&bebob->dwork);
  318. if (bebob->registered) {
  319. /* No need to wait for releasing card object in this context. */
  320. snd_card_free_when_closed(bebob->card);
  321. } else {
  322. /* Don't forget this case. */
  323. bebob_free(bebob);
  324. }
  325. }
  326. static const struct snd_bebob_rate_spec normal_rate_spec = {
  327. .get = &snd_bebob_stream_get_rate,
  328. .set = &snd_bebob_stream_set_rate
  329. };
  330. static const struct snd_bebob_spec spec_normal = {
  331. .clock = NULL,
  332. .rate = &normal_rate_spec,
  333. .meter = NULL
  334. };
  335. static const struct ieee1394_device_id bebob_id_table[] = {
  336. /* Edirol, FA-66 */
  337. SND_BEBOB_DEV_ENTRY(VEN_EDIROL, 0x00010049, &spec_normal),
  338. /* Edirol, FA-101 */
  339. SND_BEBOB_DEV_ENTRY(VEN_EDIROL, 0x00010048, &spec_normal),
  340. /* Presonus, FIREBOX */
  341. SND_BEBOB_DEV_ENTRY(VEN_PRESONUS, 0x00010000, &spec_normal),
  342. /* PreSonus, FIREPOD/FP10 */
  343. SND_BEBOB_DEV_ENTRY(VEN_PRESONUS, 0x00010066, &spec_normal),
  344. /* PreSonus, Inspire1394 */
  345. SND_BEBOB_DEV_ENTRY(VEN_PRESONUS, 0x00010001, &spec_normal),
  346. /* BridgeCo, RDAudio1 */
  347. SND_BEBOB_DEV_ENTRY(VEN_BRIDGECO, 0x00010048, &spec_normal),
  348. /* BridgeCo, Audio5 */
  349. SND_BEBOB_DEV_ENTRY(VEN_BRIDGECO, 0x00010049, &spec_normal),
  350. /* Mackie, Onyx 1220/1620/1640 (Firewire I/O Card) */
  351. SND_BEBOB_DEV_ENTRY(VEN_MACKIE2, 0x00010065, &spec_normal),
  352. /* Mackie, d.2 (Firewire Option) */
  353. SND_BEBOB_DEV_ENTRY(VEN_MACKIE1, 0x00010067, &spec_normal),
  354. /* Stanton, ScratchAmp */
  355. SND_BEBOB_DEV_ENTRY(VEN_STANTON, 0x00000001, &spec_normal),
  356. /* Tascam, IF-FW DM */
  357. SND_BEBOB_DEV_ENTRY(VEN_TASCAM, 0x00010067, &spec_normal),
  358. /* Behringer, XENIX UFX 1204 */
  359. SND_BEBOB_DEV_ENTRY(VEN_BEHRINGER, 0x00001204, &spec_normal),
  360. /* Behringer, XENIX UFX 1604 */
  361. SND_BEBOB_DEV_ENTRY(VEN_BEHRINGER, 0x00001604, &spec_normal),
  362. /* Behringer, Digital Mixer X32 series (X-UF Card) */
  363. SND_BEBOB_DEV_ENTRY(VEN_BEHRINGER, 0x00000006, &spec_normal),
  364. /* Behringer, F-Control Audio 1616 */
  365. SND_BEBOB_DEV_ENTRY(VEN_BEHRINGER, 0x001616, &spec_normal),
  366. /* Behringer, F-Control Audio 610 */
  367. SND_BEBOB_DEV_ENTRY(VEN_BEHRINGER, 0x000610, &spec_normal),
  368. /* Apogee Electronics, Rosetta 200/400 (X-FireWire card) */
  369. /* Apogee Electronics, DA/AD/DD-16X (X-FireWire card) */
  370. SND_BEBOB_DEV_ENTRY(VEN_APOGEE, 0x00010048, &spec_normal),
  371. /* Apogee Electronics, Ensemble */
  372. SND_BEBOB_DEV_ENTRY(VEN_APOGEE, 0x00001eee, &spec_normal),
  373. /* ESI, Quatafire610 */
  374. SND_BEBOB_DEV_ENTRY(VEN_ESI, 0x00010064, &spec_normal),
  375. /* AcousticReality, eARMasterOne */
  376. SND_BEBOB_DEV_ENTRY(VEN_ACOUSTIC, 0x00000002, &spec_normal),
  377. /* CME, MatrixKFW */
  378. SND_BEBOB_DEV_ENTRY(VEN_CME, 0x00030000, &spec_normal),
  379. /* Phonic, Helix Board 12 MkII */
  380. SND_BEBOB_DEV_ENTRY(VEN_PHONIC, 0x00050000, &spec_normal),
  381. /* Phonic, Helix Board 18 MkII */
  382. SND_BEBOB_DEV_ENTRY(VEN_PHONIC, 0x00060000, &spec_normal),
  383. /* Phonic, Helix Board 24 MkII */
  384. SND_BEBOB_DEV_ENTRY(VEN_PHONIC, 0x00070000, &spec_normal),
  385. /* Phonic, Helix Board 12 Universal/18 Universal/24 Universal */
  386. SND_BEBOB_DEV_ENTRY(VEN_PHONIC, 0x00000000, &spec_normal),
  387. /* Lynx, Aurora 8/16 (LT-FW) */
  388. SND_BEBOB_DEV_ENTRY(VEN_LYNX, 0x00000001, &spec_normal),
  389. /* ICON, FireXon */
  390. SND_BEBOB_DEV_ENTRY(VEN_ICON, 0x00000001, &spec_normal),
  391. /* PrismSound, Orpheus */
  392. SND_BEBOB_DEV_ENTRY(VEN_PRISMSOUND, 0x00010048, &spec_normal),
  393. /* PrismSound, ADA-8XR */
  394. SND_BEBOB_DEV_ENTRY(VEN_PRISMSOUND, 0x0000ada8, &spec_normal),
  395. /* TerraTec Electronic GmbH, PHASE 88 Rack FW */
  396. SND_BEBOB_DEV_ENTRY(VEN_TERRATEC, 0x00000003, &phase88_rack_spec),
  397. /* TerraTec Electronic GmbH, PHASE 24 FW */
  398. SND_BEBOB_DEV_ENTRY(VEN_TERRATEC, 0x00000004, &yamaha_terratec_spec),
  399. /* TerraTec Electronic GmbH, Phase X24 FW */
  400. SND_BEBOB_DEV_ENTRY(VEN_TERRATEC, 0x00000007, &yamaha_terratec_spec),
  401. /* TerraTec Electronic GmbH, EWS MIC2/MIC8 */
  402. SND_BEBOB_DEV_ENTRY(VEN_TERRATEC, 0x00000005, &spec_normal),
  403. /* Terratec Electronic GmbH, Aureon 7.1 Firewire */
  404. SND_BEBOB_DEV_ENTRY(VEN_TERRATEC, 0x00000002, &spec_normal),
  405. /* Yamaha, GO44 */
  406. SND_BEBOB_DEV_ENTRY(VEN_YAMAHA, 0x0010000b, &yamaha_terratec_spec),
  407. /* YAMAHA, GO46 */
  408. SND_BEBOB_DEV_ENTRY(VEN_YAMAHA, 0x0010000c, &yamaha_terratec_spec),
  409. /* Focusrite, SaffirePro 26 I/O */
  410. SND_BEBOB_DEV_ENTRY(VEN_FOCUSRITE, 0x00000003, &saffirepro_26_spec),
  411. /* Focusrite, SaffirePro 10 I/O */
  412. SND_BEBOB_DEV_ENTRY(VEN_FOCUSRITE, 0x00000006, &saffirepro_10_spec),
  413. /* Focusrite, Saffire(no label and LE) */
  414. SND_BEBOB_DEV_ENTRY(VEN_FOCUSRITE, MODEL_FOCUSRITE_SAFFIRE_BOTH,
  415. &saffire_spec),
  416. /* M-Audio, Firewire 410 */
  417. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO2, 0x00010058, NULL), /* bootloader */
  418. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO2, 0x00010046, &maudio_fw410_spec),
  419. /* M-Audio, Firewire Audiophile */
  420. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, MODEL_MAUDIO_AUDIOPHILE_BOTH,
  421. &maudio_audiophile_spec),
  422. /* M-Audio, Firewire Solo */
  423. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, 0x00010062, &maudio_solo_spec),
  424. /* M-Audio, Ozonic */
  425. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, 0x0000000a, &maudio_ozonic_spec),
  426. /* M-Audio NRV10 */
  427. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, 0x00010081, &maudio_nrv10_spec),
  428. /* M-Audio, ProFireLightbridge */
  429. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, 0x000100a1, &spec_normal),
  430. /* Firewire 1814 */
  431. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, 0x00010070, NULL), /* bootloader */
  432. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, MODEL_MAUDIO_FW1814,
  433. &maudio_special_spec),
  434. /* M-Audio ProjectMix */
  435. SND_BEBOB_DEV_ENTRY(VEN_MAUDIO1, MODEL_MAUDIO_PROJECTMIX,
  436. &maudio_special_spec),
  437. /* Digidesign Mbox 2 Pro */
  438. SND_BEBOB_DEV_ENTRY(VEN_DIGIDESIGN, 0x0000a9, &spec_normal),
  439. /* IDs are unknown but able to be supported */
  440. /* Apogee, Mini-ME Firewire */
  441. /* Apogee, Mini-DAC Firewire */
  442. /* Cakawalk, Sonar Power Studio 66 */
  443. /* CME, UF400e */
  444. /* ESI, Quotafire XL */
  445. /* Infrasonic, DewX */
  446. /* Infrasonic, Windy6 */
  447. /* Mackie, Digital X Bus x.200 */
  448. /* Mackie, Digital X Bus x.400 */
  449. /* Phonic, HB 12 */
  450. /* Phonic, HB 24 */
  451. /* Phonic, HB 18 */
  452. /* Phonic, FireFly 202 */
  453. /* Phonic, FireFly 302 */
  454. /* Rolf Spuler, Firewire Guitar */
  455. {}
  456. };
  457. MODULE_DEVICE_TABLE(ieee1394, bebob_id_table);
  458. static struct fw_driver bebob_driver = {
  459. .driver = {
  460. .owner = THIS_MODULE,
  461. .name = "snd-bebob",
  462. .bus = &fw_bus_type,
  463. },
  464. .probe = bebob_probe,
  465. .update = bebob_update,
  466. .remove = bebob_remove,
  467. .id_table = bebob_id_table,
  468. };
  469. static int __init
  470. snd_bebob_init(void)
  471. {
  472. return driver_register(&bebob_driver.driver);
  473. }
  474. static void __exit
  475. snd_bebob_exit(void)
  476. {
  477. driver_unregister(&bebob_driver.driver);
  478. }
  479. module_init(snd_bebob_init);
  480. module_exit(snd_bebob_exit);