Changeset 663

Show
Ignore:
Timestamp:
10/20/07 15:13:16 (15 years ago)
Author:
ppalmers
Message:

- Implement backend for ECHO FireWorks? mixer support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/fireworks/efc/efc_cmd.cpp

    r629 r663  
    4141    , m_category_id ( cat ) 
    4242    , m_command_id ( cmd ) 
     43{ 
     44    memset(&m_header,0,sizeof(m_header)); 
     45} 
     46 
     47EfcCmd::EfcCmd() 
     48    : m_length ( 0 ) 
     49    , m_category_id ( EFC_CAT_INVALID ) 
     50    , m_command_id ( EFC_CMD_INVALID ) 
    4351{ 
    4452    memset(&m_header,0,sizeof(m_header)); 
  • trunk/libffado/src/fireworks/efc/efc_cmd.h

    r639 r663  
    6262#define EFC_CMD_HWCTRL_IDENTIFY         5 
    6363#define EFC_CMD_HWCTRL_RECONNECT_PHY    6 
     64 
     65// Commands for the EFC_CAT_*_MIX categories 
     66#define EFC_CMD_MIXER_SET_GAIN        0 
     67#define EFC_CMD_MIXER_GET_GAIN        1 
     68#define EFC_CMD_MIXER_SET_MUTE        2 
     69#define EFC_CMD_MIXER_GET_MUTE        3 
     70#define EFC_CMD_MIXER_SET_SOLO        4 
     71#define EFC_CMD_MIXER_GET_SOLO        5 
     72#define EFC_CMD_MIXER_SET_PAN         6 
     73#define EFC_CMD_MIXER_GET_PAN         7 
     74#define EFC_CMD_MIXER_SET_NOMINAL     8 
     75#define EFC_CMD_MIXER_GET_NOMINAL     9 
    6476 
    6577// size of the header 
     
    149161protected: // this HAS to be overloaded 
    150162    EfcCmd(uint32_t cat, uint32_t cmd); 
     163    EfcCmd(); 
    151164 
    152165public: 
     
    163176    struct efc_header   m_header; 
    164177 
    165 private
     178protected
    166179    uint32_t            m_category_id; 
    167180    uint32_t            m_command_id; 
  • trunk/libffado/src/SConscript

    r649 r663  
    112112        fireworks/efc/efc_cmds_hardware.cpp \ 
    113113        fireworks/efc/efc_cmds_hardware_ctrl.cpp \ 
     114        fireworks/efc/efc_cmds_mixer.cpp \ 
     115        fireworks/efc/efc_cmds_monitor.cpp \ 
    114116        fireworks/audiofire/audiofire_device.cpp \ 
    115117' ) 
  • trunk/libffado/tests/SConscript

    r643 r663  
    3939if env['ENABLE_BEBOB']: 
    4040        apps.update( { "test-focusrite" : "test-focusrite.cpp" } ) 
     41if env['ENABLE_FIREWORKS']: 
     42        apps.update( { "test-echomixer" : "test-echomixer.cpp" } ) 
    4143 
    4244for app in apps.keys():