Show
Ignore:
Timestamp:
10/17/07 01:16:58 (13 years ago)
Author:
ppalmers
Message:

- a first pass at Focusrite Saffire Pro mixer support. Note: the mixer only works when streaming.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/bebob/focusrite/focusrite_cmd.h

    r650 r653  
    3131#include <libavc1394/avc1394.h> 
    3232 
    33 #define FOCUSRITE_CMD_ID_SAMPLERATE         84 
    34 #define FOCUSRITE_CMD_ID_SAMPLERATE_MIRROR  115 
    35  
    36 #define FOCUSRITE_CMD_ID_PHANTOM14          98 
    37 #define FOCUSRITE_CMD_ID_PHANTOM58          99 
    38 #define FOCUSRITE_CMD_ID_INSERT1            100 
    39 #define FOCUSRITE_CMD_ID_INSERT2            101 
    40 #define FOCUSRITE_CMD_ID_AC3_PASSTHROUGH    103 
    41 #define FOCUSRITE_CMD_ID_MIDI_TRU           104 
    42  
    43 #define FOCUSRITE_CMD_SAMPLERATE_44K1   1 
    44 #define FOCUSRITE_CMD_SAMPLERATE_48K    2 
    45 #define FOCUSRITE_CMD_SAMPLERATE_88K2   3 
    46 #define FOCUSRITE_CMD_SAMPLERATE_96K    4 
    47 #define FOCUSRITE_CMD_SAMPLERATE_176K4  5 
    48 #define FOCUSRITE_CMD_SAMPLERATE_192K   6 
    49  
    50 #define FOCUSRITE_CMD_ID_AN1_TO_IMIXL        0 
    51 #define FOCUSRITE_CMD_ID_AN1_TO_IMIXR        1 
    52 #define FOCUSRITE_CMD_ID_AN2_TO_IMIXL        2 
    53 #define FOCUSRITE_CMD_ID_AN2_TO_IMIXR        3 
    54 #define FOCUSRITE_CMD_ID_AN3_TO_IMIXL        4 
    55 #define FOCUSRITE_CMD_ID_AN3_TO_IMIXR        5 
    56 #define FOCUSRITE_CMD_ID_AN4_TO_IMIXL        6 
    57 #define FOCUSRITE_CMD_ID_AN4_TO_IMIXR        7 
    58 #define FOCUSRITE_CMD_ID_AN5_TO_IMIXL        8 
    59 #define FOCUSRITE_CMD_ID_AN5_TO_IMIXR        9 
    60 #define FOCUSRITE_CMD_ID_AN6_TO_IMIXL       10 
    61 #define FOCUSRITE_CMD_ID_AN6_TO_IMIXR       11 
    62 #define FOCUSRITE_CMD_ID_AN7_TO_IMIXL       12 
    63 #define FOCUSRITE_CMD_ID_AN7_TO_IMIXR       13 
    64 #define FOCUSRITE_CMD_ID_AN8_TO_IMIXL       14 
    65 #define FOCUSRITE_CMD_ID_AN8_TO_IMIXR       15 
    66 #define FOCUSRITE_CMD_ID_SPDIFL_TO_IMIXL    16 
    67 #define FOCUSRITE_CMD_ID_SPDIFL_TO_IMIXR    17 
    68 #define FOCUSRITE_CMD_ID_SPDIFR_TO_IMIXL    18 
    69 #define FOCUSRITE_CMD_ID_SPDIFR_TO_IMIXR    19 
    70  
    71 #define FOCUSRITE_CMD_ID_ADAT11_TO_IMIXL    20 
    72 #define FOCUSRITE_CMD_ID_ADAT11_TO_IMIXR    21 
    73 #define FOCUSRITE_CMD_ID_ADAT12_TO_IMIXL    22 
    74 #define FOCUSRITE_CMD_ID_ADAT12_TO_IMIXR    23 
    75 #define FOCUSRITE_CMD_ID_ADAT13_TO_IMIXL    24 
    76 #define FOCUSRITE_CMD_ID_ADAT13_TO_IMIXR    25 
    77 #define FOCUSRITE_CMD_ID_ADAT14_TO_IMIXL    26 
    78 #define FOCUSRITE_CMD_ID_ADAT14_TO_IMIXR    27 
    79 #define FOCUSRITE_CMD_ID_ADAT15_TO_IMIXL    28 
    80 #define FOCUSRITE_CMD_ID_ADAT15_TO_IMIXR    29 
    81 #define FOCUSRITE_CMD_ID_ADAT16_TO_IMIXL    30 
    82 #define FOCUSRITE_CMD_ID_ADAT16_TO_IMIXR    31 
    83 #define FOCUSRITE_CMD_ID_ADAT17_TO_IMIXL    32 
    84 #define FOCUSRITE_CMD_ID_ADAT17_TO_IMIXR    33 
    85 #define FOCUSRITE_CMD_ID_ADAT18_TO_IMIXL    34 
    86 #define FOCUSRITE_CMD_ID_ADAT18_TO_IMIXR    35 
    87  
    88 #define FOCUSRITE_CMD_ID_ADAT21_TO_IMIXL    36 
    89 #define FOCUSRITE_CMD_ID_ADAT21_TO_IMIXR    37 
    90 #define FOCUSRITE_CMD_ID_ADAT22_TO_IMIXL    38 
    91 #define FOCUSRITE_CMD_ID_ADAT22_TO_IMIXR    39 
    92 #define FOCUSRITE_CMD_ID_ADAT23_TO_IMIXL    40 
    93 #define FOCUSRITE_CMD_ID_ADAT23_TO_IMIXR    41 
    94 #define FOCUSRITE_CMD_ID_ADAT24_TO_IMIXL    42 
    95 #define FOCUSRITE_CMD_ID_ADAT24_TO_IMIXR    43 
    96 #define FOCUSRITE_CMD_ID_ADAT25_TO_IMIXL    44 
    97 #define FOCUSRITE_CMD_ID_ADAT25_TO_IMIXR    45 
    98 #define FOCUSRITE_CMD_ID_ADAT26_TO_IMIXL    46 
    99 #define FOCUSRITE_CMD_ID_ADAT26_TO_IMIXR    47 
    100 #define FOCUSRITE_CMD_ID_ADAT27_TO_IMIXL    48 
    101 #define FOCUSRITE_CMD_ID_ADAT27_TO_IMIXR    49 
    102 #define FOCUSRITE_CMD_ID_ADAT28_TO_IMIXL    50 
    103 #define FOCUSRITE_CMD_ID_ADAT28_TO_IMIXR    51 
    104  
    105 #define FOCUSRITE_CMD_ID_PC1_TO_OUT1    52 
    106 #define FOCUSRITE_CMD_ID_PC2_TO_OUT2    54 
    107 #define FOCUSRITE_CMD_ID_MIX1_TO_OUT1   53 
    108 #define FOCUSRITE_CMD_ID_MIX2_TO_OUT2   55 
    109  
    110 #define FOCUSRITE_CMD_ID_PC1_TO_OUT3    56 
    111 #define FOCUSRITE_CMD_ID_PC2_TO_OUT4    59 
    112 #define FOCUSRITE_CMD_ID_PC3_TO_OUT3    57 
    113 #define FOCUSRITE_CMD_ID_PC4_TO_OUT4    60 
    114 #define FOCUSRITE_CMD_ID_MIX1_TO_OUT3   58 
    115 #define FOCUSRITE_CMD_ID_MIX2_TO_OUT4   61 
    116  
    117 #define FOCUSRITE_CMD_ID_PC1_TO_OUT5    62 
    118 #define FOCUSRITE_CMD_ID_PC2_TO_OUT6    65 
    119 #define FOCUSRITE_CMD_ID_PC5_TO_OUT5    63 
    120 #define FOCUSRITE_CMD_ID_PC6_TO_OUT6    66 
    121 #define FOCUSRITE_CMD_ID_MIX1_TO_OUT5   64 
    122 #define FOCUSRITE_CMD_ID_MIX2_TO_OUT6   67 
    123  
    124 #define FOCUSRITE_CMD_ID_PC1_TO_OUT7    68 
    125 #define FOCUSRITE_CMD_ID_PC2_TO_OUT8    71 
    126 #define FOCUSRITE_CMD_ID_PC7_TO_OUT7    69 
    127 #define FOCUSRITE_CMD_ID_PC8_TO_OUT8    72 
    128 #define FOCUSRITE_CMD_ID_MIX1_TO_OUT7   70 
    129 #define FOCUSRITE_CMD_ID_MIX2_TO_OUT8   73 
    130  
    131 #define FOCUSRITE_CMD_ID_PC1_TO_OUT9    74 
    132 #define FOCUSRITE_CMD_ID_PC2_TO_OUT10   77 
    133 #define FOCUSRITE_CMD_ID_PC9_TO_OUT9    75 
    134 #define FOCUSRITE_CMD_ID_PC10_TO_OUT10  78 
    135 #define FOCUSRITE_CMD_ID_MIX1_TO_OUT9   76 
    136 #define FOCUSRITE_CMD_ID_MIX2_TO_OUT10  79 
    137  
    13833namespace BeBoB { 
    13934namespace Focusrite {