Changeset 1890
- Timestamp:
- 09/11/10 05:49:25 (14 years ago)
- Files:
-
- trunk/libffado/src/motu/motu_avdevice.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/motu/motu_avdevice.cpp
r1886 r1890 1389 1389 1390 1390 // Add audio capture ports 1391 #define USEOLD 1392 #ifdef USEOLD 1391 1393 if (!addDirPorts(Streaming::Port::E_Capture, samp_freq, optical_in_mode_a, optical_in_mode_b)) { 1392 1394 return false; 1393 1395 } 1394 1396 #else 1397 if (!addDirPortGroups(Streaming::Port::E_Capture, samp_freq, optical_in_mode_a, optical_in_mode_b)) { 1398 return false; 1399 } 1400 #endif 1395 1401 // Add MIDI port. The MOTU only has one MIDI input port, with each 1396 1402 // MIDI byte sent using a 3 byte sequence starting at byte 4 of the … … 1447 1453 1448 1454 // Add audio playback ports 1455 #ifdef USEOLD 1449 1456 if (!addDirPorts(Streaming::Port::E_Playback, samp_freq, optical_out_mode_a, optical_out_mode_b)) { 1450 1457 return false; 1451 1458 } 1459 #else 1460 if (!addDirPortGroups(Streaming::Port::E_Playback, samp_freq, optical_out_mode_a, optical_out_mode_b)) { 1461 return false; 1462 } 1463 #endif 1452 1464 1453 1465 // Add MIDI port. The MOTU only has one output MIDI port, with each … … 2030 2042 signed int pkt_ofs = 10; /* Port data starts at offset 10 */ 2031 2043 const DevicePropertyEntry *devprop = &DevicesProperty[m_motu_model-1]; 2032 signed int n_groups = devprop->n_port _entries;2044 signed int n_groups = devprop->n_portgroup_entries; 2033 2045 signed int creation_indices[n_groups]; 2034 2046 signed int create_in_order;